title: Karate Framework : How to extract the data from xml response
body: <p>Response :
  &lt;soap:Envelope xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
  soap:Body
  &lt;ng3:CREATE_WORKS_ORDERS xmlns:ng3=&quot;http://www.sx3.com/CreateWorksOrdersResponse&quot; xmlns:tns1=&quot;http://www.sx3.com/sx3returnedmessages&quot;&gt;
  ng3:WOR
  ng3:WorDetails
  ng3:WorSrqNo4629817&lt;/ng3:WorSrqNo&gt;
  ng3:WorSeqno1&lt;/ng3:WorSeqno&gt;
  &lt;/ng3:WorDetails&gt;
  &lt;/ng3:WOR&gt;
  tns1:MESSAGE_RETURN_INFO
  tns1:SUCCESS_FLAGTRUE&lt;/tns1:SUCCESS_FLAG&gt;
  tns1:MESSAGES_EXISTTRUE&lt;/tns1:MESSAGES_EXIST&gt;
  tns1:RETURNED_MESSAGES
  &lt;tns1:MESSAGE tns1:TYPE=&quot;VWA&quot; tns1:AREA=&quot;VWA&quot; tns1:REFNO=&quot;1006&quot;&gt;
  tns1:TEXTProperty is HLP, work managed by HNZC&lt;/tns1:TEXT&gt;
  &lt;/tns1:MESSAGE&gt;
  &lt;tns1:MESSAGE tns1:TYPE=&quot;VWA&quot; tns1:AREA=&quot;VWA&quot; tns1:REFNO=&quot;1106&quot;&gt;
  tns1:TEXTBody Corporate property. Contact the asset manager for anything other than Health &amp; Safety work.&lt;/tns1:TEXT&gt;
  &lt;/tns1:MESSAGE&gt;
  &lt;tns1:MESSAGE tns1:TYPE=&quot;VWA&quot; tns1:AREA=&quot;VWA&quot; tns1:REFNO=&quot;2031&quot;&gt;
  tns1:TEXTThis is an HLP property&lt;/tns1:TEXT&gt;
  &lt;/tns1:MESSAGE&gt;
  &lt;tns1:MESSAGE tns1:TYPE=&quot;WAR&quot; tns1:AREA=&quot;HEM&quot; tns1:REFNO=&quot;85&quot;&gt;
  tns1:TEXTVariable warning(s) exist&lt;/tns1:TEXT&gt;
  &lt;/tns1:MESSAGE&gt;
  &lt;tns1:MESSAGE tns1:TYPE=&quot;VWA&quot; tns1:AREA=&quot;VWA&quot; tns1:REFNO=&quot;1106&quot;&gt;
  tns1:TEXTBody Corporate property. Contact the asset manager for anything other than Health &amp; Safety work.&lt;/tns1:TEXT&gt;
  &lt;/tns1:MESSAGE&gt;
  &lt;tns1:MESSAGE tns1:TYPE=&quot;VWA&quot; tns1:AREA=&quot;VWA&quot; tns1:REFNO=&quot;1111&quot;&gt;
  tns1:TEXTThree or more work orders for the same schedule of rate have raised in the past six months.&lt;/tns1:TEXT&gt;
  &lt;/tns1:MESSAGE&gt;
  &lt;tns1:MESSAGE tns1:TYPE=&quot;VWA&quot; tns1:AREA=&quot;VWA&quot; tns1:REFNO=&quot;1112&quot;&gt;
  tns1:TEXTA similar open work order exists. Review to ensure if a new work order should be raised.&lt;/tns1:TEXT&gt;
  &lt;/tns1:MESSAGE&gt;
  &lt;tns1:MESSAGE tns1:TYPE=&quot;VWA&quot; tns1:AREA=&quot;VWA&quot; tns1:REFNO=&quot;2031&quot;&gt;
  tns1:TEXTThis is an HLP property&lt;/tns1:TEXT&gt;
  &lt;/tns1:MESSAGE&gt;
  &lt;tns1:MESSAGE tns1:TYPE=&quot;WAR&quot; tns1:AREA=&quot;HEM&quot; tns1:REFNO=&quot;85&quot;&gt;
  tns1:TEXTVariable warning(s) exist&lt;/tns1:TEXT&gt;
  &lt;/tns1:MESSAGE&gt;
  &lt;/tns1:RETURNED_MESSAGES&gt;
  &lt;/tns1:MESSAGE_RETURN_INFO&gt;
  &lt;/ng3:CREATE_WORKS_ORDERS&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;</p>