databricks spark XML Writer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 08:26 AM - edited 02-07-2024 08:30 AM
Hi.
I'm trying to generate XML as output base on my nested dataframe. Everything is ok except by I don't know how to add elements to rootTag.
I can add elements from rowtag but not in rootTag. Same problems to add attributes to root
<books version = "5.2">
<library>"LIB1"</library>
<book id="bk103">
<author>Corets, Eva</author>
<title>Maeve Ascendant</title>
</book>
<book id="bk104">
<author>Corets, Eva</author>
<title>Oberon's Legacy</title>
</book>
</books>
any help?