title: Retrieve values from response xml using XML Slurper didin't work
body: <p>I am trying to retrieve a value from a XML response but it prints nothing.Please note that I am using SOAP UI to test the webservice and has written a simple piece of code to retrieve the policyid from the below response xml.</p>
  
  <p>Below is the code; if you see the second line of screenshots of the, it prints EMPTY value.</p>
  
  <p><a href="https://i.stack.imgur.com/IVwBB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IVwBB.png" alt="SOAP UI Logs/Output"></a></p>
  
  <p>I tried different options suggested in various websites but nothing helped</p>
  
  <p><strong>Groovy Script</strong></p>
  
  <pre><code>def response = context.expand( '${XMLService#Response}' )
  
  def xml = new XmlSlurper().parseText(response);
  
  log.info xml
  
  log.info(xml.EQuoteResponse.Policy.PolicyId.text())
  </code></pre>