Code example for XMLReader

Methods: parsesetErrorHandler

0
		parser.setProperty(
			"http://java.sun.com/xml/jaxp/properties/schemaLanguage", 
			"http://www.w3.org/2001/XMLSchema" 
		); 
		XMLReader reader = parser.getXMLReader();
		reader.setErrorHandler(new DefaultErrorHandler());		
		reader.parse(inputSource);
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java