< prev index next >

jdk/test/javax/xml/jaxp/common/8032908/TestFunc.java

Print this page

        

@@ -24,10 +24,11 @@
 import org.w3c.dom.Node;
 
 public class TestFunc {
 
     public static String test(Node node) {
-        String s = node.getTextContent();
-        return s;
+        String textContent = node.getTextContent();
+        String nodeValue   = node.getNodeValue();
+        return textContent + ":" + nodeValue;
     }
 
 }
< prev index next >