code: public static Document getDocument(File file) throws AlipayApiException {
          InputStream in = getInputStream(file);
          return getDocument(in);
      }
docs: Parses the content of the given XML file as an XML document.
  
  @param file the XML file instance
  @return the document instance representing the entire XML document
  @throws ApiException problem parsing the XML file