format-pretty-print doesn't work
According to http://java.sun.com/j2se/1.5.0/docs/api/ I should be able to use the followingDOMImplementationLS domImplementationLS = (DOMImplementationLS) doc.getImplementation();
LSSerializer lsSerializer = domImplementationLS.createLSSerializer();
lsSerializer.getDomConfig().setParameter("format-pretty-print","true");
but when I try to run the code under Java 5 or 6 I getorg.w3c.dom.DOMException: FEATURE_NOT_FOUND: The parameter format-pretty-print is not recognized.
at org.apache.xml.serialize.DOMSerializerImpl.setParameter(Unknown Source)
However, according to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6439439 this should be fixed now.
What gives? Is there a way to pretty print XML without resorting to Apache's deprecated API?

