I have to convert a string into 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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With