public void Remove(XmlNodeAttribute xmlNode) { if (this.nodeList.Contains(xmlNode)) { this.nodeList.Remove(xmlNode); } }
private string GetXpath(XmlNodeAttribute node) { //string xPath = "//" + node.Name; //if (node.HasAttributes) //{ //name[@aa="aa",@bb="bb"] // xPath += "["; // for (int i = 0; i < node.AttributeNames.Length; i++) // { // xPath += "@" + node.AttributeNames[i] + "=\"" + (i < node.AttributeValuess.Length ? node.AttributeValuess[i] : "") + "\","; // } // xPath = xPath.Substring(0,xPath.Length - 1) + "]"; //} //return xPath; return(""); }
public void Add(XmlNodeAttribute xmlNode) { this.nodeList.Add(xmlNode); }