This site is hosted and sponsored by hyve.com specialists in Cloud Hosting UK and VMware Hosting. If you are interested in our services please call us for chat on 0800 612 2524
How to remove multiple childnodes from an XML Node specified by XPath#
public static XmlDocument RemoveNodes(string xPath,XmlDocument xmlRequest){
XmlNodeList xmlNodeList = xmlRequest.SelectNodes(xPath);
IEnumerator en = xmlNodeList.GetEnumerator();
while (en.MoveNext())
{
XmlNode xmlNode = (XmlNode)en.Current;
XmlNode xmlRoot = xmlNode.ParentNode;
xmlRoot.RemoveChild(xmlNode);
}
return xmlRequest;
}
Back To c#
Add new attachment
Only authorized users are allowed to upload new attachments.
«
This page (revision-1) was last changed on 06-Feb-2008 11:59 by UnknownAuthor