Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

jaxb

xpath

xsd

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!!

like image 936
user1610075 Avatar asked Aug 20 '12 18:08

user1610075


1 Answers

Try to add multiple="true" attribute:

<jxb:bindings multiple="true" node="//xs:attribute[@type='Id']"
like image 112
Michal Moravcik Avatar answered Oct 09 '22 06:10

Michal Moravcik