[jdom-interest] Deprecating some XMLOutputter constructors

Alex Rosen arosen at silverstream.com
Tue Jun 19 14:25:41 PDT 2001


(1) Is this is only a problem if you have mixed content?

(2) I guess I'm surprised that we try to do anything to character data that's
not just whitespace.

It would be nice if a pretty-printed document was logically unchanged if you
don't have mixed content, or if you ignored all ignorable whitespace.

Alex

> Unfortunately, then when you pretty-print text that's already pretty,
> it becomes less so.
>
> If your input is a file containing
>
> <hello>
>   my honey
>   <hello>my baby</hello>
> </hello>
>
> Then XMLOutputter("  ", true) (no normalization) will give you
>
> <?xml version="1.0" encoding="UTF-8"?>
> <hello>
>
>   my honey
>
>   <hello>my baby</hello>
>
>
> </hello>





More information about the jdom-interest mailing list