22件ヒット
[1-22件を表示]
(0.029秒)
別のキーワード
ライブラリ
- json (11)
-
rexml
/ document (11)
クラス
-
JSON
:: State (11) -
REXML
:: Attributes (11)
検索結果
-
REXML
:: Attributes # []=(name , value) (21207.0) -
指定した属性を更新します。
...指定した属性を更新します。
name で属性の名前を、value で値を更新します。
既に同じ名前の属性がある場合は上書きされ、
そうでない場合は属性が追加されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EO....../example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes["att"] = "9"
a.attributes["foo:attt"] = "8"
a # => <a foo:att='1' bar:att='2' att='9' foo:attt='8'/>
//}
@see REXML::Attributes#add... -
JSON
:: State # []=(name , value) (18233.0) -
Set the attribute name to value.
...Set the attribute name to value....