Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须将字符串转换为 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>