11件ヒット
[1-11件を表示]
(0.234秒)
ライブラリ
-
rexml
/ document (11)
クラス
-
REXML
:: Attributes (11)
検索結果
-
REXML
:: Attributes # namespaces -> { String => String } (24620.0) -
self の中で宣言されている名前空間の集合を返します。
...fix をキーとし、URI を値とする
Hash を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_element......s("/root/a").first
p doc.root.attributes.namespaces
# => {"foo"=>"http://example.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}...