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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top