I have an XML string where some nodes have text between the tags, like so:
<note>
<to>Text between tags</to>
<from>More text</from>
<empty />
</note>
In Scala, how can I remove the text between these tags so that I get a string like this?:
<note><to></to><from></from><empty /></note>