blob: 64214f65b1ac71e9ca5c9dcc977f06083c9269c2 (
plain) (
tree)
|
|
object xfor {
import scala.xml.NodeSeq
val books =
<bks>
<title>Blabla</title>
<title>Blubabla</title>
<title>Baaaaaaalabla</title>
</bks>;
new NodeSeq { val theSeq = books.child } match {
case t @ <title>Blabla</title> => t
}
//val n: NodeSeq = new NodeSeq { val theSeq = books.child }
//n match {
// case t @ <title>Blabla</title> => t
//}
}
|