I'm using HtmlAgilityPack.
I hover over the parent node and its ChildNodes show several #text
nodes. The XPath value shows /code[1]/#text[1]
. I try to use //#text
to get all the text nodes but I get that error:
Error: Expression must evaluate to a node-set.
I've tried //text
and get nothing, but no error.
/code[1]/#text[1]
as the XPath? That is not valid XPath. – LarsH May 20 '11 at 22:04#
is not part of the syntax. – LarsH May 21 '11 at 2:35