xml string scala scala-xml

scala String a scala.xml.Elem



scala-xml (1)

Tengo que convertir una cadena en XML

scala> val string="<play><scala></scala></play>" string: String = <play><scala></scala></play> scala> val xml=(<play><scala></scala></play>) xml: scala.xml.Elem = <play><scala></scala></play>


scala> scala.xml.XML.loadString(string) res0: scala.xml.Elem = <play><scala/></play>