I’m using the Matt Gallagher functions to parse a not well-formed html using XPath.
Is it possible to use an XPath query on the result of a previous XPath query?
I would first select all the nodes corresponding to p, h1-h6, ol, li tags and then use on them the //text() XPath expression.
I’m using the Matt Gallagher functions to parse a not well-formed html using XPath.
Share
Yes.
The XPath
/operator (and the (//pseudo-operator) can be applied to any node-set, and this means at the end of any XPath expression that selects a set of nodes.