score:0

Accepted answer

use this

import spark.implicits._

val parsxml= df .withcolumn("exploded_element", explode($"prgsvc.element"))

More Query from same tag