title: How to extract value from a string in XML response using karate
body: <p>Unfortunately the respons ei am getting from my backend is not in correct xml format and it's giving the response in a bad format like this:</p>
  
  
  
  <p></p>
  
  <pre><code>&lt;soapenv:Body&gt;
  
      &lt;ns2:getInputResponse xmlns:ns2="http://docs.oasisopen.org/ns/bpel4people/ws-humantask/api/200803"&gt;
  
          &lt;ns2:taskData xmlns:s186="http://www.w3.org/2001/XMLSchema-instance" xmlns:s187="http://www.w3.org/2001/XMLSchema" s186:type="s187:string"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &amp;lt;SubscriptionApprovalData xmlns="http://workflow.subscription.apimgt.carbon.wso2.org" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  
       &amp;lt;apiName&gt;Auto_Approval&amp;lt;/apiName&gt;
  
       &amp;lt;apiVersion&gt;v1&amp;lt;/apiVersion&gt;
  
       &amp;lt;apiContext&gt;/test/lambda/v1&amp;lt;/apiContext&gt;
  
       &amp;lt;apiProvider&gt;admin&amp;lt;/apiProvider&gt;
  
       &amp;lt;subscriber&gt;regtest&amp;lt;/subscriber&gt;
  
       &amp;lt;applicationName&gt;newApp&amp;lt;/applicationName&gt;
  
       &amp;lt;tierName&gt;Gold&amp;lt;/tierName&gt;
  
       &amp;lt;workflowExternalRef&amp;gt;23d30bd8-51e3-4afe-aae0-3fa159d85a6b&amp;lt;/workflowExternalRef&gt;
  
       &amp;lt;callBackURL&gt;https://apistore-dev-dev-a878-14-ams10-nonp.qcpaws.qantas.com.au/services/WorkflowCallbackService&amp;lt;/callBackURL&gt;
    &amp;lt;/SubscriptionApprovalData&gt;&lt;/ns2:taskData&gt;
  
      &lt;/ns2:getInputResponse&gt;
  
  &lt;/soapenv:Body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Now because of this Karate is not able to read the response and fetch the value of "workflowExternalRef" which is my goal for this test.</p>
  
  <p>Is there any way karate can read it? </p>