code: public static Document readXML(File file) {
  		Assert.notNull(file, "Xml file is null !");
  		if (false == file.exists()) {
  			throw new UtilException("File [{}] not a exist!", file.getAbsolutePath());
  		}
  		if (false == file.isFile()) {
  			throw new UtilException("[{}] not a file!", file.getAbsolutePath());
  		}
  
  		try {
  			file = file.getCanonicalFile();
  		} catch (IOException e) {
  			// ignore
  		}
  
  		BufferedInputStream in = null;
  		try {
  			in = FileUtil.getInputStream(file);
  			return readXML(in);
  		} finally {
  			IoUtil.close(in);
  		}
  	}
docs: 读取解析XML文件
  
  @param file XML文件
  @return XML文档对象