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++
        Type: Improvement
  Components: DOM  
    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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to