code: private Document parse(File file) {
          try {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();
              builder.setEntityResolver(new EntityResolver() {
                  @Override
                  public InputSource resolveEntity(String publicId, String systemId)
                          throws SAXException, IOException {
                      return new InputSource(new StringReader(""));
                  }
              });
  
              return builder.parse(file);
          } catch (Exception e) {
              throw new TestException(e);
          }
      }
docs: XMLファイルを読み込んでDOMにパースします。
  
  @param file
  XMLファイル
  @return DOM