Construct XML with dynamic label and attributes in Scala?

前端 未结 2 757
走了就别回头了
走了就别回头了 2020-12-23 22:42

I want to be able to do this:

val myXml =  

(because I don\'t know what the attribute details

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-23 23:33

    Note: you need to

    import scala.xml.Null
    

    to get this to work, and not scala.Null, which also exists.

提交回复
热议问题