Loading an xml as below and adding a namespace attribute.
XmlDocument DocXml = new XmlDocument();
DocXml.LoadXml("<DA/>");
XmlElement Felem = DocXml.CreateElement("F");
Felem.SetAttribute("ABC", "1");
Felem.SetAttribute("CT:XYZ", "-1");
Felem.SetAttribute("xmlns:CT", "MyNameSpace");
DocXml.DocumentElement.AppendChild(Felem);
MessageBox.Show(DocXml.OuterXml);
Here namepace attributes are missing in outerXML
whts bet way to do this...
I want to load the outerXml again like this...
XmlDocument NewDocXml = new XmlDocument();
NewDocXml.LoadXml(DocXml.OuterXml);
this fails
praveen