e.g.
dataframe is having firstname,lastname,middlename,id,salary
I need to convert dataframe in xml file but in nested format.
output as nested xml
<Name>
<firatname>
<middlename>
<lastname>
</Name>
<id></id>
<salary></salary>
Anyone has ides hot to achieve this.