private static synchronized void initDocBuilderFactory(){
  docBuilderFactory=DocumentBuilderFactory.newInstance();
  docBuilderFactory.setIgnoringComments(true);
  docBuilderFactory.setCoalescing(true);
}

private static synchronized void initDocBuilderFactory ( ) { docBuilderFactory = DocumentBuilderFactory . newInstance ( ) ; docBuilderFactory . setIgnoringComments ( true ) ; docBuilderFactory . setCoalescing ( true ) ; }
initialize the document builder factory so that it can be reused and does not need to be reinitialized for each parse action .
