You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/09/16 22:49:52 UTC

cvs commit: xml-xerces/c/src/xercesc/dom/impl DOMElementImpl.cpp

tng         2002/09/16 13:49:52

  Modified:    c/src/xercesc/dom/impl DOMElementImpl.cpp
  Log:
  DOM Fix: getAttributeNS should return zerolength string attribute value if the attribute is not found
  
  Revision  Changes    Path
  1.13      +2 -2      xml-xerces/c/src/xercesc/dom/impl/DOMElementImpl.cpp
  
  Index: DOMElementImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMElementImpl.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- DOMElementImpl.cpp	16 Aug 2002 19:20:28 -0000	1.12
  +++ DOMElementImpl.cpp	16 Sep 2002 20:49:52 -0000	1.13
  @@ -305,7 +305,7 @@
   {
       DOMAttr * attr=
         (DOMAttr *)(fAttributes->getNamedItemNS(fNamespaceURI, fLocalName));
  -    return (attr==0) ? 0 : attr->getValue();
  +    return (attr==0) ? XMLUni::fgZeroLenString : attr->getValue();
   }
   
   
  
  
  

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