You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Cezar Andrei (JIRA)" <xm...@xml.apache.org> on 2007/12/11 20:37:43 UTC

[jira] Closed: (XMLBEANS-353) XmlTokenSource.save(Writer [, XmlOptions]) should save the XML declaration.

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

Cezar Andrei closed XMLBEANS-353.
---------------------------------

    Resolution: Fixed

XmlTokenSource.save(Writer [, XmlOptions]) cannot include the xml declaration since the declaration includes the encoding, and the encoding is not known for a writer.

> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org