On Fri, 2004-06-18 at 07:18, Dragos Haiduc wrote:
> programatically, try marshaller.setValidation(false);
> This must work.
> Dragos
> 

I'm marshalling with the object itself and not with the Marshaller
class.

MyObject obj;
java.io.PrintWriter out;

obj.marshal(out);

I mean, I have a structure of class objects built from a schema file,
and I dynamic build a root element which in the end I marshaling it to a
java.io.Writer. And I don't have any setValidation(boolean) in my object
API.

How can I disable the validation in this way? 
Can I marshalling my root object using the Marshaller class instead with
the class itself?

regards,
Pedro Salazar.

> Pedro Salazar wrote:
> 
> >Greetings,
> >
> >I'm trying to disable validation when marshalling a bundle of java
> >objects to a xml string. I set
> >'org.exolab.castor.marshalling.validation' property to 'false' in
> >castor.properties (included in my WAR classes).
> >
> >It appears to have no effect.
> >
> >I'm missing something here?
> >
> >thanks,
> >Pedro Salazar.
-- 
Pedro Salazar
pedro-b-salazar \at ptinovacao \dot pt
PGP 0xD803BC61 http://www.keyserver.net



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to