Is there a good free XPath evaluator source code available?
We have a tree style data structure which is not too dissimilar to XML. However, it would be great to include something similar to an XPath evaluator (lightweight) to navigate through the structure.
Would be cool to XPath expressions such as:
\Node1*\Child20* \Node11 sum(\Node1*\value)
etc etc...
I think it would take a while to implement a solution ourselves but unfortunately we have tight very timescales. We would need to source to enable us to go through our structure based on the tokenized string.
I am not looking for XPath libraries as such, just the code to evaluate XPath style expressions.
I want to be able to interpret an XPath based expression and process our own internal data structure - our own object model implementation.
I have come across JXPath on my travels but have never used it but it seems like something that I could use. Has anyone ever used this?
Thanks,
Andez