Hello all,
I am trying to marshall an invalid element and am expecting a validation
exception. I use Castor 0.9.3. When I try to use a mapping to marshall,
no exception is thrown and my element is marshalled even though it is
invalid :
Marshaller marshaller = new Marshaller (mySerializer);
Mapping mapping = new Mapping();
mapping.loadMapping("file:/c:/mapping.xml");
marshaller.setMapping(mapping);
marshaller.marshal(myObject);
When I just remove the line "marshaller.setMapping()", the
exception is thrown and the object is not marshalled.
I have the following line in my castor.properties :
org.exolab.castor.validation=true
Is the use of a mapping file incompatible with validating ?
Thanks for any idea!
Christophe
--
Christophe Melchior -
mailto:[EMAIL PROTECTED]
Webraska is the worldwide provider of wireless navigation, spatial
searching, mapping and traffic information services and technologies for
telecom operators, car manufacturers, and application developpers.
Webraska
Wireless Navigation Worldwide�
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev