use the following 
format.setIndenting(true) ;
format.setIndent(4) ;

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 11:44 AM
To: [EMAIL PROTECTED]
Subject: Format control in XMLSerializer



Hi all,

I have a question about DOMGenerate Xerces example:

Is there a way to make XML serializer produce output:
STRXML = <person>
<name>Jeff</name>
<age>28</age>
<height>1.80</height>
</person>


I'm using DOMGenerate example and if I set indent=0 it puts all the output
in one line:

          format.setOmitXMLDeclaration(true);
          format.setIndenting(true);
          format.setIndent(0);

STRXML
= <person><name>Jeff</name><age>28</age><height>1.80</height></person>

Any help is appreciated.

Vlad



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to