We need to change avro format by xml in both descriptions of classes XmlDataFrameWriter and XmlDataFrameReaderXml object.
/**
* Adds a method, `xml`, to DataFrameWriter that allows you to write avro files using
* the DataFileWriter
*/
implicit class XmlDataFrameWriter[T](writer: DataFrameWriter[T]) {
....
/**
* Adds a method, `xml`, to DataFrameReader that allows you to read avro files using
* the DataFileReader
*/
implicit class XmlDataFrameReader(reader: DataFrameReader) {
....
We need to change
avro
format byxml
in both descriptions of classes XmlDataFrameWriter and XmlDataFrameReader Xml object.