src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java
public static DOMSource getDOMSource(final File xml, final ErrorHandler errorHandler)
		throws SAXException, ParserConfigurationException, IOException
	{
		return new DOMSource(parse(xml, errorHandler));
	}
public static DOMSource getDOMSource(final File xml, final ErrorHandler errorHandler)
		throws SAXException, ParserConfigurationException, IOException
	{
		return new DOMSource(parse(xml, errorHandler));
	}
Gets the dOM source.

@param xml
the xml
@param errorHandler
the error handler
@return the dOM source
@throws SAXException
If a SAX error occurs during parsing.
@throws ParserConfigurationException
if a DocumentBuilder cannot be created which satisfies the configuration
requested.
@throws IOException
Signals that an I/O exception has occurred.