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

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

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


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

Posted by "David Kramer (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896587#action_12896587 ] 

David Kramer commented on XMLBEANS-353:
---------------------------------------

Hmmm.  Just restested and it seems to work (ie when I use save with an OutputStream and an options, it writes out the xml declaration.

This issue should be closed as fixed.

> 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


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

Posted by "Alex Marshall (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Marshall reopened XMLBEANS-353:
------------------------------------


Please have another look, I don't see why this cannot be fixed.  All the information required is in XmlOptions.

> 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


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

Posted by "Cezar Andrei (JIRA)" <xm...@xml.apache.org>.
     [ 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


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

Posted by "Alex Marshall (JIRA)" <xm...@xml.apache.org>.
    [ 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


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

Posted by "David Kramer (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896564#action_12896564 ] 

David Kramer commented on XMLBEANS-353:
---------------------------------------

Is this issue still open after four years?

If this isn't going to get fixed,
- Is there a way to have the xml declaration added, short of appending a hard-coded string?

- Can the JavaDoc be updated to reflect that save will not add the xml delcaration?

> 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


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

Posted by "Cezar Andrei (JIRA)" <xm...@xml.apache.org>.
     [ 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]) 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