Code example for Element

Methods: getTextContent

    private static TestCase createFromValueOf(
            final XPath xpath, final Context context, final Element element) {
        final String select = element.getAttribute("select");
        return new XPathTest(context, select) {
            @Override void test(Node contextNode) throws XPathExpressionException {
                        xpath.evaluate(select, contextNode, XPathConstants.STRING));
     * The subject of an XPath query. This is itself defined by an XPath query, 
     * so each test requires at least XPath expressions to be evaluated. 
    static class Context { 
        private final InputSource inputSource;
        private final String url;
        private final String select;