problem in using xpath

Total Post:13

Points:91

XML 
XML
 2391  View(s)
Ratings:
Rate this:
problem in using xpath to access child node
how use it?
  1. Re: problem in using xpath

    we acces the child node from xml data we use many method
    one is

    XmlDocument doc = new XmlDocument();
    doc.Load(Server.MapPath("doc.xml"));
    XmlNode target = doc.SelectSingleNode("/root/itemsA/item[@id='1']");
    string result = target.InnerText;

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.