Here you can find the source of getXPathNoCache(String exp)
public static XPathExpression getXPathNoCache(String exp) throws XPathExpressionException
//package com.java2s; //License from project: Open Source License import javax.xml.xpath.XPathExpression; import javax.xml.xpath.XPathExpressionException; import javax.xml.xpath.XPathFactory; public class Main { private static XPathFactory sFactory = XPathFactory.newInstance(); public static XPathExpression getXPathNoCache(String exp) throws XPathExpressionException { return sFactory.newXPath().compile(exp); }/*ww w .j a v a 2s.c o m*/ }