[jdom-interest] XMLOutputter and newlines after declaration/doctype
Bradley S. Huffman
hip at a.cs.okstate.edu
Wed Dec 18 14:44:16 PST 2002
Vadim Strizhevsky writes:
> For now I will have XMLOutputter subclass that duplicates
> printDeclaration and printDocType methods and doesn't print the newlines
> when newline option is set to false.
Or use a sequence like
out.write("<?xml version=\"1.0\"?>");
XMLOutputter.output(document.get DocType, out);
XMLOutputter.output(document.getRootElement(), out);
> Also I noticed a signle use of "\n" instead of lineSeparator in the
> latest printDocType code.
Hmm, thought that was changed.
Brad
More information about the jdom-interest
mailing list