Here you can find the source of getDocumentBuilderFactory()
private static DocumentBuilderFactory getDocumentBuilderFactory()
//package com.java2s; //License from project: Open Source License import javax.xml.parsers.DocumentBuilderFactory; public class Main { /**// ww w. jav a 2s .c o m * Utility for accessing a consistent DocumentBuilderFactory (irregardless of what is on the classpath) * * @return */ private static DocumentBuilderFactory getDocumentBuilderFactory() { DocumentBuilderFactory factory = DocumentBuilderFactory .newInstance("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl", null); return factory; } }