legacy/src/main/java/thredds/catalog/query/DqcFactory.java
public String writeXML(QueryCapability dqc) throws IOException {
    ByteArrayOutputStream os = new ByteArrayOutputStream(10000);
    writeXML(dqc, os);
    return os.toString(CDM.utf8Charset.name());
  }
public String writeXML(QueryCapability dqc) throws IOException {
    ByteArrayOutputStream os = new ByteArrayOutputStream(10000);
    writeXML(dqc, os);
    return os.toString(CDM.utf8Charset.name());
  }
Write the catalog as an XML document to a String.

@param dqc : write this QueryCapability to an XML representation.
@return string containing XML representation
@throws IOException on failure