Yes you can turn it off. It's part of the API...

see method "Marshaller#setMarshalAsDocument"

--Keith

Deepak Singhal wrote:
> 
> <?xml version="1.0"?>  Is there a way to turn off this XML declaration
> when marshalling?
> 
> I am using Castor to generate XML for existing objects using the
> mapping file (without source generation).  For reasons difficult to
> explain here I then need to concatenate the different generated XML
> strings.  It would be nice if I didn't have to take out the above
> declaration from each generated XML string.  I am not using Castor to
> unmarshall.
> 
> Thanks
> 
> Deepak
> 
> ----------------------------------------------------------------------
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> ----------------------------------------------------------- If you
> wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

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

Reply via email to