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 format

Hi,
 
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
 

Reply via email to