JAXB - bad XPath evaluation - too many 'Class' nodes in binding
Here's the error I'm getting:XPath evaluation of "//xs:element[@name='Class']" results in too many (10) target nodes line 10 of binding.jxb
A snippet of my bindings file has:
<jxb:bindings node="//xs:element[@name='Class']">
<jxb:class name="Clazz"/>
<jxb:property name="Clazz"/>
</jxb:bindings>
I am in a situation where I can't modify the XSD I'm trying to generate from. The XSD is huge and obviously doesn't come from Java Developers considering they use the 'Class' keyword in it. How do I tell XPath to ignore the max target node of 10 and just continue?
Thanks