You can add the XSD file to the SparkContext using:
spark.sparkContext.addFile("path/to/your/file.xsd")
This makes the file available on all the nodes in the cluster.
More details: https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.SparkContext.addFile.html