def matches?(response)
      @response = response
      doc = response.is_a?(REXML::Document) ? response : REXML::Document.new(@response)
      match = REXML::XPath.match(doc, @xpath)
      @num_found= match.size
      @num_found == @num
    end
def matches?(response)
      @response = response
      doc = response.is_a?(REXML::Document) ? response : REXML::Document.new(@response)
      match = REXML::XPath.match(doc, @xpath)
      @num_found= match.size
      @num_found == @num
    end
:nodoc: