title: How to Parse the XML response of a URI in ansible
body: <p>There is a code which call the web services of an application.</p>
  
  <pre><code> - uri:
           url: http://10.164.52.61:8080/ems/v74/ws/customer.ws?customerRefId=f4XXXb15d69c3
           method: GET
           content_as_json: true
           password: admin
           user: admin
           validate_certs: no
           return_content: yes
           HEADER_Cookie: "{{login.set_cookie}}"
          register: customerId
  
        - debug:
            var: customerId.content
  </code></pre>
  
  <p>The sample response is</p>
  
  <pre><code>"customerId.content": "&lt;listResponse type=\"customer\" count=\"1\"&gt;&lt;instance customerId=\"28\" name=\"abc\" customerRefId=\"xyz\" refId1=\"12\" type=\"org\" enabled=\"true\" phone=\"\" fax=\"\" billingZip=\"\" billingAddress=\"\" billingCity=\"\" billingCountry=\"\" billingState=\"\" vendor=\"1\" defaultEmail=\"test\" defaultContactName=\"test\"/&gt;&lt;/listResponse&gt;"
  </code></pre>
  
  <p>I want to access the list response in my next block of code. Like i need just the value of "customerId". How this can be achieved using anisble</p>