Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

How To Join Multiple XPath Criteria

$
0
0

I have loaded an HTML table into an XmlDocument object.  I am calling SelectNodes with the XPath query shown below.  It fails with the error message "Expression must evaluate to a node-set."  If I call either one of the conditions alone it works.  What is the correct syntax to join these two condtions into one query?

string sXpathQuery = "/table/tr/td[19][text()='M'] and /table/tr/td[20][text()='0']";


MCSD .NET developer in Dallas, Texas



Viewing all articles
Browse latest Browse all 935

Trending Articles