Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Lurker - 22 Dec 2006 16:27 GMT
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.
Lurker - 22 Dec 2006 16:34 GMT
Sorry for the typo in the first sentence!!  Castor, not Castro!

> I've run the Castro code generator on a large and complicated XML
> Schema (xsd) containing many nested grouping models (choice within
[quoted text clipped - 14 lines]
>
> Any help appreciated.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.