るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.119秒)

別のキーワード

  1. rexml/document expanded_name
  2. rexml expanded_name
  3. document expanded_name
  4. namespace expanded_name
  5. rexml fully_expanded_name

ライブラリ

クラス

モジュール

キーワード

検索結果

REXML::Document#expanded_name -> String (21102.0)

""(空文字列)を返します。

""(空文字列)を返します。

XMLの仕様上、このオブジェクトはexpanded name名前を持ちえません。

REXML::Namespace#fully_expanded_name -> String (12202.0)

完全修飾名を返します。

完全修飾名を返します。

REXML::Document#name -> String (6002.0)

""(空文字列)を返します。

""(空文字列)を返します。

XMLの仕様上、このオブジェクトはexpanded name名前を持ちえません。

REXML::Attributes#each {|name, value| ... } -> () (3107.0)

各属性の名前と値に対しブロックを呼び出します。

...各属性の名前と値に対しブロックを呼び出します。

名前には expanded_name(REXML::Namespace#exapnded_name)が
渡されます。

//emlist[][ruby]{
require 'rexml/document'

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

a.attributes.each do |name, value|
p [name, value]
end

# => ["foo:att", "1"]
# => ["bar:att", "2"]
# => ["att", "<"]
//}...