るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.048秒)
トップページ > クエリ:name[x] > クエリ:Namespace[x] > クエリ:attribute[x] > クエリ:namespaces[x]

別のキーワード

  1. rexml/document namespace
  2. rake namespace
  3. element add_namespace
  4. rexml/document add_namespace
  5. attribute namespace

ライブラリ

クラス

検索結果

REXML::Attributes#namespaces -> { String => String } (33313.0)

self の中で宣言されている名前空間の集合を返します。

...p://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

p doc.root.attributes.namespaces
# => {"foo"=>"http://example.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}...