Has anyone used JAXB for XPath querying of an XML ...
# server
k
Has anyone used JAXB for XPath querying of an XML document successfully? I have been trying to use that on some XML documents. I have used the
xpath
CLI tool to query the XML document in question, but with JAXB XPath. I am not getting the same/expected results with JAXB XPath query analyzer. Is there an alternative to JAXB in Kotlin?
a
I'm using dom4j+Jaxen successfully in Kotlin. What are you using, vanilla Java Jaxb? What kind of problems are you seeing exactly?
d
Are there XML namespaces involved? 🙂
k
Yes. I finally used JAXB xpath to resolve the problem. JAXB XPATH worked a bit differently than the
xpath
on my bash.