abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Ahern (JIRA)" <j...@apache.org>
Subject [jira] Created: (ABDERA-211) No way to explicitly declare namespaces using StreamWriter interface
Date Tue, 06 Jan 2009 20:39:44 GMT
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.


Mime
View raw message