Not able to use _metadata to retrieve file name while reading xml files

NirmalaSathiya
New Contributor

We are trying to retrieve xml file name using _metadata but not working. 
we are not able to use input _file_name() also as we are using shared cluster.

we are reading the xml files using com.datadricks.spark.xml library