Databricks XML - Bypassing rootTag and rowTag
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 04:04 AM - edited 02-09-2024 04:05 AM
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