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 "Scott Cantor (Jira)" <xe...@xml.apache.org> on 2020/04/01 16:46:00 UTC
[jira] [Commented] (XERCESC-2182) Obsolete default namespace
declaration when create element with default namespace URI
[ https://issues.apache.org/jira/browse/XERCESC-2182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17072963#comment-17072963 ]
Scott Cantor commented on XERCESC-2182:
---------------------------------------
I think I have some idea what you mean, but an explicit example so I can verify my understanding would help a lot.
> 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
> Priority: Major
> 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