private StringBuilder warnMessages = new StringBuilder();
private StringBuilder errMessages = new StringBuilder();
private StringBuilder fatalMessages = new StringBuilder();
public XMLEntityResolver(boolean validate) {
saxBuilder = hasXerces ? new SAXBuilder( validate) : new SAXBuilder("org.apache.xerces.parsers.SAXParser", validate);
saxBuilder.setErrorHandler( new MyErrorHandler() );
if (validate) {
saxBuilder.setFeature( "http://apache.org/xml/features/validation/schema", true);
saxBuilder.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation",
XMLEntityResolver.getExternalSchemas());