Here you can find the source of getDocumentBuilder()
public static DocumentBuilder getDocumentBuilder()
//package com.java2s; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; public class Main { public static DocumentBuilder getDocumentBuilder() { DocumentBuilder documentBuilder = null; try {//from ww w. ja v a 2 s.c o m DocumentBuilderFactory documentBuilderfactory = DocumentBuilderFactory.newInstance(); documentBuilder = documentBuilderfactory.newDocumentBuilder(); } catch (Exception exception) { } return documentBuilder; } }