お世話になります.
ScalaのElemシングルトンオブジェクトでマッチングさせる方法を教えてください.
http://www.scala-lang.org/api/current/index.html#scala.xml.Elem$
には
This singleton object contains the apply and unapplySeq methods for convenient construction and deconstruction. It is possible to deconstruct any Node instance (that is not a SpecialNode or a Group) using the syntax case Elem(prefix, label, attribs, scope, child @ _*) => ...
と記述されています.
XMLの処理で一番ありがちな処理パターンは、「要素aで属性bの値が~のとき何々をする」というものではないかと思います.それでは、この要素名="a"、属性値bの値="~"という条件を、ScalaのElemシングルトンオブジェクトのマッチングで記述するにはどのように書いたらよいのでしょうか?
記述方法がわかりましたらおしえてください.
以上