Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAXB - bad XPath evaluation - too many 'Class' nodes in binding

843834Jun 9 2005
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2005
Added on Jun 9 2005
0 comments
293 views