44件ヒット
[1-44件を表示]
(0.119秒)
別のキーワード
ライブラリ
-
rexml
/ document (44)
クラス
-
REXML
:: Attributes (11) -
REXML
:: Document (22)
モジュール
-
REXML
:: Namespace (11)
検索結果
先頭4件
-
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='<'/>
</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", "<"]
//}...