private Transformer createIndentingTransformer ( ) throws TransformerConfigurationException { Transformer transformer = createTransformer ( ) ; transformer . setOutputProperty ( OutputKeys . OMIT_XML_DECLARATION , "yes" ) ; transformer . setOutputProperty ( OutputKeys . INDENT , "yes" ) ; return transformer ; }
Get transformer implementation with output properties set .