7
我需要使用C#中的xmldocument對象創建XML文件。在C#中使用xmldocument添加根元素.net
我怎樣才能添加像根元素:MSDN文檔中
book:aaaa xsi:schemalocationchemaLocation="http://www.com"
我需要使用C#中的xmldocument對象創建XML文件。在C#中使用xmldocument添加根元素.net
我怎樣才能添加像根元素:MSDN文檔中
book:aaaa xsi:schemalocationchemaLocation="http://www.com"
XmlDocument doc = new XmlDocument();
XmlElement elem = doc.CreateElement("book", "aaaa", "http://www.com");
doc.AppendChild(elem);
和示例代碼不幫? – 2010-06-18 13:32:54