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