Peter Somora created XERCESC-2182:
-------------------------------------
Summary: Obsolete default namespace declaration when create
element with default namespace URI
Key: XERCESC-2182
URL: https://issues.apache.org/jira/browse/XERCESC-2182
Project: Xerces-C++
Issue Type: Bug
Components: DOM
Affects Versions: 3.2.2
Reporter: Peter Somora
Attachments: DOMLSSerializerImpl.cpp
When qualified element with *default* *namespace URI* is created then xerces
adds (obsolete) default namespace declaration to it.
It looks like bug in `dom\impl\DOMLSSerializerImpl.cpp: line 891`
namespaceMap->put((void*)attribute->getLocalName(),(XMLCh*)attribute->getNodeValue());
should be:
namespaceMap->put((void*)nsPrefix,(XMLCh*)attribute->getNodeValue());
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]