# File lib/mirimiri/query.rb, line 40
    def to_s
      h = "<parameters>\n"
      h += "<memory>#{@memory}</memory>\n"
      h += "<index>#{@index_path}</index>\n"
      h += "<count>#{@count}</count>\n"
      unless @baseline.nil?
        h += "<baseline>#{@baseline}</baseline>\n" 
      else
        h += "<rule>#{@rule}</rule>\n"
      end
      h += "<queryOffset>#{@offset}</queryOffset>\n"
      h += "<runID>#{@run_id}</runID>\n"
      h += "<printQuery>#{@print_query}</printQuery>\n"
      h += "<printDocuments>#{@print_docs}</printDocuments>\n"

      h
    end