Unless you are extremely careful about how yout do it (only inserting 
indentation in places where whitespace is not meaningful, as defined by 
the DTD and/or Schema and/or your program's understanding of the data), 
indentation can change the meaning of your document. That's why it isn't 
the default.

I'm not sure whether Xerces' serializers offer an indentation option. 

XSLT does, via the  <xml:output indent="yes"/> setting, so you could use 
Xalan and an identity transformation to get this result. (You'd also have 
to set the indentation amount; I believe Xalan currently defaults to 0 -- 
but the Xalan lists would be the right place for to go into detail on 
that.)
______________________________________
Joe Kesselman  / IBM Research

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

Reply via email to