Using the API
Here is a small example of how to listen for XPath events while scanning a document:
Currently only a limited subset of XPath is supported. We are working to add more as time goes on. If a particular function or features is missing, please file a JIRA request for it!
- /foo/bar - simple axis iterators
- Attributes - /foo[@bar]
- "=" - i.e. text() = '2'