aspose file tools*
The moose likes XML and Related Technologies and the fly likes Need Castor help with XSD Include/Imports 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 "Need Castor help with XSD Include/Imports" Watch "Need Castor help with XSD Include/Imports" New topic
Author

Need Castor help with XSD Include/Imports

Mike Kopack
Greenhorn

Joined: Jul 13, 2005
Posts: 6
Hey gang,

I'm new to Castor and I'm having a hard time getting it to generate the classes the way that I need them to. What I have is the following:

Schema A - defines a set of complexTypes, simpleTypes and some shared Elements.

Schemas B and C - different schemas that make use of the types and elements defined in A, through either an import or include.


What I NEED to have Castor do is generate 3 packages:

package A - containing the code/classes for everything in A.
package B - containing the code/classes for B, with references as needed to the classes in package A (ie, not make it's own local package copy of things defined in A)
package C - containing the code/classes for C, with references as needed to the classes in package A (ie, not make it's own local package copy of things defined in A)


When I try to do this, Castor always spits out package A, then packages B and C with all the same elements as A in their own package.

Is there any way to fix that???

Also, does it matter if I do an Import and an Include?

Thanks!

--Mike
Hari Krishna
Greenhorn

Joined: Nov 28, 2006
Posts: 12
Hi,

Please help...
I am facing the same problem..

Thanks & Regards,
Krishna.


SCJP 93%<br />SCWCD 86%<br />SCBCD 92%<br />SCDJWS 95%
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need Castor help with XSD Include/Imports
 
Similar Threads
IBM Exam 157 - Questions and Answers (Sample Exam)
Webspere 345 exam questions
j2ee
Object "Savvy"
Sun Cirtification