< prev index next >
jdk/test/javax/xml/jaxp/common/8032908/TestFunc.java
Print this page
*** 24,33 ****
import org.w3c.dom.Node;
public class TestFunc {
public static String test(Node node) {
! String s = node.getTextContent();
! return s;
}
}
--- 24,34 ----
import org.w3c.dom.Node;
public class TestFunc {
public static String test(Node node) {
! String textContent = node.getTextContent();
! String nodeValue = node.getNodeValue();
! return textContent + ":" + nodeValue;
}
}
< prev index next >