https://kotlinlang.org logo
Title
k

ksinkar

05/19/2020, 6:44 AM
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

Amyn Bennamane

05/19/2020, 9:38 AM
I'm using dom4j+Jaxen successfully in Kotlin. What are you using, vanilla Java Jaxb? What kind of problems are you seeing exactly?
d

David Eriksson

05/21/2020, 9:33 AM
Are there XML namespaces involved? 🙂
k

ksinkar

09/08/2020, 9:37 AM
Yes. I finally used JAXB xpath to resolve the problem. JAXB XPATH worked a bit differently than the
xpath
on my bash.