Writer required for indented XML output?

I

Ian Pilcher

I am using the technique mentioned on this page to create indented XML
output with Sun's Java 1.5.0_04:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6296446

It seems to work, but using a Writer seems both inefficient and error-
prone (for the reasons mentioned in the StreamResult Javadoc). In my
very limited testing, omitting the writer and creating a StreamResult
directly from an OutputStream seems to work OK.

Does anyone know what "'buggy' behavior" is being referred to? I've
checked the referenced forum thread, and there's no relevant
information.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top