Hi,

My problem is that it only works what I put in the castor.properties

String encoding = "ISO-8859-1";
FileOutputStream fos = new FileOutputStream(pathFile);
OutputStreamWriter osw = new OutputStreamWriter(fos, encoding);
Marshaller marshaller = new Marshaller(osw);
marshaller.setEncoding(encoding);
marshaller.setValidation(false);
marshaller.marshal(xmlCci, osw);

The encoding isn´t working either, I have to do it manually.
I am using the castor control

Thank you,
Miguel Ángel



AVISO LEGAL

Este mensaje está dirigido únicamente a su destinatario y es confidencial. Si lo ha recibido por error, CECA le informa que su contenido es reservado y su lectura, copia y uso no está autorizado. CECA no garantiza la confidencialidad de los mensajes transmitidos vía internet y se reserva el derecho a ejercer las acciones legales que le correspondan contra todo tercero que acceda de forma ilegítima al contenido de este mensaje y al de los ficheros contenidos en el mismo.





"Werner Guttmann" <[EMAIL PROTECTED]>

16/01/2006 13:45
Por favor, responda a user

       
        Para:        <[email protected]>
        cc:        
        Asunto:        RE: [castor-user] Validation


Well, in that case, can you please bit a more specific ? What kind of validation are you trying to control ? Parser validation ?  Castor validation ? Durring unmarshalling ?
 
Werner


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Montag, 16. Jänner 2006 12:51
To:
[email protected]
Subject:
Re: [castor-user] Validation



Hello,


I have  tried to do what you said but it doesn´t seem to work, can you think of anything else?


Thank  you



AVISO LEGAL

Este mensaje está dirigido únicamente a su destinatario y es confidencial. Si lo ha recibido por error, CECA le informa que su contenido es reservado y su lectura, copia y uso no está autorizado. CECA no garantiza la confidencialidad de los mensajes transmitidos vía internet y se reserva el derecho a ejercer las acciones legales que le correspondan contra todo tercero que acceda de forma ilegítima al contenido de este mensaje y al de los ficheros contenidos en el mismo.




Werner Guttmann <[EMAIL PROTECTED]>

11/01/2006 19:22
Por favor, responda a user

       
       Para:        [email protected]

       cc:        

       Asunto:        Re: [castor-user] Validation



Miguel,

you might want to take a look at the
LocalConfiguration.getProperties().setProperty(String, ...) to
instruct Castor XM whether to validate (or not) programmatically.

Werner

[EMAIL PROTECTED] wrote:
>
> Hi all,
>
> I want to be able to change the validation of the marshall xml when
> required.
> At the moment we can only change the validation with the file
> castor.properties.
> When we use the marshall xml it is validated automatically.
> If we try to use marshaller.set.Validate(false) it doesn´t work when I
> writte in the file castor.properties
>
> # True if all documents should be validated by the marshalling framework
> #
> org.exolab.castor.marshalling.validation=true
>
> Regards,
>
> Miguel Angel

>
> ------------------------------------------------------------------------
>
> *AVISO LEGAL*
>
> Este mensaje está dirigido únicamente a su destinatario y es
> confidencial. Si lo ha recibido por error, CECA le informa que su
> contenido es reservado y su lectura, copia y uso no está autorizado.
> CECA no garantiza la confidencialidad de los mensajes transmitidos vía
> internet y se reserva el derecho a ejercer las acciones legales que le
> correspondan contra todo tercero que acceda de forma ilegítima al
> contenido de este mensaje y al de los ficheros contenidos en el mismo.
>
> ------------------------------------------------------------------------
> ------------------------------------------------- If you wish to
> unsubscribe from this list, please send an empty message to the
> following address: [EMAIL PROTECTED]
> -------------------------------------------------


-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------




------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------


------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

Reply via email to