るりまサーチ

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

別のキーワード

  1. pstore root?
  2. document root
  3. psych root
  4. pathname root?
  5. rexml/document root

ライブラリ

クラス

検索結果

REXML::Attributes#prefixes -> [String] (18137.0)

self の中で宣言されている prefix の集合を 文字列の配列で返します。

...'

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='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

p doc.root.attributes.prefixes # => ["foo", "bar"]
p a.attributes.prefixes # => []
//}...