C
csharpula csharp
Hello I tried to validate XPathExpression against some xml file.
I did it this way:
XPathDocument doc = new XPathDocument(@"C:\aaa.htm");
XPathNavigator nav = doc.CreateNavigator();
XPathExpression Expr = nav.Compile("HTML/BODY/TABLE/aaaaa");
The problem is that XPathResultType of Expr is NodeSet. How can it be
if there is no such node and how can I verify if there is or there is no
such node in xml?
Thanks!
I did it this way:
XPathDocument doc = new XPathDocument(@"C:\aaa.htm");
XPathNavigator nav = doc.CreateNavigator();
XPathExpression Expr = nav.Compile("HTML/BODY/TABLE/aaaaa");
The problem is that XPathResultType of Expr is NodeSet. How can it be
if there is no such node and how can I verify if there is or there is no
such node in xml?
Thanks!