Deepak Singhal wrote:
>
> Is there a way to get Castor to insert namespace/XML schema
> information in the marshalled file - either hard coded or from a
> property of the object being marshalled.
If you are using the source code generator to create classes for you XML
Schema, castor will retain the targetNamespace during marshalling.
If you are using a mapping file you'll need to set the namespace in the
mapping file.
>
> Also, can Castor be configured to automatically validate the
> marshalled XML file? Thanks
Yes. If you are using the source code generator..it should be set by
default, but you can check your castor.properties file. If you are using
your own classes with a mapping file, then you'll need to enable
validation via the XML parser. see castor.properties for more
information.
Thanks,
--Keith
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev