#1 Prettier XML Output

open
nobody
None
5
2004-02-29
2004-02-29
No

We are using XMLEnc for jhelpdev.sourceforge.net.
Because the created XML files might be viewed and
edited in a text editor, it would be nice to have some
more format options as well as some different default
behaviour. Here some suggestions:

-when indentation is used, put the indentation string
only before the start tags. Otherwise it is appended
to the PCDATA elements, requiring a trim() on import

-put a linebreak before each comment if linebreak is
not null

-maybe put a LineBreak.SYSTEM_DEFAULT that
automatically chooses the break character according
to the operating system

-let the user manually add linebreaks via
XMLOutputter.breakLine() or something

Thank you for creating that library!

best regards
Markus

Discussion


Log in to post a comment.