1件ヒット
[1-1件を表示]
(0.192秒)
クラス
-
REXML
:: Elements (1)
検索結果
-
REXML
:: Elements # []=(index , element) (54361.0) -
集合に要素 element を追加/更新します。
...@param element 要素(REXML::Elementオブジェクト)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a/>'
doc.root.elements[10] = REXML::Element.new('b')
doc.root.to_s # => "<a><b/></a>"
doc.root.elements[1] # => <b/>
doc.root.elements[1] = REXML::Element.new('c')
doc.roo......t.to_s # => "<a><c/></a>"
doc.root.elements['c'] = REXML::Element.new('d')
doc.root.to_s # => "<a><d/></a>"
//}...