Peter Donald wrote:
>Theres a method setOutputStream in DefaultConfigSerializer. You need to add a
>line similar to
>
> m_format.put(OutputKeys.INDENT,"yes");
>
You were exactly correct.
This will add line feeds after each element. It does not however do any
space indentation to place
the xml in a tree like form:
---
|<a>
| <b>
| <c1>
| foo
| </c1
| <c1>
| foo
| </c1
| </b>
|</a>
---
Still it is a lot better and more readable than before. Thanks.
>I forget exact code but the above should give you a hint. If you could make
>the serializer configurable so that it generated "nice" XML if you did
>something like
>
>serializer.setIndent( true );
>
Committed.
Cheers,
Leif
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>