KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to be able to do this: val myXml = <myTag { someAttributes }> </myTag> (because I don't know what the attribute details are at compile time) and this: val myXml = <{someTag}></{someTag}> This isn't valid Scala syntax. The closest I can come is using the Elem object to construct elements, but it's being a little troublesome (inserting PCDATA where I don't want it to). Is there any way of doing it like the above?
Tags (comma-separated)
Save Edits
Cancel