public static Document parse ( final File xml , final ErrorHandler errorHandler ) throws SAXException , ParserConfigurationException , IOException { final DocumentBuilderFactory factory = getDocumentBuilderFactory ( xml . getName ( ) ) ; final DocumentBuilder builder = factory . newDocumentBuilder ( ) ; builder . setErrorHandler ( errorHandler ) ; return builder . parse ( xml ) ; }
Parses the .