Java XPath Get getX_PATH()

Here you can find the source of getX_PATH()

Description

get PATH

License

Open Source License

Declaration

private static XPath getX_PATH() 

Method Source Code

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

import javax.xml.xpath.XPath;

import javax.xml.xpath.XPathFactory;

public class Main {
    private static XPath X_PATH;

    private static XPath getX_PATH() {
        if (X_PATH == null) {
            X_PATH = XPathFactory.newInstance().newXPath();
        }/*from  w  ww  . j  av a 2  s.co  m*/
        return X_PATH;
    }
}

Related

  1. getValue(final String expression, final String xml)
  2. getValueByPath(Node node, String path)
  3. getValueByXpath(Node doc, String xquery)
  4. getValueFromXML(final String inputXML, final String xPathQuery, final int index)
  5. getValues(final String expression, final String xml)
  6. xGetNode(Node targetNode, String expression)