databricks / spark-xml

XML data source for Spark SQL and DataFrames
Apache License 2.0
505 stars 227 forks source link

How to read XSD file into pyspark schema. #575

Closed avinashgbhosale closed 2 years ago

avinashgbhosale commented 2 years ago

I am trying to read XSD file into pyspark schema but not able to achieve. This package does not export the class XSDToSchema

srowen commented 2 years ago

It is Scala-only, yes, but you can call simple methods from Python with: https://github.com/databricks/spark-xml#pyspark-notes