Пример #1
0
 void ExistXML()
 {
     xml.NodeExist("Node");                                                           //判断节点是否存在
     xml.RemoveAllNode();                                                             //移除所有节点
     xml.RemoveNode("nodeName");
     xml.RemoveNode("AttributeName", DateTime.Now);                                   //按时间删除当前时间以前的节点
     xml.RemoveNode("AttributeName", "AttributeValue");                               //按属性名称,属性值
     Dictionary <string, string> keyValuePairs = xml.SearchAllAttributes("nodeName"); //查找节点所有的属性,返回一个键值对
 }