Examples of selectNodes()


Examples of net.lagerwey.xml.XmlDocument.selectNodes()

    fonts = new ArrayList<Font>();
    screens = new ArrayList<Screen>();
   
    XmlDocument document = new XmlDocument();
    document.loadXml(new FileInputStream(filename));
    for (XmlNode colorNode : document.selectNodes("/skin/colors/color")) {
      colors.add(new Color(this, colorNode));
    }
    for (XmlNode windowstyleNode : document.selectNodes("/skin/windowstyle")) {
      windowStyles.add(new WindowStyle(this, windowstyleNode));
    }
View Full Code Here

Examples of net.sf.saxon.pattern.PatternFinder.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 oracle.xml.parser.v2.XMLNode.selectNodes()

      Run run = new Run(args);
      
     try {
    
      XMLNode lstLogSourceNode = (XMLNode) xmlConfig.getNode("/log4plsql");
      NodeList listLogSource = lstLogSourceNode.selectNodes("logSource");
      XMLNode theLogSource;
      dbLogger.debug("Nbr backgroundProcess to launch :"+listLogSource.getLength());
      if (listLogSource.getLength() < 1 )
        dbLogger.error("No backgroundProcess to launch");
      for (int i=0; i<listLogSource.getLength(); i++){
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMXPath.selectNodes()

    FOMXPath fxpath = (FOMXPath) xpath;
    Map<QName,Function> functions = fxpath.getDefaultFunctions();
    functions.put(AlternateLinkFunction.QNAME, new AlternateLinkFunction());
    fxpath.setDefaultFunctions(functions);
    List<Link> links =
      fxpath.selectNodes(
        "abdera:altlinks(/a:feed/a:entry)",
        feed);
    System.out.println(links);
  }
 
View Full Code Here

Examples of org.apache.abdera.xpath.XPath.selectNodes()

    XPath xpath = getXPath();
    assertEquals(xpath.evaluate("count(/a:feed)", feed), 1.0d);
    assertTrue(xpath.booleanValueOf("/a:feed/a:entry", feed));
    assertEquals(xpath.numericValueOf("count(/a:feed)", feed), 1.0d);
    assertEquals(xpath.valueOf("/a:feed/a:entry/a:title", feed), "Atom-Powered Robots Run Amok");
    assertEquals(xpath.selectNodes("/a:feed/a:entry", feed).size(), 1);
    assertTrue(xpath.selectSingleNode("/a:feed", feed) instanceof Feed);
    assertEquals(xpath.selectSingleNode("..", feed.getTitleElement()), feed);
    assertEquals(xpath.selectSingleNode("ancestor::*", feed.getEntries().get(0)), feed);
    assertEquals(xpath.valueOf("concat('The feed is is ',/a:feed/a:id)", feed), "The feed is is urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6");
   
View Full Code Here

Examples of org.apache.axiom.om.xpath.AXIOMXPath.selectNodes()

                                {
                                        OMNamespace tmpNs = (OMNamespace)nsIter.next();
                                        xp.addNamespace(tmpNs.getPrefix(), tmpNs.getNamespaceURI());
                                }
                               
                                List selectedNodes = xp.selectNodes(envelope);
                               
                                Iterator nodesIter = selectedNodes.iterator();
                               
                            while (nodesIter.hasNext())
                            {
View Full Code Here

Examples of org.apache.axis2.om.xpath.AXIOMXPath.selectNodes()

        if (nsURI!=null){
            SimpleNamespaceContext nsContext = new SimpleNamespaceContext();
            nsContext.addNamespace(null,nsURI);
            xpath.setNamespaceContext(nsContext);
        }
        return xpath.selectNodes(element);
    }


}
View Full Code Here

Examples of org.apache.commons.jxpath.JXPathContext.selectNodes()

            return result;
        }
        else
        {
            JXPathContext context = createContext(root, key);
            List result = context.selectNodes(key);
            return (result != null) ? result : Collections.EMPTY_LIST;
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.synapse.util.xpath.SynapseXPath.selectNodes()

        SynapseXPath xpath = new SynapseXPath("$header/t:test");
        xpath.addNamespace(ns);
        assertEquals(message, xpath.stringValueOf(ctx));
       
        xpath = new SynapseXPath("$header/*");
        assertEquals(2, xpath.selectNodes(ctx).size());
    }

    public void testContextProperties() throws Exception {
        SynapseXPath xpath = new SynapseXPath("$ctx:test");
        MessageContext synCtx = new TestMessageContext();
View Full Code Here

Examples of org.apache.ws.commons.om.xpath.AXIOMXPath.selectNodes()

        if (nsURI!=null){
            SimpleNamespaceContext nsContext = new SimpleNamespaceContext();
            nsContext.addNamespace(null,nsURI);
            xpath.setNamespaceContext(nsContext);
        }
        return xpath.selectNodes(element);
    }


}
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.