XML processing in Scala