XML, XPath in .net
Im using vb.net, 2005, and Xpath queries (doc.selectnode("//LINE")) is not working on the following xml document... pls urgent help is required.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahmood ButtPosted Feb 17, 2010, 12:05 AM
Amit ChoudharyPosted Feb 16, 2010, 1:52 AM
please remove one / from this line:
(doc.selectnode("//LINE"))
Like (doc.selectnode("/LINE"));
I hope you will have no problem with your code then.
Please mark the anser if it helps.
Lalit MPosted Feb 16, 2010, 1:39 AM
http://www.developer.com/xml/article.php/3383961/NET-and-XML-XPath-Queries.htm
http://quickstart.developerfusion.co.uk/QuickStart/howto/doc/Xml/XPathWithXmlDocs.aspx