code: public static Document toDocument(File file) throws SAXException, IOException {
  		InputStream in = new BufferedInputStream(new FileInputStream(file));
  		try {
  			return XmlUtils.toDocument(in);
  		} finally {
  			in.close();
  		}
  	}
docs: Parses an XML document from a file.
  @param file the file
  @return the parsed DOM
  @throws SAXException if the XML is not valid
  @throws IOException if there is a problem reading from the file