Hi Farrukh and Kathy, actually, this question popped up on the list several times...just have a look at the API of the Marshaller..
http://castor.exolab.org/api/org/exolab/castor/xml/Marshaller.html#setMarshalAsDocument(boolean) Cheers Nick -----Original Message----- From: Kathy Walsh - Java Software Engineering East [mailto:[EMAIL PROTECTED]] Sent: Friday, January 18, 2002 5:00 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Avoiding XML declrataion at top of marshal output oh - I don't have the stripping code anymore - otherwise I'd pass it along- k Farrukh Najmi wrote: > I am marshaling a Castor object to be enclosed within a SOAP message. > The marshal method outputs the XML declaration like: > > <?xml version="1.0"?> > > at the top of the output. Is there a way to tell Castor to not do that > since when it is in the middle if a SOAP message it causes errors in > parsers. > > Alternatively does anyone have code they can share that strips the XML > declaration out? Thanks. > > -- > Regards, > Farrukh > > ----------------------------------------------------------- > 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 ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
