Archive For The “Markup Language – XML” Tutte le categorie:

SELECT NODE BASED ON ITS CONTENT

xPaht = “/MTReport/Listing/LFields/LFProperties[./LFPField=’MAZZI’]/LFPFormat” string name = manifest.SelectSingleNode(“//File[@isExe=’true’]”).Attributes[“name”].Value;

How to copy an xml node

XmlDocument lxdNew = new XmlDocument(); lxdNew.LoadXml(@”<xml></xml>”); XmlNode copiedNode = lxdNew.ImportNode(lxdMain.SelectNodes(“//rs1/xml/Data/Row”)[0], false); lxdNew.DocumentElement.AppendChild(copiedNode);

Go Top