840件ヒット
[201-300件を表示]
(0.076秒)
ライブラリ
-
net
/ imap (72) - pathname (12)
- pstore (84)
- psych (36)
-
rexml
/ document (504) -
rexml
/ streamlistener (36) - rss (36)
-
rubygems
/ security (24) -
rubygems
/ server (12)
クラス
-
Gem
:: Security :: Policy (24) -
Gem
:: Server (12) -
Net
:: IMAP (36) -
Net
:: IMAP :: MailboxQuotaRoot (24) -
Net
:: IMAP :: ThreadMember (12) - PStore (84)
- Pathname (12)
-
Psych
:: Nodes :: Document (12) -
Psych
:: Nodes :: Node (12) -
Psych
:: TreeBuilder (12) -
RDoc
:: Options (24) -
REXML
:: Attributes (156) -
REXML
:: CData (24) -
REXML
:: DocType (24) -
REXML
:: Document (12) -
REXML
:: Element (192) -
REXML
:: Elements (72) -
REXML
:: Instruction (24)
モジュール
-
REXML
:: StreamListener (36) -
RSS
:: RootElementMixin (36)
キーワード
- [] (24)
- []= (24)
- abort (12)
-
add
_ attribute (24) -
add
_ element (12) - attribute (12)
- commit (12)
- content (12)
- delete (36)
-
delete
_ all (12) -
delete
_ element (12) -
delete
_ namespace (12) - doctype (12)
- each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - elementdecl (12)
- entitydecl (12)
- fetch (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - getquota (12)
- getquotaroot (12)
-
has
_ elements? (12) - length (12)
- mailbox (12)
- namespaces (12)
-
next
_ element (12) -
output
_ encoding (12) -
output
_ encoding= (12) - prefixes (12)
- public (12)
- quotaroots (12)
- root= (12)
- root? (24)
-
root
_ node (12) - roots (12)
- seqno (12)
- setquota (12)
- size (24)
- system (12)
- tag (12)
- target (12)
- text (12)
- text= (12)
-
to
_ a (24) -
to
_ s (12) -
to
_ xml (12) - transaction (12)
- value (12)
-
verify
_ root (12) -
verify
_ root= (12) - xpath (12)
検索結果
先頭5件
-
RSS
:: RootElementMixin # output _ encoding (3001.0) -
@todo
@todo -
RSS
:: RootElementMixin # output _ encoding= (3001.0) -
@todo
@todo -
RSS
:: RootElementMixin # to _ xml (3001.0) -
@todo
@todo -
REXML
:: Elements # delete(element) -> Element (49.0) -
element で指定した子要素を取り除きます。
...c.root.elements[1]
doc.root.elements.delete b # => <b/>
doc.root.to_s # => "<a><c/><c id='1'/></a>"
doc.elements.delete("a/c[@id='1']") # => <c id='1'/>
doc.root.to_s # => "<a><c/></a>"
doc.root.elements.delete 1 # => <c/>
doc.root.t......o_s # => "<a/>"
doc.root.elements.delete '/a'
doc.root.to_s # => ""
//}... -
REXML
:: Elements # []=(index , element) (43.0) -
集合に要素 element を追加/更新します。
...ML::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.root.to_s # => "<a><c/></a>"
doc.root.elements['c'] = REXML::Element.new('d')
doc.root.to_s # => "<a><d/></a>"
//... -
REXML
:: Element # add _ attribute(attr) -> () (37.0) -
要素の属性を追加します。 同じ名前の属性がすでにある場合はその属性を新しい 属性で置き換えます。
...list[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<e/>")
doc.root.add_attribute("a", "b"); doc.root # => <e a='b'/>
doc.root.add_attribute("x:a", "c"); doc.root # => <e a='b' x:a='c'/>
doc.root.add_attribute(REXML::Attribute.new("b", "d"))
doc.root # => <e a='b' x:a='c' b='d'/>
//}... -
REXML
:: Element # add _ attribute(key , value) -> () (37.0) -
要素の属性を追加します。 同じ名前の属性がすでにある場合はその属性を新しい 属性で置き換えます。
...list[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<e/>")
doc.root.add_attribute("a", "b"); doc.root # => <e a='b'/>
doc.root.add_attribute("x:a", "c"); doc.root # => <e a='b' x:a='c'/>
doc.root.add_attribute(REXML::Attribute.new("b", "d"))
doc.root # => <e a='b' x:a='c' b='d'/>
//}... -
REXML
:: Element # add _ element(element , attrs = nil) -> Element (37.0) -
子要素を追加します。
...cument'
doc = REXML::Document.new('<a/>')
el = doc.root.add_element 'my-tag' # => <my-tag/>
doc.root.to_s # => "<a><my-tag/></a>"
el = doc.root.add_element 'my-tag', {'attr1'=>'val1', 'attr2'=>'val2'}
# => <my-tag attr1='val1' attr2='val2'/>
doc.root.to_s # => "<a><my-tag/><my-tag attr1='val1' attr2......='val2'/></a>"
el = REXML::Element.new 'my-tag'
doc.root.add_element el # => <my-tag/>
doc.root.to_s # => "<a><my-tag/><my-tag attr1='val1' attr2='val2'/><my-tag/></a>"
//}
@see REXML::Elements#add, REXML::Element.new... -
REXML
:: Elements # [](index , name = nil) -> REXML :: Element | nil (37.0) -
index が指し示している要素を返します。
.../><d/></a>'
doc.root.elements[1] # => <b/>
doc.root.elements['c'] # => <c id='1'/>
doc.root.elements[2,'c'] # => <c id='2'/>
doc = REXML::Document.new '<a><b><c /><a id="1"/></b></a>'
doc.root.elements["a"] # => nil
doc.root.elements["b/a"] # => <a id='1'/>
doc.root.elements["/a"]...