A beginner question- is there a way of setting the Document encoding without using OutputFormatter?- eg- I now use;
OutputFormat outFormat = new OutputFormat(); outFormat.setEncoding("US-ASCII"); StringWriter writer = new StringWriter(); XMLWriter out = new XMLWriter(writer, outFormat); out.write(myDocument); String s = writer.toString(); System.out.println("MyDocument with ASCII encoding: " + s); I would like a way to just say: Document document = DocumentHelper.createDocument(); ... String serializedDocument = document.asXML(); This previous way always gives document with encoding of UTF-8- is there a way of setting the encoding without going through OutputFormat class (for performance reasons) and getting the String xml through method asXML()? Thanks, Jim ---------------------------------------------------------------------------- Bringing you mounds of caffeinated joy >>> http://thinkgeek.com/sf <<< _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user