Questions tagged [scala-xml]

Scala XML is the standard XML library built for Scala.

Scala XML is the standard XML library built for Scala. It provides options for working with XML documents - parsing, processing, building, manipulating and navigating within, and others. Since Scala version 2.11, the Scala XML is a separate, independent library.

63 questions
0
votes
1 answer

How to convert a Sequence of scala.xml.Attribute to scala.xml.MetaData?

There's not much to add here. Of course I'm able to get it done somehow with an imperative coding style, but I'm curious how this can be solved nicely. def this( arguments: Seq[(String, String)], merges: Seq[(String, String)]) = this { val…
Taig
  • 6,718
  • 4
  • 44
  • 65
-1
votes
1 answer

Write List of Map data into csv

val rdd = df.rdd.map(line => Row.fromSeq(( scala.xml.XML.loadString("" + line(1)).child .filter(elem => elem.label == "name1" || elem.label == "name2" ||…
tree em
  • 20,379
  • 30
  • 92
  • 130
-1
votes
1 answer

How to flatten RDD which contains sub list into main list

val rdd = df.rdd.map( line => Row( "BNK", format.format(Calendar.getInstance().getTime()), line(0), scala.xml.XML.loadString("" +…
tree em
  • 20,379
  • 30
  • 92
  • 130
1 2 3 4
5