jaxb bindingx.xml "results in too many target nodes"

jaxb, xpath, xsd

Solution

Try to add multiple="true" attribute:

<jxb:bindings multiple="true" node="//xs:attribute[@type='Id']"

Problem

I'm trying to make just one adapter for every type of element, so I created a bindings.xml file: ``` <jxb:bindings node="//xs:attribute[@type='Id']" ``` so, my intention is to address to every attribute of type "Id". Problem is that xjc tells me "too many target nodes(3)" ... but it's just what I want!!

Original source