Skip to main content

How to generate classes for XML Shema xsd files ?

3 replies [Last post]
Joined: 2005-09-06

What is the exact commandline to generate the java classes to parse XML Schema files (*.xsd)
I started using the Normative definition files from ther site but it make conflicts with the built-in namespace. (which is normal).
I tried it using the file located inon my PC or on the Internet but I receive alwaysthis error:"non whitespace chaaracters not allowed in schema elements other thanxs:appinfo and xs:documentation"
This error is generated for the element in the schema.
If I use the -nv flag Ireceive the following error "Unexpected appears at line 74"

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-25

The command line for EA2 is described here - .
If schema is published on, then please provide a
URL so we can take a look at the schema; there is not enough information here for me.

Joined: 2005-09-06

The url I used is
command line java -jar jaxb-xjc.jar

Note that for other schema, I have no problem


Joined: 2003-06-09

Schema for schema has some specials in it that makes it impossible to treat it like other ordinary schemas.

If you want to do databinding with schema for schema, consider using --- this is much better representation than what XJC would be able to produce .