code: public static String xmlToString(InputStream in) throws AlipayApiException {
          Element root = getRootElementFromStream(in);
          return nodeToString(root);
      }
docs: Converts the an XML file input stream to XML payload.
  
  @param in the XML file input stream
  @return the payload represents the XML file
  @throws ApiException problem transforming XML to string