private String queryResultsToXMLStringInternal(CycObject query,
          CycObject mt,
          InferenceParameters queryProperties,
          CycList xmlSpec)
          throws UnknownHostException, IOException, CycApiException {
    String xmlSpecString = (xmlSpec == null) ? ":default" : xmlSpec.stringApiValue();
    final String script =
            "(query-results-to-xml-string " + query.stringApiValue() + " " + makeELMt(mt).stringApiValue() + " " + queryPropertiesToString(queryProperties) + " " + xmlSpecString + ")";
    return converseString(script);
  }