Modified to work properly.
- require 'rest_client' => 'rest-client'
- xpath("//response/... => xpath("//Response/...