< prev index next >

jaxp/test/javax/xml/jaxp/unittest/javax/xml/transform/DocumentExtFunc.java

Print this page

        

@@ -28,8 +28,8 @@
 
 public class DocumentExtFunc {
 
     public static String test(NodeList list) {
         Node node = list.item(0);
-        return "["+node.getNodeName() + ":" + node.getNodeValue()+"]";
+        return "["+node.getNodeName() + ":" + node.getTextContent()+"]";
     }
 }
< prev index next >