<?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: Databricks Spark XML parser : support for namespace declared at the ancestor level. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22871#M15751</link>
    <description>&lt;P&gt;Thank you Dan your feedback and proposal.&lt;/P&gt;&lt;P&gt;As per now I will parser the XML file differently. Really no time to raise a ticket and follow-up on it. &lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 13:38:43 GMT</pubDate>
    <dc:creator>Ben_Spark</dc:creator>
    <dc:date>2022-05-11T13:38:43Z</dc:date>
    <item>
      <title>Databricks Spark XML parser : support for namespace declared at the ancestor level.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22863#M15743</link>
      <description>&lt;P&gt;I'm trying to use  Spark-XML API and I'm facing issue with the XSD validation option.&lt;/P&gt;&lt;P&gt;Actually when I parser an XML file using the "rowValidationXSDPath" option the parser can't recognize the Prefixes/Namespaces declared at the root level. &lt;/P&gt;&lt;P&gt;For this to work I have to move down the namespace declaration to the level of RowTag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&amp;lt;RootTag xmlns:myPrefix1="http:....." xmlns:myPrefix2="http:....." ... &amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt; myPrefix1:ParentMember&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt; myPrefixe2:ChildMember&amp;gt;&lt;/P&gt;&lt;P&gt; ............&lt;/P&gt;&lt;P&gt; &amp;lt;/myPrefixe2:ChildMember&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;myPrefix1:ParentMember&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/RootTag&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading the above structure using the rowValidationXSDPath option would end with the following error : the prefix "myPrefixe2" for element "myPrefixe2:ChildMember" is not bound.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that was a bug in previous versions but wondering if it was fixed too when the option rowValidationXSDPath is enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 10:11:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22863#M15743</guid>
      <dc:creator>Ben_Spark</dc:creator>
      <dc:date>2022-04-14T10:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Spark XML parser : support for namespace declared at the ancestor level.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22865#M15745</link>
      <description>&lt;P&gt;Hi Kaniz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you answer. &lt;/P&gt;&lt;P&gt;I'm aware of the article and reading an XML without the XSD  is not an issue.  &lt;/P&gt;&lt;P&gt;The problem is that I need to validate my "row" against an XSD using &lt;B&gt;rowValidationXSDPath&lt;/B&gt;  , which does not support Prefixes at Row level with namespace declaration at ancestor level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 11:40:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22865#M15745</guid>
      <dc:creator>Ben_Spark</dc:creator>
      <dc:date>2022-04-18T11:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Spark XML parser : support for namespace declared at the ancestor level.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22868#M15748</link>
      <description>&lt;P&gt;Hey @Ben Ben​&amp;nbsp;, so Spark-XML is not a package maintained by Databricks. It seems like the community doesn't have any inputs here. I'd suggest you reach out to the package maintainers via an Issue on their GitHub here: &lt;A href="https://github.com/databricks/spark-xml" target="test_blank"&gt;https://github.com/databricks/spark-xml&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 16:47:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22868#M15748</guid>
      <dc:creator>Dan_Z</dc:creator>
      <dc:date>2022-05-04T16:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Spark XML parser : support for namespace declared at the ancestor level.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22870#M15750</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;sorry for the late response got busy looking for a  permanent solution to this problem .&lt;/P&gt;&lt;P&gt;At the end we are giving up on the XSDpath parser. This option does not work when Prefixes namespaces are declared at the ancestor level .&lt;/P&gt;&lt;P&gt;Thank you anyway for your help and support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 13:34:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22870#M15750</guid>
      <dc:creator>Ben_Spark</dc:creator>
      <dc:date>2022-05-11T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Spark XML parser : support for namespace declared at the ancestor level.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22871#M15751</link>
      <description>&lt;P&gt;Thank you Dan your feedback and proposal.&lt;/P&gt;&lt;P&gt;As per now I will parser the XML file differently. Really no time to raise a ticket and follow-up on it. &lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 13:38:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-spark-xml-parser-support-for-namespace-declared-at/m-p/22871#M15751</guid>
      <dc:creator>Ben_Spark</dc:creator>
      <dc:date>2022-05-11T13:38:43Z</dc:date>
    </item>
  </channel>
</rss>

