Here you can find the source of getXPathFactory()
public static XPathFactory getXPathFactory()
//package com.java2s; // under the terms of the GNU General Public License as published by the import javax.xml.xpath.*; public class Main { public static XPathFactory getXPathFactory() { return XPathFactory.newInstance(); }/*from w w w. ja va2s .c o m*/ }