Examples of selectNodes()


Examples of ca.ecliptical.emf.xpath.EMFXPath.selectNodes()

 
  public final void testNamespaces() throws Exception {
    EMFXPath xpath = new EMFXPath("/resources/contents/t:test/t:subTest[1]/x:value/namespace::*");
    xpath.addNamespace("t", "urn:test");
    xpath.addNamespace("x", XMLTypePackage.eNS_URI);
    List list = xpath.selectNodes(fixture);
    assertNotNull(list);
    assertEquals(2, list.size());
    assertTrue(list.get(0) instanceof EPackage);
    assertTrue(list.get(1) instanceof EPackage);
    HashSet values = new HashSet(2);
View Full Code Here

Examples of client.net.sf.saxon.ce.pattern.Pattern.selectNodes()

        SlotManager map = keydef.getStackFrameMap();
        if (map != null) {
            xc.openStackFrame(map);
        }

        SequenceIterator iter = match.selectNodes(doc, xc);
        while (true) {
            Item item = iter.next();
            if (item == null) {
                break;
            }
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlElement.selectNodes()

     * Top page should only have one item in the breadcrumb.
     */
    public void testBreadcrumb() throws Exception {
        HtmlPage root = new WebClient().goTo("");
        HtmlElement navbar = root.getElementById("breadcrumbs");
        assertEquals(1,navbar.selectNodes("LI/A").size());
    }

    /**
     * Configure link from "/computer/(master)/" should work.
     */
 
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlPage.selectNodes()

        // now select back what's already loaded, to cause the existing elements to be displayed
        s.setSelectedAttribute(opts.get(0),true);

        // make sure that the inner control is still hidden
        List<HtmlInput> textboxes = p.selectNodes("//INPUT[@name='_.textbox2']");
        assertEquals(2,textboxes.size());
        for (HtmlInput e : textboxes)
            assertTrue(!e.isDisplayed());

        // reveal the text box
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.xpath.ODOMXPath.selectNodes()

        final Element child = doc.getRootElement().getChild("company",
                                                            namespaces[0]);

        List elements;
        if (isODOMObservable) {
            elements = xpath.selectNodes(child);
        } else {
            elements = xpath.selectNodes(child);
        }
        assertEquals("Number of elements should match", 1, elements.size());
        assertEquals("Name should match", "bert",
View Full Code Here

Examples of com.volantis.mcs.xml.xpath.XPath.selectNodes()

                elementPath = elementPath.getParent();
            }

            // select the correct component
            context.getODOMSelectionManager()
                    .setSelection(elementPath.selectNodes(root));
            XPathFocusable[] focusableControls = getXPathFocusableControls();
            for (int i = 0; (focusableControls != null) &&
                    (i < focusableControls.length); i++) {
                focusableControls[i].setFocus(xPath);
            }
View Full Code Here

Examples of com.xmlcalabash.util.XPointer.selectNodes()

            if (ptr.matches("^[\\w]+$")) {
                ptr = "element(" + ptr + ")";
            }

            XPointer xptr = new XPointer(ptr);
            Vector<XdmNode> nodes = xptr.selectNodes(runtime, doc);

            if (nodes.size() == 1) {
                doc = nodes.get(0);
            } else if (nodes.size() != 0) {
                throw new XProcException(node, "XPointer matches more than one node!?");
View Full Code Here

Examples of name.pehl.totoe.xml.client.Document.selectNodes()


    public void testSelectNodes()
    {
        Document document = parse();
        List<Node> functions = document.selectNodes("//functions");
        assertFunctionsNodes(functions);

        Element root = document.getRoot();
        functions = root.selectNodes("functions");
        assertFunctionsNodes(functions);
View Full Code Here

Examples of name.pehl.totoe.xml.client.Element.selectNodes()

        Document document = parse();
        List<Node> functions = document.selectNodes("//functions");
        assertFunctionsNodes(functions);

        Element root = document.getRoot();
        functions = root.selectNodes("functions");
        assertFunctionsNodes(functions);
    }


    public void testSelectNode()
View Full Code Here

Examples of name.pehl.totoe.xml.client.Node.selectNodes()

            }
            else
            {
                contextNode = document;
            }
            List<Node> nodes = contextNode.selectNodes(xpathValue);
            result = buildResult(nodes);
        }
        catch (XPathException e)
        {
            result = "Exception:\n" + e.getMessage();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.