3180件ヒット
[1-100件を表示]
(0.057秒)
別のキーワード
種類
- インスタンスメソッド (2580)
- 特異メソッド (432)
- 定数 (96)
- クラス (48)
- ライブラリ (24)
ライブラリ
-
rexml
/ document (3156)
クラス
-
REXML
:: AttlistDecl (84) -
REXML
:: Attribute (168) -
REXML
:: Attributes (180) -
REXML
:: CData (48) -
REXML
:: Child (84) -
REXML
:: Comment (96) -
REXML
:: Declaration (24) -
REXML
:: DocType (216) -
REXML
:: Document (240) -
REXML
:: Element (492) -
REXML
:: ElementDecl (12) -
REXML
:: Elements (168) -
REXML
:: Entity (156) -
REXML
:: ExternalEntity (36) -
REXML
:: Formatters :: Default (24) -
REXML
:: Formatters :: Pretty (36) -
REXML
:: Formatters :: Transitive (12) -
REXML
:: Instruction (72) -
REXML
:: NotationDecl (72) -
REXML
:: Parent (312) -
REXML
:: Text (120) -
REXML
:: XMLDecl (180) -
REXML
:: XPath (36)
モジュール
-
REXML
:: EntityConst (48) -
REXML
:: Namespace (72) -
REXML
:: Node (84) -
REXML
:: Security (36)
キーワード
- << (48)
- <=> (24)
- == (48)
- AMP (12)
- DECLARATION (12)
-
DEFAULT
_ ENTITIES (12) -
DEFAULT
_ VERSION (12) - ExternalEntity (12)
- GT (12)
- Instruction (12)
- LT (12)
- NotationDecl (12)
- QUOT (12)
- UNDEFINED (12)
- XMLDecl (12)
- [] (48)
- []= (12)
- add (60)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ namespace (12) - attribute (12)
-
attribute
_ of (12) - attributes (12)
-
attributes
_ of (12) - cdatas (12)
- children (12)
- clone (108)
- collect (12)
- comments (12)
- compact (12)
- content (12)
- context (24)
-
deep
_ clone (12) - default (12)
- delete (36)
-
delete
_ all (24) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ if (24) -
delete
_ namespace (12) - doctype (24)
- document (24)
- dowrite (12)
- each (72)
-
each
_ attribute (12) -
each
_ child (24) -
each
_ element (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ index (24) -
each
_ recursive (12) - element (12)
-
element
_ name (12) - elements (12)
- empty? (24)
- encoding (24)
- encoding= (12)
- entities (12)
- entity (12)
-
entity
_ expansion _ limit (24) -
entity
_ expansion _ text _ limit (24) -
entity
_ expansion _ text _ limit= (24) - external (12)
-
external
_ id (12) -
find
_ first _ recursive (12) - first (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ elements (12) -
get
_ text (12) -
has
_ attributes? (12) -
has
_ elements? (12) -
has
_ name? (12) -
has
_ text? (12) - include? (12)
- index (24)
-
index
_ in _ parent (12) - inject (12)
-
insert
_ after (12) -
insert
_ before (12) - instructions (12)
- length (24)
-
local
_ name (12) - match (12)
- matches? (12)
- name (60)
- namespace (24)
- namespaces (36)
- ndata (12)
- new (264)
-
next
_ element (12) -
next
_ sibling (12) -
next
_ sibling _ node (12) -
node
_ type (108) - normalize (12)
- normalized (12)
- notation (12)
- notations (12)
- nowrite (12)
- parent (12)
- parent? (24)
-
parse
_ stream (12) - prefix (24)
- prefixes (24)
-
previous
_ element (12) -
previous
_ sibling (12) -
previous
_ sibling _ node (12) - pubid (12)
- public (24)
- push (12)
- raw (24)
- ref (12)
- remove (24)
-
replace
_ child (12) -
replace
_ with (12) - rexml (12)
- root (24)
-
root
_ node (12) - size (36)
-
stand
_ alone? (24) - standalone (12)
- string (12)
- system (24)
- target (12)
- text (12)
- texts (12)
-
to
_ a (36) -
to
_ s (108) -
to
_ string (12) - unnormalize (12)
- unnormalized (12)
- unshift (12)
- value (48)
- version (24)
- whitespace (12)
- width (12)
- write (132)
- writeencoding (12)
- writethis (12)
-
xml
_ decl (12) - xmldecl (12)
- xpath (24)
検索結果
先頭5件
-
rexml
/ document (38048.0) -
DOM スタイルの XML パーサ。
...り出します。
//emlist[][ruby]{
require 'rexml/document'
require 'pp'
Bookmark = Struct.new(:href, :title, :desc)
doc = REXML::Document.new(<<XML)
<?xml version="1.0" encoding="UTF-8" ?>
<xbel version="1.0">
<bookmark href="http://www.ruby-lang.org/ja/">
<title>オブジェクト指向......スクリプト言語 Ruby</title>
<desc>Rubyの公式サイト</desc>
</bookmark>
<bookmark href="http://rurema.clear-code.com/">
<title>最速Rubyリファレンスマニュアル検索! | るりまサーチ</title>
<desc>Rubyリファレンスマニュアルを全文検索でき......="https://github.com/rurema/bitclust">
<title>rurema/bitclust · GitHub</title>
</bookmark>
<bookmark href="https://rubygems.org/gems/bitclust-core" />
</xbel>
XML
bookmarks = REXML::XPath.match(doc, "/xbel/bookmark").map do |bookmark|
href = bookmark.attribute("href").value
title_eleme... -
REXML
:: Element # add _ element(element , attrs = nil) -> Element (8178.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
:: Instruction # content -> String | nil (8136.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 (8136.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
:: Document . entity _ expansion _ text _ limit -> Integer (8130.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
:: Security . entity _ expansion _ text _ limit -> Integer (8130.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 (8124.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 (8118.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 (8118.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...