1:带有一个路径的参数构造方法
2:创建XML的根节点方法 XmlDocument xml = new XmlDocument(); XmlElement xmlElement = xml.CreateElement("");
3:新增节点方法 this.tvshow.Nodes.Add();
4:删除节点方法 this.tvshow.SelectedNode.Remove(); 5:保存XML文件方法 XmlDocument xml = new XmlDocument(); xml.Save();
6:创建根节点对象方法 XmlDocument xml = new XmlDocument(); XmlElement xmlElement = xml.CreateElement(""); xml.AppendChild(xmlElement);
7:获取指定XPath表达式节点的值方法 test()
8:获取指定XPath表达式节点的属性值方法 @
9:获取指定XPath表达式的节点对象方法 selectSingleNode("xPath表达式");