36件ヒット
[1-36件を表示]
(0.133秒)
ライブラリ
-
rexml
/ document (36)
クラス
-
REXML
:: Attributes (12) -
REXML
:: Document (24)
検索結果
先頭3件
-
REXML
:: Document # expanded _ name -> String (27210.0) -
""(空文字列)を返します。
...""(空文字列)を返します。
XMLの仕様上、このオブジェクトはexpanded name名前を持ちえません。... -
REXML
:: Document # name -> String (24110.0) -
""(空文字列)を返します。
...""(空文字列)を返します。
XMLの仕様上、このオブジェクトはexpanded name名前を持ちえません。... -
REXML
:: Attributes # each {|name , value| . . . } -> () (144.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='<'/>
</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", "<"]
//}...