def getQueryRequestXML( query = nil, qid = nil, qname = nil )
      @query = @qid = @qname = nil
      if query
        @query = query == "" ? "{'0'.CT.''}" : query
        xmlRequestData = toXML( :query, @query )
      elsif qid
        @qid = qid
        xmlRequestData = toXML( :qid, @qid )
      elsif qname
        @qname = qname
        xmlRequestData = toXML( :qname, @qname )
      else
        @query = "{'0'.CT.''}"
        xmlRequestData = toXML( :query, @query )
      end
      xmlRequestData
   end
def getQueryRequestXML( query = nil, qid = nil, qname = nil )
      @query = @qid = @qname = nil
      if query
        @query = query == "" ? "{'0'.CT.''}" : query
        xmlRequestData = toXML( :query, @query )
      elsif qid
        @qid = qid
        xmlRequestData = toXML( :qid, @qid )
      elsif qname
        @qname = qname
        xmlRequestData = toXML( :qname, @qname )
      else
        @query = "{'0'.CT.''}"
        xmlRequestData = toXML( :query, @query )
      end
      xmlRequestData
   end
Builds the request XML for retrieving the results of a query.