Hi Karl,

[EMAIL PROTECTED] wrote:
> Hi List Subscribers,
> 
> If I set the property org.exolab.castor.marshalling.validation to 'true'
> whilst marshalling POJOs what exactly does this validate?
This will basically allow for validation at the object level before
marshalling your object instance(s) to XML will commence. Having said
that, this mostly makes sense in the context of generated classes only,
where the XML source generator (code generator) will generate domain
classes and descriptor classes for given XML schema artefacts.

The mapping file for Castor XML does allow you to specify validators as
well.

Does this answer your question ?

Regards
Werner
Committer, Castor
> 
> If I include a reference to an XSD, will it validate the marshalled XML
> against the XSD, or is the XSD only used during unmarshalling?
Not without asking for this to be done specifically. And the property
mentioned above does *not* trigger this.

Having said that, I am actually not sure whether validation against an
XML schema is supported during marshalling. It definitely is upon
unmarshalling, as this task is delegated to the underlying XML parser.

> 
> 
> Karl
> 
> 
> 
> ************************************************************
> Copyright in this message and any attachments remains with us. It is 
> confidential and may be legally privileged. If this message is not intended 
> for you it must not be read, copied or used by you or disclosed to anyone 
> else. Please advise the sender immediately if you have received this message 
> in error.
> 
> Although this message and any attachments are believed to be free of any 
> virus or other defect that might affect any computer system into which it is 
> received and opened it is the responsibility of the recipient to ensure that 
> it is virus free and no responsibility is accepted by Allianz Insurance plc 
> for any loss or damage in any way arising from its use.
> 
> Cornhill Direct is a trading name of Allianz Insurance plc.
> 
> Pet Plan Ltd, Home and Legacy Insurance Services Ltd, Premierline Direct Ltd 
> and Cornhill Solutions Ltd are part of the Allianz (UK) group of companies.
> 
> Allianz Insurance plc, Registered in England number 84638. 
> Registered Office: 57 Ladymead, Guildford, Surrey GU1 1DB.
> Allianz Engineering Inspection Services Ltd. Registered in England number 
> 5441840. Registered Office: 57 Ladymead, Guildford, Surrey GU1 1DB UK
> 
> Allianz Insurance plc is authorised and regulated by the 
> Financial Services Authority.
> 
> ************************************************************
> 


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

    http://xircles.codehaus.org/manage_email


Reply via email to