I've been surprised by how non-intuitive the standard Scala XML library is (beyond defining in-line XML and basic path tree traversal) as well as the lack of any apparent replacements. It looks like at one point anti-xml was gaining traction but it appears that development has been stale for some time.
Specifically I'm looking to manipulate the XML tree by adding and removing sub-trees, something along the lines of:
val tree1 = <root><foo>foo</foo></root>
val tree2 = <root><bar>bar</bar></root>
tree1 + tree2 == <root><foo>foo</foo><bar>bar</bar></root>
Pimping the existing Scala XML library is certainly an option but if there are existing libraries that afford this functionality I'd prefer to let them do the heavy lifting.
Do folks have recommendations on appropriate XML libraries for Scala in 2015 (i.e. >= 2.10) where this sort of manipulation is possible and straightforward?