Closed hipp0gryph closed 6 months ago
I'm not sure that's valid? why not just rename your namespace to not conflict?
I'm not sure that's valid? why not just rename your namespace to not conflict?
Thank you for answer! Yes, that's valid. I check that in IDE and special xml validator. In web I not find info about limitations on same name in tag and namespace. And that work correct if I not use ignoreNamespace.
I have 10 millions xml files now in that format and I don't know how much files in summary created on server with that tag. Temporarily I will use ignoreNamespace: False.
I have many xml files with another schema types and I think in future I can get the same error. Maybe driver have another methods for resolve problems with names? I can rename namespaces in options param maybe?
Thank you in advance!
Yeah, if you can't change the namespace, then just don't ignore it. It's not ambiguous if you retain the namespace
Yeah, if you can't change the namespace, then just don't ignore it. It's not ambiguous if you retain the namespace
In future namespaces can have changes in my files. Example: xmlns:AF2, xmlns:AF4, xmlns:AF5. Yes, that strange, but that files sends from government portal and I not can change it. My namespace tags can be not static. Example: AF2:Name, AF4:Name. I will need logic for getting and substituting namespaces for resolve it without ignoreNamespace. If that error was fixed in future, and I can use ignoreNamespace, I will be happy! Thank you!)
Hello! I have problem with inferring schema, if I use parameter ignoreNamespace. I use driver version 0.16.0 and 0.17.0 with Pyspark 3.1.1 and on 3.3.0. If my namespace and one of blocks have identical names - I get that incorrect inferring schema. In my xml that block and namespace have name test. Code:
Schema:![image](https://github.com/databricks/spark-xml/assets/39443770/5460956a-99d6-4588-b819-8a1c92de832d)
But if I set ignoreNamespace on False.![image](https://github.com/databricks/spark-xml/assets/39443770/21f6317e-4353-4289-8462-9b5a64a34ddd)
Thank you in advance!
My xml. Sorry for another language :(