I have an RDD that is of
t: org.apache.spark.rdd.RDD[Iterator[scala.xml.Node]] = MapPartitionsRDD[23] When using map such as below to access individual node I get an error
scala> t.map(l => l(0)) <console>:41: error: Iterator[scala.xml.Node] does not take parameters t.map(l => l(0)) Is there way to get individual nodes?