code: public static String xmlToString(File file) throws AlipayApiException {
          Element root = getRootElementFromFile(file);
          return nodeToString(root);
      }
docs: Converts the an XML file to XML payload.
  
  @param file the XML file instance
  @return the XML payload representing the XML file
  @throws ApiException problem transforming XML to string