title: how to call xml request in ruby using httparty?
body: <p>while calling xml request api in ruby it is getting xml parser error as response.</p>
  
  <p><strong>API call</strong></p>
  
  <pre><code>require 'httparty'
  
      response = HTTParty.post("http://www.99acres.com/99api/v1/getmy99Response/test/uid/",
      :headers =&gt; {"Accept" =&gt; "application/xml", "Content-Type" =&gt;"application/xml"},
      :body =&gt; '&lt;?xml version="1.0"?&gt;&lt;query&gt;
      &lt;user_name&gt;test&lt;/user_name&gt;&lt;pswd&gt;testest&lt;/pswd&gt;&lt;start_date&gt;2019-03-25 12:03:00&lt;/start_date&gt;&lt;end_date&gt;2019-04-24 12:04:00&lt;/end_date&gt;&lt;/query&gt;'
  
  )
  </code></pre>
  
  <p><strong>Error Response</strong></p>
  
  <blockquote>
    <p><br>
    <Code>ERROR-0000</Code>XML Parsing
    Error</p>
  </blockquote>
  
  <p>How to call XML request API calling in ruby?. </p>