876件ヒット
[801-876件を表示]
(0.090秒)
別のキーワード
ライブラリ
-
rexml
/ document (876)
クラス
-
REXML
:: Attributes (156) -
REXML
:: CData (24) -
REXML
:: Child (12) -
REXML
:: DocType (120) -
REXML
:: Document (168) -
REXML
:: Element (240) -
REXML
:: Elements (84) -
REXML
:: Instruction (24) -
REXML
:: Text (12) -
REXML
:: XMLDecl (36)
キーワード
- << (12)
- [] (24)
- []= (24)
- add (12)
-
add
_ attribute (24) -
add
_ element (12) - attribute (12)
-
attribute
_ of (12) -
attributes
_ of (12) - clone (12)
- content (12)
- context (12)
- delete (24)
-
delete
_ all (24) -
delete
_ element (12) -
delete
_ namespace (12) - doctype (24)
- document (24)
- dowrite (12)
- each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - encoding (12)
- entities (12)
- entity (12)
-
external
_ id (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) -
has
_ elements? (12) - length (12)
- name (24)
- namespace (12)
- namespaces (24)
-
next
_ element (12) -
node
_ type (12) - nowrite (12)
- prefixes (24)
- public (12)
- root (24)
-
root
_ node (12) - size (24)
-
stand
_ alone? (12) - system (12)
- target (12)
- text (12)
- text= (12)
-
to
_ a (24) -
to
_ s (12) - value (12)
- version (12)
- write (36)
- writethis (12)
-
xml
_ decl (12) - xpath (12)
検索結果
先頭5件
-
REXML
:: Elements # delete(element) -> Element (7.0) -
element で指定した子要素を取り除きます。
...してください。
@param element 削除する要素(REXML::Element, 整数, 文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a><b/><c/><c id="1"/></a>'
b = doc.root.elements[1]
doc.root.elements.delete b # => <b/>
doc.root.to_s... -
REXML
:: Elements # delete _ all(xpath) -> [REXML :: Element] (7.0) -
xpath で指定した XPath 文字列にマッチする要素をすべて取り除きます。
...べて取り除きます。
@param xpath 取り除く要素を指し示す XPath 文字列
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new('<a><c/><c/><c/><c/></a>')
doc.elements.delete_all("a/c") # => [<c/>, <c/>, <c/>, <c/>]
doc.to_s # => "<a/>"
//}... -
REXML
:: Elements # each(xpath = nil) {|element| . . . } -> [REXML :: Elements] (7.0) -
全ての子要素に対しブロックを呼び出します。
...ることに注意してください。
@param xpath XPath文字列
//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/... -
REXML
:: Elements # size -> Integer (7.0) -
保持している要素の個数を返します。
...保持している要素の個数を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a>sean<b/>elliott<b/>russell<b/></a>'
# doc.root は3つの要素と3つのテキストノードを持つため、6を返す
doc.root.size # => 6
# そのうち要... -
REXML
:: Elements # to _ a(xpath = nil) -> [REXML :: Element] (7.0) -
すべての子要素の配列を返します。
...の子ノードは無視されます。
@param xpath XPath文字列
//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::XP... -
REXML
:: Instruction # content -> String | nil (7.0) -
XML 処理命令の内容を返します。
...XML 処理命令の内容を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-... -
REXML
:: Instruction # target -> String (7.0) -
XML 処理命令のターゲットを返します。
...XML 処理命令のターゲットを返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-st...