Are there any production-ready libraries for streaming XPath expressions evaluation against provided xml-document? My investigations show that most of existing solutions load entire DOM-tree into memory before evaluating xpath expression.
Are there any production-ready libraries for streaming XPath expressions evaluation against provided xml-document? My
Share
Would this be practical for a complete XPath implementation, given that XPath syntax allows for:
and
which implies look-ahead requirements ? i.e. from a particular node you’re going to have to load the rest of the document anyway.
The doc for the Nux library (specifically StreamingPathFilter) makes this point, and references some implementations that rely on a subset of XPath. Nux claims to perform some streaming query capability, but given the above there will be some limitations in terms of XPath implementation.