Are any of the following XPath expressions acceptable? Using version 2.3.1 of eclipselink
@XmlPath("../header/@type")
@XmlPath("/root/header/@type")
@XmlPath("parent::*/header/@type")
Basically this is in a class which repeats within the XML document (/root/tag
), if that isn't clear I'll elaborate.
I'm trying to traverse up the tree rather than down. My other @XmlPath
annotations are working fine.
EclipseLink JAXB (MOXy) does currently not support axes/parent. If you are interested in this kind of support please enter an enhancement request:
It does support XPath like:
For More Information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With