public ConfigurationParser(boolean verify,ClassLoader loader) throws ParserConfigurationException {
  factory=DocumentBuilderFactory.newInstance();
  factory.setValidating(verify);
  factory.setNamespaceAware(true);
  factory.setExpandEntityReferences(true);
  factory.setCoalescing(true);
  builder=factory.newDocumentBuilder();
  if (verify)   builder.setErrorHandler(new XMLErrorHandler());
  if (loader == null)   throw new NullPointerException("loader is null");
}

public ConfigurationParser ( boolean verify , ClassLoader loader ) throws ParserConfigurationException { factory = DocumentBuilderFactory . newInstance ( ) ; factory . setValidating ( verify ) ; factory . setNamespaceAware ( true ) ; factory . setExpandEntityReferences ( true ) ; factory . setCoalescing ( true ) ; builder = factory . newDocumentBuilder ( ) ; if ( verify ) builder . setErrorHandler ( new XMLErrorHandler ( ) ) ; if ( loader == null ) throw new NullPointerException ( "loader is null" ) ; }
create a new configurationparser
