I am trying to save data to Elasticsearch using spark, I am working with xml files, as you know Elasticsearch accept only Json files, so I need to convert the xml file into Json file using Scala.
Could you help me?
Hi @Aymen Rahal ,
Found this blog online , is this the answer you are searching for : data conversion XML to json using scala
Please accept the answer if you find this is helpfull. which will help other community users to search this answer easily.