Java XPath Create getXPathNodes(XPath xpath, Object inic, String name)

Here you can find the source of getXPathNodes(XPath xpath, Object inic, String name)

Description

get X Path Nodes

License

Open Source License

Declaration

static private NodeList getXPathNodes(XPath xpath, Object inic,
            String name) throws XPathExpressionException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;

import org.w3c.dom.NodeList;

public class Main {
    static private NodeList getXPathNodes(XPath xpath, Object inic,
            String name) throws XPathExpressionException {
        return (NodeList) xpath
                .evaluate(name, inic, XPathConstants.NODESET);
    }/*from   www . j  a  v  a 2 s  . c o  m*/
}

Related

  1. getXPathFromVector(Vector path)
  2. getXPathFromVector(Vector path)
  3. getXPathListForNode(Node n)
  4. getXPathNoCache(String exp)
  5. getXPathNodeIndex(Node node, boolean ignoreWhitespace)
  6. getXPathToContent(final Node root, final String selectedContent)
  7. getXPathType(Class c)
  8. getXpathVal(InputStream pInputStream, String pXPath)
  9. getXPathValue(XPath xpath, Node d, String xq, String def)