title: how to extract text from an xml using groovy
body: <p>I want to grab a text within an xml. Example below:</p>
  
  <pre><code>&lt;parentxml&gt;
    &lt;xml1/&gt;
    &lt;xml2/&gt;
    &lt;xml3/&gt;
    &lt;xx:totalPrice xmlns:xx='test'&gt;111&lt;/xx:totalPrice&gt;
    &lt;xml5/&gt;
  &lt;/parentxml&gt;
  </code></pre>
  
  <p>How am I able to extract the text of total price '111'? Below is the code I am trying:</p>
  
  <pre><code>def xml = new XmlParser().parseText( response )
  def ns = xml.'**'.find {it.name().contains('totalPrice')}
  </code></pre>