Skip to main content

[JAXB2.0] Is it possible to generate a xmlschema?

2 replies [Last post]
Joined: 2003-06-17

The annotations are great!
Instead of creating a xmlschema I now create POJO's with
annotations. But is it possible to create out of these
POJO's a xmlschema?
- I want to check if the schema I want is created !
Especially the order of elements (We need to
merge multiple xmlfiles with kdiff3)
- I want to create xslt's when a schema-evolution is
needed. (A xmlschema helps a lot for this)


Reply viewing options

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

As kohsuke pointed out, the spec does describe in detail the schema generation from existing classes. Another place where you will find this information is in the javadocs (just released, see my announcement in this forum). The javadocs are written from a usage point of view and also contain one or more examples illustrating the schema generation for existing classes/properties etc.

Joined: 2003-06-09

Yes, you can. The spec describes the schema generation process in detail.

Unfortunately, that part of the RI didn't make it
into the technology preview drop, but it should be
available in the next drop.