1件ヒット
[1-1件を表示]
(0.217秒)
クラス
-
REXML
:: Elements (1)
検索結果
-
REXML
:: Elements # to _ a(xpath = nil) -> [REXML :: Element] (54385.0) -
すべての子要素の配列を返します。
...XPath.match などと
異なり、要素以外の子ノードは無視されます。
@param xpath XPath文字列
//emlist[][ruby]{
require 'rexml/document'
require 'rexml/xpath'
doc = REXML::Document.new '<a>sean<b/>elliott<c/></a>'
doc.root.elements.to_a # => [<b/>, <c/>]
doc.root.elements.to_...