namespace issue in xml

Ladillaxx

New Member
\[code\]XmlElement xmlElementSAPD = xmlDocument.CreateElement("SAPD");root.AppendChild(xmlElementSAPD);xmlElementSAPD.AppendChild(XmlFunctions.GetXMLElement(xmlDocument, "smu", dr.GetString("sma").Trim()));\[/code\]The c# code above creates XML below.\[code\]<SAPD><smu>123</smu></SAPD>\[/code\]How can I change the code above so that I can get \[code\]<ns0:SAPD><ns0:smu>123</ns0:smu></ns0:SAPD>\[/code\]Anyone? How can I add ns0: in xml nodes?
 
Back
Top