Here you can find the source of getX_PATH()
private static XPath getX_PATH()
//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; } }