/** * http://www.atmarkit.co.jp/fxml/rensai2/xmltool04/02.html * * @return */ private static Transformer getTransformer() { if (s_transformer == null) { TransformerFactory transFactory = TransformerFactory.newInstance(); try { s_transformer = transFactory.newTransformer(); } catch (TransformerConfigurationException e) { } s_transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); s_transformer.setOutputProperty(OutputKeys.INDENT, "yes"); } // if return s_transformer; }