[jdom-interest] XMLOutputter
andnewlinesafterdeclaration/doctype
Elliotte Rusty Harold
elharo at metalab.unc.edu
Fri Dec 20 08:14:44 PST 2002
At 10:22 AM -0500 12/20/02, <Vadim.Strizhevsky at morganstanley.com> wrote:
>I guess I could also do this:
>
>outputter.setLineSeparator("");
>
>
That probably works now. I wouldn't count on it working forever. In
particular, if XMLOutputter ever got an option to set the maximum
line length, then line breaks might be used in place of spaces to
separate attributes inside tags. Setting the line break to nothing
could produce malformed output. There might be other issues. Setting
it to a single space might be safer.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
More information about the jdom-interest
mailing list