Hi everybody! I'm trying to get rid of the xml declarations in the output when transforming a xml file (I'm transforming a xml file to a text file). I both tried: transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION , "no"); and <xsl:output method="text" omit-xml-declaration="no"/>. None of these seems to work!
Here are my java code: DocumentSource source = new DocumentSource( document ); XMLResult result = new XMLResult(out); transformer.setOutputProperty(OutputKeys.METHOD, "text"); transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION , "no"); transformer.transform(source, result); Does somebody have an idea? Thanks in advance, Theis. _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
