You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Michael Ahern (JIRA)" <ji...@apache.org> on 2009/01/06 21:39:44 UTC

[jira] Created: (ABDERA-211) No way to explicitly declare namespaces using StreamWriter interface

No way to explicitly declare namespaces using StreamWriter interface
--------------------------------------------------------------------

                 Key: ABDERA-211
                 URL: https://issues.apache.org/jira/browse/ABDERA-211
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 0.4.0
         Environment: NA
            Reporter: Michael Ahern


There is no way to declare a namespace using the Abdera StreamWriter interface.  This leads to redundant namespace declarations throughout the generated XML documents.

To make this work in with the underlying XMLStreamWriter set the following factory option:

XMLOutputFactory factory = XMLOutputFactory.newInstance();
factory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, true);

And then provide the following two methods to the StreamWriter interface:

'setPrefix()'
'writeNamespace()'

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


[jira] Commented: (ABDERA-211) No way to explicitly declare namespaces using StreamWriter interface

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ABDERA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705718#action_12705718 ] 

James M Snell commented on ABDERA-211:
--------------------------------------

A fix is implemented and pending. Will check it in once my access to svn.apache.org is restored

> No way to explicitly declare namespaces using StreamWriter interface
> --------------------------------------------------------------------
>
>                 Key: ABDERA-211
>                 URL: https://issues.apache.org/jira/browse/ABDERA-211
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>         Environment: NA
>            Reporter: Michael Ahern
>
> There is no way to declare a namespace using the Abdera StreamWriter interface.  This leads to redundant namespace declarations throughout the generated XML documents.
> To make this work in with the underlying XMLStreamWriter set the following factory option:
> XMLOutputFactory factory = XMLOutputFactory.newInstance();
> factory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, true);
> And then provide the following two methods to the StreamWriter interface:
> 'setPrefix()'
> 'writeNamespace()'

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


[jira] Assigned: (ABDERA-211) No way to explicitly declare namespaces using StreamWriter interface

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ABDERA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James M Snell reassigned ABDERA-211:
------------------------------------

    Assignee: James M Snell

> No way to explicitly declare namespaces using StreamWriter interface
> --------------------------------------------------------------------
>
>                 Key: ABDERA-211
>                 URL: https://issues.apache.org/jira/browse/ABDERA-211
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>         Environment: NA
>            Reporter: Michael Ahern
>            Assignee: James M Snell
>
> There is no way to declare a namespace using the Abdera StreamWriter interface.  This leads to redundant namespace declarations throughout the generated XML documents.
> To make this work in with the underlying XMLStreamWriter set the following factory option:
> XMLOutputFactory factory = XMLOutputFactory.newInstance();
> factory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, true);
> And then provide the following two methods to the StreamWriter interface:
> 'setPrefix()'
> 'writeNamespace()'

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


[jira] Resolved: (ABDERA-211) No way to explicitly declare namespaces using StreamWriter interface

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ABDERA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James M Snell resolved ABDERA-211.
----------------------------------

    Resolution: Fixed

Fix committed

> No way to explicitly declare namespaces using StreamWriter interface
> --------------------------------------------------------------------
>
>                 Key: ABDERA-211
>                 URL: https://issues.apache.org/jira/browse/ABDERA-211
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>         Environment: NA
>            Reporter: Michael Ahern
>            Assignee: James M Snell
>
> There is no way to declare a namespace using the Abdera StreamWriter interface.  This leads to redundant namespace declarations throughout the generated XML documents.
> To make this work in with the underlying XMLStreamWriter set the following factory option:
> XMLOutputFactory factory = XMLOutputFactory.newInstance();
> factory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, true);
> And then provide the following two methods to the StreamWriter interface:
> 'setPrefix()'
> 'writeNamespace()'

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