I need to use some complex XPath queries on scala.
Is there a library that can execute XPath queries on Scala XML nodes?
Something like this:
val node: xml.Node = ...;
val result = TheXPathLibrary.query(node, "//a[2]/b[@type='c']/c");
I've tried with scala-xml-jaxen, but I failed to compile it. (I recently posted this issue.)
I am aware that you can achieve the same functionality of XPath queries in Scala without using XPath. However, this question is about finding out a library with allows to execute XPath queries.