title: Read XML in spark
body: <p>I am trying to read xml/nested xml in pyspark using spark-xml jar.</p>
  <pre><code>df = sqlContext.read \
    .format(&quot;com.databricks.spark.xml&quot;)\
     .option(&quot;rowTag&quot;, &quot;hierachy&quot;)\
     .load(&quot;test.xml&quot;
  </code></pre>
  <p>when I execute, data frame is not creating properly.</p>
  <pre><code>    +--------------------+
      |                 att|
      +--------------------+
      |[[1,Data,[Wrapped...|
      +--------------------+
  </code></pre>
  <p>xml format I have is mentioned below :</p>
  <p><a href="https://i.stack.imgur.com/icuRq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/icuRq.png" alt="enter image description here" /></a></p>