>
> It sounds like in JDK6 org.w3c.dom.ls.LSSerializer should be used, i've
> added some code to try that here:
> https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Utils.java
>
> It still doesn't seem perfect code, and it doesn't seem great to have to
> serialize to an xml string then read into a Document then serialize back to
> formatted xml string.
>
>    ...ant
>
>

Not sure without reading the doc in detail but is there a way to
convert the result in the XMLStreamWriter into a StAX source for a
Transformer with indenting set on.

If you already have it working it may be more trouble than it's worth
trying to answer that question.

Regards

Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Reply via email to