title: Convert XML string to hash in Rails
body: <p>I using some service that returns xml:</p>
  
  <pre><code>response = HTTParty.post(service_url)
  response.parsed_response 
  =&gt; "\n\t&lt;Result&gt;\n&lt;success&gt;\ntrue\n&lt;/success&gt;\n&lt;/Result&gt;"
  </code></pre>
  
  <p>I need to convert this string to hash. Something like this:</p>
  
  <pre><code>response.parsed_response.to_hash
  =&gt; {:result =&gt; { :success =&gt; true } }
  </code></pre>
  
  <p>Which way to do this?</p>