Here you can find the source of getDocumentBuilderFactory()
public static DocumentBuilderFactory getDocumentBuilderFactory()
//package com.java2s; //License from project: LGPL import javax.xml.parsers.DocumentBuilderFactory; public class Main { private static DocumentBuilderFactory documentBuilderFactory; public static DocumentBuilderFactory getDocumentBuilderFactory() { if (documentBuilderFactory == null) { documentBuilderFactory = DocumentBuilderFactory.newInstance(); }/*from www.j av a 2 s. c o m*/ return documentBuilderFactory; } }