PROBLEM IN USING XPATH

Jack C

Total Post:13

Points:91
Posted by  Jack C
XML 
XML
 1814  View(s)
Ratings:
Rate this:
problem in using xpath to access child node
how use it?
  1. Amit Singh

    Post:103

    Points:721
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!