Hi all,

I have a schema which defines an element as optional. Sometimes this element
is not present in the XML that I receive in which case Castor works just
fine and the object generated in my Java code contains NULL for the given
element. Sometimes however, the XML contains an empty start-end tag which
(since my element is numeric) generates the default value of 0. Castor
properties has the setting primitivestowrapper set to true so I would like
NULL for this as well. Is there any way to make sure that Castor sees an
empty start-end tag the same way as if it wasn't present at all??

I've read the documentation and can't find it myself if there is.

Thanks in advance,

Archie
-- 
View this message in context: 
http://www.nabble.com/Unmarshalling-XML-with-null-values--tp16993226p16993226.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