code: public static DOMSource getDOMSource(final File xml, final ErrorHandler errorHandler)
  		throws SAXException, ParserConfigurationException, IOException
  	{
  		return new DOMSource(parse(xml, errorHandler));
  	}
docs: 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.