Hi, Carl. "Carl Hagenmaier" <[EMAIL PROTECTED]> wrote on 2007-01-26 08:26:19 AM: > We have some old code that uses XMLSerializer and OutputFormat, > which provides the method setLineSeparator(String arg0). The code > has some problems, and I'm trying to replace it with code built on > javax.xml.transform.Transformer.
Xalan-J has a processor-specific line-separator output property that you can set on a Transformer object (or specify in a stylesheet). For example, Transformer t = TransformerFactory.newInstance().newTransformer(); t.setOutputProperty("{http://xml.apache.org/xalan}line-separator", "<EOL>"); Any Java string may be supplied as the value of the property, but you'll probably want some combination of a carriage return and/or a line feed. This output property has been supported since Xalan-J 2.7.0. Thanks, Henry ------------------------------------------------------------------ Henry Zongaro XSLT Processors Development IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044 mailto:[EMAIL PROTECTED]