I see the current conversion of dataframe to xml need to be improved.
My dataframe schema is a perfect nested schema based on structs but when I create a xml I have the follow issues:
1) I can't add elements to root
2) rootTag and rowTag are required
In the end I remove the first level of hierarchy (rowTag) using string methods or manually. The rowTag is already part of the dataframe nested schema so it doesn't make any sense