Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

convert xml to json using Scala ?

convert xml to json using Scala ?


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?


Re: convert xml to json using Scala ?

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.
Don't have an account?
Coming from Hortonworks? Activate your account here