svn commit: r889881 - /xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNodeProxy.java
[email protected] Sat, 12 Dec 2009 03:47:16 -0000
| Newsgroups | gmane.text.xml.xalan.cvs |
|---|---|
| Message-ID | <[email protected]> |
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();
}
/**