CachingXmlEventWriter.NSContext supports only one prefix for a namespace 
(backed by map)
----------------------------------------------------------------------------------------

                 Key: CXF-3193
                 URL: https://issues.apache.org/jira/browse/CXF-3193
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.3.2
         Environment: redhat tomcat
            Reporter: Peter
            Priority: Minor


CachingXmlEventWriter.NSContext supports only one prefix for a namespace. As a 
result we have DOUBLE declaration of the SAMEprefix in an element (output xml). 
We use xmlbeans binding so that org.apache.cxf.xmlbeans.DataWriterImpl uses 
StaxUtils.copy. This StaxUtils.copy.writeStartElement writes namespaces from 
elements and attributes. If we have many different prefixes for the same 
namespace and the prefixes are used also in attributes then 
StaxUtils.copy.writeStartElement outputs DOUBLE declaration:

input
<a:elem1 a:xmlns="test" b:xmlns="test" a:attr1="value">

output

<a:elem1 a:xmlns="test" b:xmlns="test" a:attr1="value" a:xmlns="test">

invalid: double a:xmlns="test" declaration

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

Reply via email to