摘要: XmlDocument xmlDoc = new XmlDocument(); XmlNode xmlNode = xmlDoc.CreateNode(XmlNodeType.XmlDeclaration, "", ""); xmlDoc.AppendChild(xmlNode); //加入根元素 XmlElement xmlElem = xmlDoc.CreateElement("", "ROOT", ""); //xmlElem.SetAttribute("color", 阅读全文
posted @ 2012-02-24 11:52 bert.zeng 阅读(129) 评论(0) 推荐(0)