780件ヒット
[1-100件を表示]
(0.080秒)
クラス
-
REXML
:: AttlistDecl (24) -
REXML
:: Attribute (72) -
REXML
:: Attributes (36) -
REXML
:: CData (24) -
REXML
:: Comment (60) -
REXML
:: Declaration (12) -
REXML
:: DocType (84) -
REXML
:: Document (60) -
REXML
:: Element (72) -
REXML
:: Entity (108) -
REXML
:: ExternalEntity (12) -
REXML
:: Instruction (24) -
REXML
:: NotationDecl (48) -
REXML
:: Text (24) -
REXML
:: XMLDecl (48)
モジュール
-
REXML
:: Namespace (60) -
REXML
:: Node (12)
キーワード
- <=> (12)
- == (12)
- [] (24)
-
add
_ element (12) -
attribute
_ of (12) - content (12)
-
element
_ name (12) - encoding (24)
- entities (12)
- entity (12)
- external (12)
-
external
_ id (12) -
local
_ name (12) - name (60)
- namespace (24)
- namespaces (24)
- ndata (12)
- normalized (12)
- prefix (24)
- prefixes (24)
- pubid (12)
- public (24)
- ref (12)
-
stand
_ alone? (24) - standalone (12)
- string= (12)
- system (24)
- target (12)
- text (12)
-
to
_ s (108) -
to
_ string (12) - unnormalized (12)
- value (48)
- version (24)
- xpath (24)
検索結果
先頭5件
-
REXML
:: Comment # string -> String (24406.0) -
コメント文字列を返します。
コメント文字列を返します。 -
REXML
:: Attribute # to _ string -> String (12311.0) -
"name='value'" という形式の文字列を返します。
..."name='value'" という形式の文字列を返します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").to_string # => "ns:r='rval'"
//}... -
REXML
:: Comment # string=(value) (12204.0) -
コメント文字列を設定します。
コメント文字列を設定します。
@param value 設定する文字列 -
REXML
:: DocType # entities -> { String => REXML :: Entity } (9404.0) -
DTD で宣言されている実体の集合を Hash で返します。
...DTD で宣言されている実体の集合を Hash で返します。
返される Hash は実体参照名をキーとし、対応する REXML::Entity オブジェクト
を値とするハッシュテーブルです。
これには、XML のデフォルトの実体(gt, lt, quot, apos)も含まれ......。
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "barbarbarbar">
]>
EOS
p doctype.entities # => { "gt" => #<REXML::Entity: ...>,
# "lt" => #<REXML::Entity: ...>, ... }
p doctype.entities["bar"].to_s # => "<!ENTITY bar \"barb......arbarbar\">"
p doctype.entities["gt"].to_s # => "<!ENTITY gt \">\">"
//}... -
REXML
:: Comment # to _ s -> String (9206.0) -
コメント文字列を返します。
コメント文字列を返します。 -
REXML
:: DocType # entity(name) -> String | nil (9204.0) -
name という実体参照名を持つ実体を文字列で返します。
...EXML::Entity#unnormalized 参照)
された文字列が返されます。
name という名前を持つ実体が存在しない場合には nil を返します。
@param name 実体参照名(文字列)
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "......barbarbarbar">
]>
EOS
p doctype.entity("bar") # => "barbarbar"
p doctype.entity("foo") # => nil
//}... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (6304.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...DTD 内の属性リスト宣言で、 element という名前の要素の attribute という
名前の属性のデフォルト値を返します。
elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣......ement 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDATA #R......EQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}... -
REXML
:: Text # to _ s -> String (6222.0) -
テキストの内容を正規化(すべての実体をエスケープ)された状態で返します。
...トとして妥当です。
結果は REXML::Text.new で指定した entity_filter を反映しています。
@see REXML::Text#value
//emlist[][ruby]{
require 'rexml/document'
t = REXML::Text.new("< & foobar", false, nil, false)
t.to_s # => "< & foobar"
t.value # => "< & foobar"
//}... -
REXML
:: CData # to _ s -> String (6205.0) -
テキスト文字列を返します。
...テキスト文字列を返します。
@see REXML::Text#value, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root><![CDATA[foobar baz]]></root>
EOS
doc.root[0].class # => REXML::CData
doc.root[0].value # => "foobar baz"
//}...