24件ヒット
[1-24件を表示]
(0.214秒)
別のキーワード
ライブラリ
-
rexml
/ document (24)
クラス
-
REXML
:: Attributes (12) -
REXML
:: Elements (12)
検索結果
-
REXML
:: Attributes # []=(name , value) (18107.0) -
指定した属性を更新します。
...がある場合は上書きされ、
そうでない場合は属性が追加されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</ro... -
REXML
:: Elements # []=(index , element) (18107.0) -
集合に要素 element を追加/更新します。
...am index 要素を更新する位置
@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[...