Hi,

I'm relatively new to xml, marshaling/unmarshaling, castor, and this forum. 
I've gone through 
http://www.ibm.com/developerworks/xml/library/x-xjavacastor3/ this tutorial
.

I need to marshal a large hashtable of a custom java object onto an XML
file.  This XML file must conform to an existing XSD file.  The object's
class will be modified to conform to castor API (for set, get functions),
but I want to keep changes to a minimum.

I'll later need to unmarshal from the XML file to a collection of my
objects, for maintenance.  I know castor has its own mapping file that needs
to be created manually.

So what I need help with is, how should I go about creating the mapping
file?  Do I need to create the mapping file by looking at the XSD, manually? 
Is there a way to automate this?

Is there another approach to my scenario?  I know I can also create classes
(or class descriptors [is that the same thing?]) from XSD files using the
sourceCodeGen (sp?) tool.  However, I want to try to avoid this approach (of
using a generated class as it would be an unnecessarily larger class).  I'll
use it if theres no other way.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Marshalling-to-XML-conforming-to-existing-XSD-tp18611513p18611513.html
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to