How to use Castor generated java classes when XML schema contains many nested groups

L

Lurker

I've run the Castro code generator on a large and complicated XML
Schema (xsd) containing many nested grouping models (choice within
sequence within sequence within choice, etc.). The resulting code
contains many "intermediate" classes such (assuming a class named
Abst.java) AbstSequence.java, AbstSequenceSequence.java,
AbstSequenceSequenceSequenceChoiceSequence.java, etc., etc.

Is this normal?!? Am I doing something wrong? How do I use these
classes to unmarshal the data in my XML. Can I configure things so
that these classes don't show up at all? I thought of somehow
eliminating the grouping models from my schema altogether, but I don't
know how to do that, or if that is even possible or makes sense.

FYI, in my app I will never be marshalling data into XML. I've got
many thousands of valid, well-formed XML instance files that I only
need to read (i.e., unmarshal).

Any help appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top