scala String to scala.xml.Elem

后端 未结 1 1912
野趣味
野趣味 2021-02-02 06:44

I have to convert a string into XML

scala> val string=\"\"
string: String = 

        
相关标签:
1条回答
  • 2021-02-02 07:25
    scala> scala.xml.XML.loadString(string)
    res0: scala.xml.Elem = <play><scala/></play>
    
    0 讨论(0)
提交回复
热议问题