[ 
https://issues.apache.org/jira/browse/XMLBEANS-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551074
 ] 

Alex Marshall commented on XMLBEANS-353:
----------------------------------------

The encoding isn't known for an OutputStream either. XmlOptions allows for 
specifying a character set which is where the parsing and saving methods get 
their encoding anyway.  Hence XmlOptions.setCharacterEncoding.  It's incredibly 
frustrating having different behaviour depending on what you're writing to and 
this should really be made consistent.

> XmlTokenSource.save(Writer [, XmlOptions]) should save the XML declaration.
> ---------------------------------------------------------------------------
>
>                 Key: XMLBEANS-353
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-353
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XmlObject
>    Affects Versions: unspecified
>         Environment: Ubuntu Gutsy, Windows, JDK 1.6.0_03
>            Reporter: Alex Marshall
>            Priority: Minor
>             Fix For: unspecified
>
>
> XmlTokenSource.save(Writer [, XmlOptions]) should save the XML declaration as 
> is done with the corresponding methods using OutputStream and File.  If 
> developers don't want the XML declaration included, that's what 
> XmlOptions.setSaveNoXmlDecl is for.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to