You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by zo...@apache.org on 2009/12/12 04:47:16 UTC
svn commit: r889881 -
/xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNodeProxy.java
Author: zongaro
Date: Sat Dec 12 03:47:15 2009
New Revision: 889881
URL: http://svn.apache.org/viewvc?rev=889881&view=rev
Log:
Committing patch for Jira bug XALANJ-2473 submitted by Martin von Gagern.
Corrects the implementation of the DOM Level 3 Node.getTextContent() method
which was return null for element nodes, rather than the string values of all
the text node descendants in document order.
Modified:
xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNodeProxy.java
Modified: xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNodeProxy.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNodeProxy.java?rev=889881&r1=889880&r2=889881&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNodeProxy.java (original)
+++ xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNodeProxy.java Sat Dec 12 03:47:15 2009
@@ -1940,7 +1940,7 @@
* @since DOM Level 3
*/
public String getTextContent() throws DOMException {
- return getNodeValue(); // overriden in some subclasses
+ return dtm.getStringValue(node).toString();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org