[jdom-interest] Output a XML String without the encoding
    Trikannad, Mahesh 
    mahesh.trikannad at capgemini.com
       
    Mon Mar 28 11:31:20 PST 2005
    
    
  
Thanks Hyder and Brad.
Mahesh
________________________________
From: Bradley S. Huffman [mailto:hip at a.cs.okstate.edu]
Sent: Mon 3/28/2005 2:19 PM
To: Trikannad, Mahesh
Cc: jdom-interest at jdom.org
Subject: Re: [jdom-interest] Output a XML String without the encoding
XMLOutputter outputter = new XMLOutputter();
Foramt format = outputter.getFormat();
format.setOmitDeclarations(true);
outputter.setFormat(format);
Brad
"Trikannad, Mahesh" writes:
> Hi All,
> =0D
> Is there a way I can ouput the XML string off a Document, without the first=
>  line containing the encoding=2E
> ( The line with <?xml version=3D"1=2E0" encoding=3D"UTF-8"?> )
> =0D
> Iam talking to a external system, which for some reason does not want the=
>  encoding=2E
> =0D
> Currently this is what I do
> =0D
>  public String toString()
>    {
>     XMLOutputter outputter =3D new XMLOutputter();
>     return outputter=2EoutputString(myDocument);
>    }
> =0D
> Regards
> =0D
> Mahesh
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050328/c867932a/attachment.htm
    
    
More information about the jdom-interest
mailing list