[ https://issues.apache.org/jira/browse/CXF-3193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp reassigned CXF-3193: -------------------------------- Assignee: Daniel Kulp > 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 > Assignee: Daniel Kulp > Priority: Minor > Original Estimate: 1h > Remaining Estimate: 1h > > 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.