Scala XML: create a node not using literals

Posted by Damian on Stack Overflow See other posts from Stack Overflow or by Damian
Published on 2010-03-27T20:56:12Z Indexed on 2010/03/27 21:03 UTC
Read the original article Hit count: 219

Filed under:
|

How can I create a node in Scala without using literals?

What I need is to set the node tag name in runtime, for example:

var tag = "post"
var content = "234"

How can I get a node <post>234</post>?

© Stack Overflow or respective owner

Related posts about scala

Related posts about Xml