07/17/2010 23:22:00
Scala | サブ要素の抽出
scala> <a><b><c>hello</c></b></a> \ "b"
res4: scala.xml.NodeSeq = NodeSeq(<b><c>hello</c></b>)
タグ名を引数として \ を呼び出す
--------------------------------------------------------------------------------
================================================================================
================================================================================
If I was crying
In the van, with my friend
It was for freedom
From myself and from the land
================================================================================
scala> <a><b><c>hello</c></b></a> \ "b"
res4: scala.xml.NodeSeq = NodeSeq(<b><c>hello</c></b>)
タグ名を引数として \ を呼び出す
--------------------------------------------------------------------------------
================================================================================