Storing a big xml string in a xml document in java

Posted by shyam R on Stack Overflow See other posts from Stack Overflow or by shyam R
Published on 2011-02-05T07:17:50Z Indexed on 2011/02/05 7:26 UTC
Read the original article Hit count: 177

Filed under:
|

Hi All,

I Have a Java object which I am converting into a xml file. I am getting a big xml file here after converting java object.

I am capturing that converted xml file in a string like below

String ouputXML = xmlfile;

Noe If I pring the ouputXML on the console of IBM RSA in the proper format only it is printing but my requirement is I need to redirect outputXML in to an XML instead of printing in IBm RSA console.

I am able to do this but the problem is if I open the craetd XML file the xml structure is not proper , it is showing so many special characters .

Please help me !!

© Stack Overflow or respective owner

Related posts about java

Related posts about j2ee