Java XPath Expression createXPath()

Here you can find the source of createXPath()

Description

Creates an XPath object with a custom NamespaceContext given the Node to operate on

the Node or document to operate on.

License

Open Source License

Return

a new XPath object

Declaration

public static XPath createXPath() 

Method Source Code

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

import javax.xml.xpath.*;

public class Main {
    /**//from   w  w  w.  j a  v a2  s. c  o  m
     * Creates an XPath object with a custom NamespaceContext given the Node to
     * operate on
     * <p/>
     * the Node or document to operate on. Note that namespace
     * handling will not work if a Node fragment is passed in
     *
     * @return a new XPath object
     */
    public static XPath createXPath() {
        return XPathFactory.newInstance().newXPath();
    }
}

Related

  1. constructXPathForElement(Element inElem, String xPathRest)
  2. createFactory()
  3. createNewXPath(@Nullable final NamespaceContext aNamespaceContext)
  4. createQueryResourcePropertiesCallBody(String aXqueryExpression)
  5. createReverseCMDIComponentItemMap(String urlToComponent)
  6. createXPath(NamespaceContext namespaceContext, XPathFunctionResolver functionResolver)
  7. createXPathExpression(NamespaceContext context, String xPathQuery)
  8. createXPathExpression(String expression, NamespaceContext namespaceContext)
  9. createXPathExpression(String xpath)