1件ヒット
[1-1件を表示]
(0.126秒)
ライブラリ
-
rexml
/ document (1)
クラス
-
REXML
:: Element (1)
検索結果
-
REXML
:: Element # namespaces -> {String => String} (72925.0) -
self の文脈で定義されている名前空間の情報を返します。
self の文脈で定義されている名前空間の情報を返します。
対象の要素とその外側の要素で定義されている名前空間を、{ prefix => 識別子 }
というハッシュテーブルで返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a xmlns:x='1' xmlns:y='2'><b/><c xmlns:z='3'/></a>")
doc.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
//}