[jdom-interest] Default line separator in XMLOutputter

Laurent Bihanic laurent.bihanic at atosorigin.com
Wed Apr 16 05:01:10 PDT 2003


Does anyone know why the line separator (STANDARD_LINE_SEPARATOR) default 
value is set to "\r\n" in XMLOutputter rather than using the platform default 
(system property "line.seperator")?

The XML spec. (section 2.11) normalizes the value passed by the parser to the 
application but states that any combination of carriage-return (#xD) and 
line-feed (#xA) is valid as input.

Laurent





More information about the jdom-interest mailing list