title: Save javaRDD as XML file
body: <p>Is there any way in Apache Spark to save a java RDD of text as an XML file?</p>
  
  <p>What I do currently is save the RDD as a plain text file using <strong>saveAsTextFile</strong> method and then convert it to XML. 
  I am interested to find a way to directly create the XML file from RDD.</p>
  
  <p>Any tip, idea or guide will be appreciated.</p>