8032908: getTextContent doesn't return string in JAXP
authoraefimov
Thu, 31 Jul 2014 11:34:34 +0400
changeset 25836 a6b6afd6a40f
parent 25835 dcd286c5c76c
child 25837 38b0d0abca49
8032908: getTextContent doesn't return string in JAXP Reviewed-by: joehw
jaxp/src/com/sun/org/apache/xml/internal/dtm/ref/sax2dtm/SAX2DTM2.java
--- a/jaxp/src/com/sun/org/apache/xml/internal/dtm/ref/sax2dtm/SAX2DTM2.java	Wed Jul 30 10:09:11 2014 -0700
+++ b/jaxp/src/com/sun/org/apache/xml/internal/dtm/ref/sax2dtm/SAX2DTM2.java	Thu Jul 31 11:34:34 2014 +0400
@@ -3145,7 +3145,11 @@
                                   m_data.elementAt(-dataIndex+1));
       }
     }
-    else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type
+    else if (DTM.ELEMENT_NODE == type)
+    {
+      return getStringValueX(nodeHandle);
+    }
+    else if (DTM.DOCUMENT_FRAGMENT_NODE == type
              || DTM.DOCUMENT_NODE == type)
     {
       return null;