Dmitri Colebatch wrote:
> XMLBeans gets around this by only including the xml decl if you use
>
>the OutputStream. Perhaps this is something that jaxb could consider.
>
>
My understanding is that the XML spec states that, if the XML
declaration is omitted, then the encoding is UTF-8 by implication.
Therefore, omitting the XML declaration really achieves nothing here.
Including an explicit declaration of 'encoding="utf-8"' is semantically
equivalent to omitting the declaration.
--
Best regards,
Robert Lowe
http://rmlowe.com/