I have an XML file that looks like this
<a> hello <b> world </b> </a> I would like to use Scala to extract just a's value, without including any of its children (i.e. without including b's value). Currently, if a is a scala.xml.Node, then a.text returns helloworld. What do I type if I just want hello?