Hi Max,

Max Bowsher <[EMAIL PROTECTED]> wrote on 05/20/2007 07:41:35 AM:

> Currently I have some code which uses org.apache.xml.serialize to
> convert SAX events into nicely-indented XML output.  Having recently
> noticed that that package is deprecated, I can't see any obvious
> migration path, as I cannot figure out how to get the JAXP
> transformation APIs to produce indented output.
> 
> Could someone point me in the right direction?

You're probably looking for OutputKeys.INDENT [1]. You can set this as an 
output property of a Transformer / TransformerHandler.

> Thanks,
> Max.

[1] 
http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/transform/OutputKeys.html#INDENT

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

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

Reply via email to