You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2006/03/21 08:59:35 UTC
svn commit: r387453 -
/xerces/c/branches/xerces-2.7/src/xercesc/dom/impl/DOMAttrImpl.cpp
Author: amassari
Date: Mon Mar 20 23:59:32 2006
New Revision: 387453
URL: http://svn.apache.org/viewcvs?rev=387453&view=rev
Log:
DOMAttr::getNodeValue was returning only the content of the first child node
Modified:
xerces/c/branches/xerces-2.7/src/xercesc/dom/impl/DOMAttrImpl.cpp
Modified: xerces/c/branches/xerces-2.7/src/xercesc/dom/impl/DOMAttrImpl.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/dom/impl/DOMAttrImpl.cpp?rev=387453&r1=387452&r2=387453&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/dom/impl/DOMAttrImpl.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/dom/impl/DOMAttrImpl.cpp Mon Mar 20 23:59:32 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: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org