2893件ヒット
[1-100件を表示]
(0.049秒)
種類
- インスタンスメソッド (2365)
- 特異メソッド (396)
- 定数 (88)
- クラス (44)
クラス
-
REXML
:: AttlistDecl (77) -
REXML
:: Attribute (154) -
REXML
:: Attributes (165) -
REXML
:: CData (44) -
REXML
:: Child (77) -
REXML
:: Comment (88) -
REXML
:: Declaration (22) -
REXML
:: DocType (198) -
REXML
:: Document (220) -
REXML
:: Element (451) -
REXML
:: ElementDecl (11) -
REXML
:: Elements (154) -
REXML
:: Entity (143) -
REXML
:: ExternalEntity (33) -
REXML
:: Formatters :: Default (22) -
REXML
:: Formatters :: Pretty (33) -
REXML
:: Formatters :: Transitive (11) -
REXML
:: Instruction (66) -
REXML
:: NotationDecl (66) -
REXML
:: Parent (286) -
REXML
:: Text (110) -
REXML
:: XMLDecl (165) -
REXML
:: XPath (33)
モジュール
-
REXML
:: EntityConst (44) -
REXML
:: Namespace (66) -
REXML
:: Node (77) -
REXML
:: Security (33)
キーワード
- << (44)
- <=> (22)
- == (44)
- AMP (11)
- DECLARATION (11)
-
DEFAULT
_ ENTITIES (11) -
DEFAULT
_ VERSION (11) - ExternalEntity (11)
- GT (11)
- Instruction (11)
- LT (11)
- NotationDecl (11)
- QUOT (11)
- UNDEFINED (11)
- XMLDecl (11)
- [] (44)
- []= (11)
- add (55)
-
add
_ attribute (22) -
add
_ attributes (11) -
add
_ element (11) -
add
_ namespace (11) - attribute (11)
-
attribute
_ of (11) - attributes (11)
-
attributes
_ of (11) - cdatas (11)
- children (11)
- clone (99)
- collect (11)
- comments (11)
- compact (11)
- content (11)
- context (22)
-
deep
_ clone (11) - default (11)
- delete (33)
-
delete
_ all (22) -
delete
_ at (11) -
delete
_ attribute (11) -
delete
_ element (11) -
delete
_ if (22) -
delete
_ namespace (11) - doctype (22)
- document (22)
- dowrite (11)
- each (66)
-
each
_ attribute (11) -
each
_ child (22) -
each
_ element (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) -
each
_ index (22) -
each
_ recursive (11) - element (11)
-
element
_ name (11) - elements (11)
- empty? (22)
- encoding (22)
- encoding= (11)
- entities (11)
- entity (11)
-
entity
_ expansion _ limit (22) -
entity
_ expansion _ text _ limit (22) -
entity
_ expansion _ text _ limit= (22) - external (11)
-
external
_ id (11) -
find
_ first _ recursive (11) - first (11)
-
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ elements (11) -
get
_ text (11) -
has
_ attributes? (11) -
has
_ elements? (11) -
has
_ name? (11) -
has
_ text? (11) - include? (11)
- index (22)
-
index
_ in _ parent (11) - inject (11)
-
insert
_ after (11) -
insert
_ before (11) - instructions (11)
- length (22)
-
local
_ name (11) - match (11)
- matches? (11)
- name (55)
- namespace (22)
- namespaces (33)
- ndata (11)
- new (242)
-
next
_ element (11) -
next
_ sibling (11) -
next
_ sibling _ node (11) -
node
_ type (99) - normalize (11)
- normalized (11)
- notation (11)
- notations (11)
- nowrite (11)
- parent (11)
- parent? (22)
-
parse
_ stream (11) - prefix (22)
- prefixes (22)
-
previous
_ element (11) -
previous
_ sibling (11) -
previous
_ sibling _ node (11) - pubid (11)
- public (22)
- push (11)
- raw (22)
- ref (11)
- remove (22)
-
replace
_ child (11) -
replace
_ with (11) - root (22)
-
root
_ node (11) - size (33)
-
stand
_ alone? (22) - standalone (11)
- string (11)
- system (22)
- target (11)
- text (11)
- texts (11)
-
to
_ a (33) -
to
_ s (99) -
to
_ string (11) - unnormalize (11)
- unnormalized (11)
- unshift (11)
- value (44)
- version (22)
- whitespace (11)
- width (11)
- write (121)
- writeencoding (11)
- writethis (11)
-
xml
_ decl (11) - xmldecl (11)
- xpath (22)
検索結果
先頭5件
-
REXML
:: Element # add _ element(element , attrs = nil) -> Element (174.0) -
子要素を追加します。
...quire 'rexml/document'
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 att......r1='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
:: Document . entity _ expansion _ text _ limit -> Integer (132.0) -
実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。
...トは 10240 (byte) です。
このメソッドは Ruby 2.1 から deprecated になりました。
REXML::Security.entity_expansion_text_limit を使ってください。
@see REXML::Document.entity_expansion_text_limit=,
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/... -
REXML
:: Instruction # content -> String | nil (132.0) -
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-stylesheet"
doc[2].content # => "type... -
REXML
:: Instruction # target -> String (132.0) -
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-stylesheet"
doc[2].content # => "type=\"te... -
REXML
:: Security . entity _ expansion _ text _ limit -> Integer (132.0) -
実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。
...せ、処理を中断します。
実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。
デフォルトは 10240 (byte) です。
@see REXML::Document.entity_expansion_text_limit=,
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/... -
REXML
:: Elements # [](index , name = nil) -> REXML :: Element | nil (120.0) -
index が指し示している要素を返します。
...指定した場合は index 番目の子要素を返します。
index は 1-origin です。つまり
最初の要素の index は 1 であり、 0 ではありません。
n 番目の要素の index は n であり、 n-1 ではありません。
これは XPath の仕様に合わせています......す。
name を指定した場合 name という名前を持つ子要素の中で index 番目の
ものを返します。この場合も index は 1-origin です。
整数で指定した場合でも、XPathで指定した場合でも、
指定した要素が存在しない場合は nil を返し......取り出したい要素の index (整数)もしくは xpath (文字列)
@param name 子要素の名前(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a><b/><c id="1"/><c id="2"/><d/></a>'
doc.root.elements[1] # => <b/>
doc.root.elements['c'] # => <c id=... -
REXML
:: DocType # public -> String | nil (114.0) -
DTD の公開識別子を返します。
...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-strict.dtd"
doctype.public # => "-//W3C//DTD... -
REXML
:: DocType # system -> String | nil (114.0) -
DTD のシステム識別子を返します。
...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-strict.dtd"
doctype.public # => "-//W3C//DTD... -
REXML
:: Document # encoding -> String (114.0) -
XML 宣言に含まれている XML 文書のエンコーディングを返します。
...宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.encoding # => "UTF-8"
//}... -
REXML
:: Elements # index(element) -> Integer (114.0) -
element で指定した要素が何番目の子要素であるかを返します。
...element で指定した要素が何番目の子要素であるかを返します。
element が子要素でない場合は -1 を返します。
返り値は 1-origin です。
@param element インデックスを知りたい要素(REXML::Element オブジェクト)
@see REXML::Element#[]...