aspose file tools*
The moose likes XML and Related Technologies and the fly likes JAXB with mulitple XSD's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB with mulitple XSD Watch "JAXB with mulitple XSD New topic
Author

JAXB with mulitple XSD's

Hendrik Louw
Greenhorn

Joined: Mar 01, 2007
Posts: 5
Hi.
I've got a very intressting problem.

I need to create 2 diffrent XML's using JAXB. Both of the XSD's "import" a shared XSD which defines some common data types.

now, when I generate the jaxb, I'd like to generate the jaxb stubs for each XSD within it's own package. Now my problem is that, since the XSD imports the shared one and I generate each one in it's own package, the "shared" stubs are duplicated. What I would like it to do is generate the stubs for the shared XSD into a seperate package, and instruct the xjc compiler to use the already generated stubs instead of generating them again ?

I've googled as much as possible, but cannot find anything about this.
Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB with mulitple XSD's
 
Similar Threads
JAXB - simple type classes ?
JaxB : Using Same Package For Two XSDs
Java objects to XML, possibly using JAXB
Problem with importing multiple wsdl in one wsdl file.
Discrepancies between an XML file and the XSD it was generated from (via JAXB)