摘要: 我用的是一种很笨的方法,但可以帮助初学者了解访问XML节点的过程。已知有一个XML文件(bookstore.xml)如下:Corets,Eva5.951、插入节点往节点中插入一个节点:XmlDocumentxmlDoc=newXmlDocument();xmlDoc.Load("bookstore.xml");XmlNoderoot=xmlDoc.SelectSingleNode("bookstore");//查找XmlElementxe1=xmlDoc.CreateElement("book");//创建一个节点xe1.SetAtt 阅读全文
posted @ 2012-08-07 07:14 沙漠绿洲uibe 阅读(178) 评论(0) 推荐(0) 编辑