title: converting multiple tags in xml to attributes of a single tag
body: <p>I have an XML file which is in this form:</p>
  
  <pre><code>&lt;row&gt;
    &lt;field name="id"&gt;18&lt;/field&gt;
    &lt;field name="lat"&gt;40.7560540000&lt;/field&gt;
    &lt;field name="lng"&gt;-73.9869510000&lt;/field&gt;
    &lt;field name="body"&gt;Students arriving from Haiti say they’re having a hard time getting placed in city schools.&lt;/field&gt;
  &lt;/row&gt;
  </code></pre>
  
  <p>I want these multiple tags to be combined and get an XML of this form (combining multiple tags to attributes of a single tag):</p>
  
  <pre><code>&lt;row id="18" lat="40.7560540000" lng="-73.9869510000" body="Students arriving from Haiti say they’re having a hard time getting placed in city schools."&gt;
  &lt;/row&gt;
  </code></pre>
  
  <p>Is it possible to do this? If yes, can someone suggest me how to make such a transformation? Thanks in advance.</p>