scala-xml : how to move child to another parent node

RobsonNLPT
Contributor III

Hi all

The mandatory rowTag for writing to XML cause doesn't make any sense as I have the complete nested dataframe schema.

In my case I need to implement an extra step to remove that extra node (default: Row) after xml generation.

I need some examples using scala-xml library and Transform/RuleTransformer/RewriteRule to move child to root parent and remove the node "Row" 

Any help?