title: I need to convert xml data(Nested tags) into map in groovy?
body: <p>I have some to convert to XML data into Map in groovy but If nested tags come it is converting only one stage rest of the tags ignored</p>
  <pre><code>VIF_data_Collection = vif_file_data.children().collectEntries{n-&gt;[(n.name()):{-&gt;n.children()?.collectEntries(owner)?:n.text()}()]}
  </code></pre>
  <p>example xmlfile:
  <a href="https://i.stack.imgur.com/mmVfv.png" rel="nofollow noreferrer">enter image description here</a></p>