Author: amassari
Date: Tue Mar 21 00:00:00 2006
New Revision: 387454

URL: http://svn.apache.org/viewcvs?rev=387454&view=rev
Log:
DOMAttr::getNodeValue was returning only the content of the first child node

Modified:
    xerces/c/trunk/src/xercesc/dom/impl/DOMAttrImpl.cpp

Modified: xerces/c/trunk/src/xercesc/dom/impl/DOMAttrImpl.cpp
URL: 
http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/dom/impl/DOMAttrImpl.cpp?rev=387454&r1=387453&r2=387454&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/dom/impl/DOMAttrImpl.cpp (original)
+++ xerces/c/trunk/src/xercesc/dom/impl/DOMAttrImpl.cpp Tue Mar 21 00:00:00 2006
@@ -114,7 +114,7 @@
     }
 
     //
-    // Complicated case whre attribute value is a DOM tree
+    // Complicated case where attribute value is a DOM tree
     //
     // According to the spec, the child nodes of the Attr node may be either
     // Text or EntityReference nodes.
@@ -125,7 +125,8 @@
     //
 
     XMLBuffer buf(1023, ((DOMDocumentImpl 
*)this->getOwnerDocument())->getMemoryManager());
-    getTextValue(fParent.fFirstChild, buf);
+    for (node = fParent.fFirstChild; node != 0; node = 
castToChildImpl(node)->nextSibling)
+        getTextValue(node, buf);
 
     return (XMLCh*) ((DOMDocumentImpl 
*)this->getOwnerDocument())->getPooledString(buf.getRawBuffer());
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to