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 "Alberto Massari (JIRA)" <xe...@xml.apache.org> on 2007/01/02 16:14:27 UTC

[jira] Resolved: (XERCESC-1473) DOMElement::setAttributeNS needlessly creates DOMAttr if a qualified name is used

     [ http://issues.apache.org/jira/browse/XERCESC-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alberto Massari resolved XERCESC-1473.
--------------------------------------

    Resolution: Fixed

Fix is in SVN

> DOMElement::setAttributeNS needlessly creates DOMAttr if a qualified name is used
> ---------------------------------------------------------------------------------
>
>                 Key: XERCESC-1473
>                 URL: http://issues.apache.org/jira/browse/XERCESC-1473
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: DOM
>    Affects Versions: 2.6.0
>            Reporter: Scott Cantor
>            Priority: Minor
>
> While debugging some memory utilization issues, I noticed that the setAttributeNS method is trying to avoid creating a new DOMAttr node by calling getAttributeNodeNS first. This returns a false negative result if the attribute name is namespace-qualified, because getAttributeNodeNS takes a *localName*, not a qualified name.
> This could be fixed, if desired, by searching for a colon in the attribute name passed in, and then passing only the local part to getAttributeNodeNS. OTOH, namespace qualified attributes are somewhat rare, so this may all be by design to speed things up for the common case. Just thought I'd note it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org