标签:style ar line new res load ad height
var resultDoc = new XmlDocument();
resultDoc.LoadXml("<root></root>");
resultDoc.DocumentElement.SelectSingleNode("//root")
-------------------------以下为主要内容
XmlAttribute attr = xmldoc.CreateAttribute("name");
attr.Value = "张三";
doc..Attributes.SetNamedItem(attr);
--------------------------
结果<root name=‘张三‘></root>
标签:style ar line new res load ad height
原文地址:http://www.cnblogs.com/wdw31210/p/3873696.html