Hi, I want to serialize a Document object to XML using the following code:
[...] OutputFormat format = new OutputFormat(xhtmlDoc); format.setIndenting(true); format.setPreserveSpace(true); format.setLineSeparator(System.getProperty("line.separator")); format.setMethod("text/xhtml"); XMLSerializer serial = new XMLSerializer(new BufferedWriter(res.getWriter()), new OutputFormat()); DOMSerializer domserial = serial.asDOMSerializer(); domserial.serialize(xhtmlDoc); [...] res is a HttpServletResponse object. The serialized XML is submitted to the client and should be pretty printed. What I get is the complete serialize output on a single line. What do I have to do? Thanks! -Felix -- View this message in context: http://www.nabble.com/No-newlines-in-DOM-serialization-tp20526791p20526791.html Sent from the Xerces - J - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]