You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Peter Somora (Jira)" <xe...@xml.apache.org> on 2019/11/22 13:35:00 UTC
[jira] [Created] (XERCESC-2182) Obsolete default namespace
declaration when create element with default namespace URI
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org