I am using the dom3 code, and am doing
 
     TransformerFactory tf = TransformerFactory.newInstance();
     Transformer t = tf.newTransformer();
     t.setOutputProperty(OutputKeys.INDENT, "yes");
     t.setOutputProperty(OutputKeys.METHOD, "xml");
     t.setOutputProperty(OutputKeys.MEDIA_TYPE, "text/xml");
 
     t.transform(new DOMSource(xsd), new StreamResult(xsdStream));
 
 
The output generated does insert carriage returns per element, but does not indent.
 
Is this what is supposed to happen?
 
 

Reply via email to