I'm sure this is an idiot error on my part, but when transforming, i can't seem
to get indenting to happen (although new lines are added appropriately)
I am using xerces dom3 parser.
Here's my code:
TransformerFactory tf = TransformerFactory.newInstance();
Transformer t = tf.newTransformer();
t.setOutputProperty(OutputKeys.INDENT, "yes");
t.setOutputProperty(OutputKeys.METHOD, "xml");
t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
t.setOutputProperty(OutputKeys.MEDIA_TYPE, "text/xml");
t.transform(new DOMSource(xsd), new StreamResult(xsdStream));