<BUG>serializer.transform(domSource, streamResult);}</BUG><CONTEXT>StreamResult streamResult=new StreamResult(new File(protocol.getSimpleName() + ".xml"));TransformerFactory tf=TransformerFactory.newInstance();Transformer serializer=tf.newTransformer();serializer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1");serializer.setOutputProperty(OutputKeys.INDENT, "yes");<extra_id_0>}private static Element createXMLTree(Document xmldoc) throws ParserConfigurationException {Element root=xmldoc.getDocumentElement();</CONTEXT>
[DELETED]