File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes jaxb binding rror confused Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "jaxb binding rror confused" Watch "jaxb binding rror confused" New topic

jaxb binding rror confused

Erwin Bredford
Ranch Hand

Joined: Feb 11, 2003
Posts: 167
please could u help i have this xsd i am trying to bind
but the xjc complier .i don't see anything wrong with the schema and the xml validator is successful.
the problem when it try to generate the classes with xjc
i get this error

there no dulipcate PersonType i am very confused.

The xml i am trying get with this schema is

thanks i will really be very grateful if someone can explain this to me

--One learns a lot during a lesson but seeing is not enough,you must do;knowing is not enough ,you must apply--<br />SCJP 1.4,SCBCD,SCEA part 1,OCM JEE Enterprise Architect.
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Your schema has two personType

instead try changing one name as below

this might solve the problem.

Spritle Software Blogs
Erwin Bredford
Ranch Hand

Joined: Feb 11, 2003
Posts: 167
thanks i solved the problem but ur suggestion was not the solution xml schema is case sensitive so it does not matter .
thanks again
I agree. Here's the link:
subject: jaxb binding rror confused
It's not a secret anymore!