title: How to get boolean value from Http Response in Grails
body: <p>I have kind of a stupid question, but since I can't figure it out I figured I'd post it here to see if anyone can help!</p>
  
  <p>I have some code that makes an <code>HttpPost</code> request to our server. I receive the results perfectly in an XML format. The problem is I want to get the boolean value that is returned, not just a String. So for example, a successful call to the web service returns this xml:</p>
  
  <pre><code>&lt;boolean xmlns="https://myWebService/"&gt;false&lt;/boolean&gt;
  </code></pre>
  
  <p>which I can access and read by using this line:</p>
  
  <p><code>String responseBody = EntityUtils.toString(response.getEntity());</code></p>
  
  <p>Is there a way to access the data returned (false, in this case) as a boolean, or will I have to manually parse the return String to get the value?</p>
  
  <p>Thanks for your help</p>