c5455747a9 ^
1 2 3 4 5 6 7 8 9
object Test { import scala.xml.{Node,HasKeyValue} def domatch(x:Node): Node = { val hasBar = new HasKeyValue("bar") x match { case Node("foo", hasBar(z), _*) => z case _ => null } } }