*
The moose likes XML and Related Technologies and the fly likes Handling same name for multiple elements in jaxb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Handling same name for multiple elements in jaxb" Watch "Handling same name for multiple elements in jaxb" New topic
Author

Handling same name for multiple elements in jaxb

Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
Hi,

I have a xsd that looks like


and jaxb binding like




when I try to generate java class i get error XPath evaluation of "//xs:element[@name='Something']" results in too many (2) target nodes

any solution?


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling same name for multiple elements in jaxb
 
Similar Threads
Passing Set<java.lang.Object> and List<java.lang.Object> in Axis 2.0
Help in creating XML Schema
xml validation failure
JaxB Compile Error: Failed to read imported schema document
XJC generator