<?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: NATIVE_XML_DATA_SOURCE_NOT_ENABLED in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/native-xml-data-source-not-enabled/m-p/49711#M1625</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91996"&gt;@Ajbi&lt;/a&gt;&amp;nbsp;AFAIK DBR 14.1 was supposed to support XML out of the box. Maybe that's the case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try using spark.read.format('com.databricks.spark.xml')... instead?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 05:31:24 GMT</pubDate>
    <dc:creator>daniel_sahal</dc:creator>
    <dc:date>2023-10-23T05:31:24Z</dc:date>
    <item>
      <title>NATIVE_XML_DATA_SOURCE_NOT_ENABLED</title>
      <link>https://community.databricks.com/t5/get-started-discussions/native-xml-data-source-not-enabled/m-p/49616#M1620</link>
      <description>&lt;P&gt;I'm trying to read an xml file and receiving the following error. I've installed the maven library spark xml to the cluster, however I'm receiving the error. is there anything i'm missing?&lt;/P&gt;&lt;P&gt;Error&lt;/P&gt;&lt;P&gt;AnalysisException: [NATIVE_XML_DATA_SOURCE_NOT_ENABLED] Native XML Data Source is not enabled in this cluster.&lt;/P&gt;&lt;P&gt;runtime version:&amp;nbsp;14.1 (includes Apache Spark 3.5.0, Scala 2.12)&lt;/P&gt;&lt;P&gt;library version :&amp;nbsp;com.databricks:spark-xml_2.12:0.17.0&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from pyspark.sql import SparkSession&lt;/P&gt;&lt;P&gt;# Initialize Spark session&lt;BR /&gt;spark = SparkSession.builder.appName("XMLRead").getOrCreate()&lt;/P&gt;&lt;P&gt;# Path to the XML file&lt;BR /&gt;xml_path = '&amp;lt;path&amp;gt;'&lt;/P&gt;&lt;P&gt;# Read the XML file&lt;BR /&gt;df = spark.read \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .format("xml") \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .option("rootTag", "catalog") \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .option("rowTag", "book") \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .load(xml_path)&lt;/P&gt;&lt;P&gt;# Show the DataFrame&lt;BR /&gt;df.show()&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 17:00:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/native-xml-data-source-not-enabled/m-p/49616#M1620</guid>
      <dc:creator>Ajbi</dc:creator>
      <dc:date>2023-10-20T17:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: NATIVE_XML_DATA_SOURCE_NOT_ENABLED</title>
      <link>https://community.databricks.com/t5/get-started-discussions/native-xml-data-source-not-enabled/m-p/49711#M1625</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91996"&gt;@Ajbi&lt;/a&gt;&amp;nbsp;AFAIK DBR 14.1 was supposed to support XML out of the box. Maybe that's the case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try using spark.read.format('com.databricks.spark.xml')... instead?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 05:31:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/native-xml-data-source-not-enabled/m-p/49711#M1625</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-10-23T05:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: NATIVE_XML_DATA_SOURCE_NOT_ENABLED</title>
      <link>https://community.databricks.com/t5/get-started-discussions/native-xml-data-source-not-enabled/m-p/49722#M1628</link>
      <description>&lt;P&gt;i've tried already &lt;SPAN&gt;&amp;nbsp;spark.read.format('com.databricks.spark.xml').&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it receives the same error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 10:51:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/native-xml-data-source-not-enabled/m-p/49722#M1628</guid>
      <dc:creator>Ajbi</dc:creator>
      <dc:date>2023-10-23T10:51:30Z</dc:date>
    </item>
  </channel>
</rss>

