Or if
your input is already formatted and you wish to retain the same formatting, you
can set preserve space to 'true' on the OutputFormat object. Refer the API's of
OutputFormat for more details and other formatting options.
Pradeep
-----Original Message-----
From: Consultant, Rajeswari [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2001 12:32 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Output DOM to a String in a more readable format
Create OutputFormat using the following constructor which has an option for indenting the output.OutputFormat(Document doc, java.lang.String encoding, boolean indenting)
-----Original Message-----
From: Lei Chen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2001 3:25 PM
To: '[EMAIL PROTECTED]'
Subject: Output DOM to a String in a more readable formatHi,I was running the DOMGenerate example which generates a DOM and output it to a String using Serializer. Is it possible to make the String more humanly readable i.e. (newline separated and properly indented) ? Since this will be very useful for debugging.-Lei