660件ヒット
[601-660件を表示]
(0.146秒)
ライブラリ
-
net
/ imap (72) - pstore (24)
- psych (24)
-
rexml
/ document (420) -
rexml
/ streamlistener (36) - rss (36)
-
rubygems
/ security (24)
クラス
-
Gem
:: Security :: Policy (24) -
Net
:: IMAP (36) -
Net
:: IMAP :: MailboxQuotaRoot (24) -
Net
:: IMAP :: ThreadMember (12) - PStore (24)
-
Psych
:: Nodes :: Node (12) -
Psych
:: TreeBuilder (12) -
RDoc
:: Options (24) -
REXML
:: Attributes (156) -
REXML
:: CData (24) -
REXML
:: DocType (24) -
REXML
:: Document (12) -
REXML
:: Element (120) -
REXML
:: Elements (60) -
REXML
:: Instruction (24)
モジュール
-
REXML
:: StreamListener (36) -
RSS
:: RootElementMixin (36)
キーワード
- [] (24)
- []= (24)
-
add
_ attribute (24) -
add
_ element (12) - attribute (12)
- commit (12)
- content (12)
- delete (12)
-
delete
_ all (12) - doctype (12)
- each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - elementdecl (12)
- entitydecl (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - getquota (12)
- getquotaroot (12)
- length (12)
- mailbox (12)
- namespaces (12)
-
next
_ element (12) -
output
_ encoding (12) -
output
_ encoding= (12) - prefixes (12)
- public (12)
- quotaroots (12)
- root= (12)
- seqno (12)
- setquota (12)
- size (24)
- system (12)
- tag (12)
- target (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件
-
REXML
:: Elements # each(xpath = nil) {|element| . . . } -> [REXML :: Elements] (125.0) -
全ての子要素に対しブロックを呼び出します。
...字列
//emlist[][ruby]{
require 'rexml/document'
require 'rexml/xpath'
doc = REXML::Document.new '<a><b/><c/><d/>sean<b/><c/><d/></a>'
# <b/>,<c/>,<d/>,<b/>,<c/>, <d/> がブロックに渡される
doc.root.elements.each {|e|p e}
# <b/>, <b/> がブロックに渡される
doc.root.elements.each(......'b') {|e|p e} #-> Yields b, b elements
# <b/>,<c/>,<d/>,<b/>,<c/>,<d/> がブロックに渡される
doc.root.elements.each('child::node()') {|e|p e}
# <b/>,<c/>,<d/>,"sean",<b/>,<c/>,<d/> がブロックに渡される
REXML::XPath.each(doc.root, 'child::node()'){|node| p node }
//}... -
REXML
:: Elements # to _ a(xpath = nil) -> [REXML :: Element] (119.0) -
すべての子要素の配列を返します。
...//emlist[][ruby]{
require 'rexml/document'
require 'rexml/xpath'
doc = REXML::Document.new '<a>sean<b/>elliott<c/></a>'
doc.root.elements.to_a # => [<b/>, <c/>]
doc.root.elements.to_a("child::node()") # => [<b/>, <c/>]
REXML::XPath.match(doc.root, "child::node()") # => ["sean", <b/>, "elliott",... -
REXML
:: Element # next _ element -> Element | nil (113.0) -
次の兄弟要素を返します。
...次の兄弟要素を返します。
次の要素が存在しない場合は nil を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a><b/>text<c/></a>'
doc.root.elements['b'].next_element # => <c/>
doc.root.elements['c'].next_element # => nil
//}... -
REXML
:: Element # xpath -> String (113.0) -
文書上の対象の要素にのみマッチする xpath 文字列を返します。
...文字列を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new('<a><b/><c/></a>')
c = doc.root.elements[2] # <a> .. </a> の中の <c/> 要素
c # => <c/>
c.xpath # => "/a/c"
doc = REXML::Document.new('<a><b/><b/></a>')
b = doc.root.elements[2] # <a> .. </a> の中... -
REXML
:: DocType # system -> String | nil (107.0) -
DTD のシステム識別子を返します。
...nil を返します。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EOS
doctype.system # => "http://www.w3.org/TR/xhtml1/DTD/xhtml1-stri......ct.dtd"
doctype.public # => "-//W3C//DTD XHTML 1.0 Strict//EN"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root SYSTEM "foobar">
EOS
doctype.system # => "foobar"
doctype.public # => nil
//}...