I need to create an XML file using an xmldocument object in C#.
How can I add a root element like:
book:aaaa xsi:schemalocationchemaLocation="http://www.com"
XmlDocument doc = new XmlDocument();
XmlElement elem = doc.CreateElement("book", "aaaa", "http://www.com");
doc.AppendChild(elem);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With