Hi All,
 
I am using Castor (castor-1.0M2.jar) to create java classes from XML
Schemas i.e. xsd's.
Our application populates these castor generated classes using some
internal JVT's/beans. 
If an attribute in JVT/bean is null, the corresponding attribute in
castor generated class will be null. CASTOR while marshalling this class
to XML does not generate the xml tag altogether, if the corresponding
attribute in class is null/unpopulated, even the xml tag happens to be
mandatory w.r.t. xsd.

Thus the generated XML fails when validated with XSD.
 
Is there any setting/way in CASTOR to override this behaviour, so that
it generates the mandatory tags in xml, even though the corresponding
attribute in class happens to be null.

Please suggest.
 
Cheers!
Dinesh


============================================================================================================================

Tech Mahindra, formerly Mahindra-British Telecom.
 
Disclaimer:

This message and the information contained herein is proprietary and 
confidential and subject to the Tech Mahindra policy statement, you may review 
at <a 
href="http://www.techmahindra.com/Disclaimer.html";>http://www.techmahindra.com/Disclaimer.html</a>
 externally and <a 
href="http://tim.techmahindra.com/Disclaimer.html";>http://tim.techmahindra.com/Disclaimer.html</a>
 internally within Tech Mahindra.

============================================================================================================================

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

    http://xircles.codehaus.org/manage_email

Reply via email to