<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: scala-xml : how to move child to another parent node in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/scala-xml-how-to-move-child-to-another-parent-node/m-p/64032#M32437</link>
    <description>&lt;P&gt;I just adapted the code and it worked. Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 17:48:28 GMT</pubDate>
    <dc:creator>RobsonNLPT</dc:creator>
    <dc:date>2024-03-18T17:48:28Z</dc:date>
    <item>
      <title>scala-xml : how to move child to another parent node</title>
      <link>https://community.databricks.com/t5/data-engineering/scala-xml-how-to-move-child-to-another-parent-node/m-p/63712#M32328</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;The mandatory rowTag for writing to XML cause doesn't make any sense as I have the complete nested dataframe schema.&lt;/P&gt;&lt;P&gt;In my case I need to implement an extra step to remove that extra node (default: Row) after xml generation.&lt;/P&gt;&lt;P&gt;I need some examples using scala-xml library and Transform/&lt;SPAN&gt;RuleTransformer/&lt;/SPAN&gt;&lt;SPAN&gt;RewriteRule to move child to root parent and remove the node "Row"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 15:40:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/scala-xml-how-to-move-child-to-another-parent-node/m-p/63712#M32328</guid>
      <dc:creator>RobsonNLPT</dc:creator>
      <dc:date>2024-03-14T15:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: scala-xml : how to move child to another parent node</title>
      <link>https://community.databricks.com/t5/data-engineering/scala-xml-how-to-move-child-to-another-parent-node/m-p/63812#M32363</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Kaniz. Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your code is not correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;command-3498107737134944:21: error: type mismatch; found : Seq[scala.xml.Node] required: scala.xml.Node def apply(xml: Node): Node = new RuleTransformer(this).transform(xml)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you check?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 10:45:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/scala-xml-how-to-move-child-to-another-parent-node/m-p/63812#M32363</guid>
      <dc:creator>RobsonNLPT</dc:creator>
      <dc:date>2024-03-15T10:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: scala-xml : how to move child to another parent node</title>
      <link>https://community.databricks.com/t5/data-engineering/scala-xml-how-to-move-child-to-another-parent-node/m-p/64032#M32437</link>
      <description>&lt;P&gt;I just adapted the code and it worked. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 17:48:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/scala-xml-how-to-move-child-to-another-parent-node/m-p/64032#M32437</guid>
      <dc:creator>RobsonNLPT</dc:creator>
      <dc:date>2024-03-18T17:48:28Z</dc:date>
    </item>
  </channel>
</rss>

