612件ヒット
[101-200件を表示]
(0.110秒)
種類
- インスタンスメソッド (480)
- 特異メソッド (48)
- クラス (48)
- ライブラリ (24)
- 定数 (12)
ライブラリ
-
cgi
/ html (72) -
net
/ http (48) -
rexml
/ document (348) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (60) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (36)
クラス
-
Net
:: HTTPResponse (48) -
REXML
:: DocType (216) -
REXML
:: Document (36) -
REXML
:: Parsers :: PullEvent (12) -
REXML
:: Parsers :: SAX2Parser (60) -
REXML
:: Text (48)
モジュール
-
CGI
:: Html3 (12) -
CGI
:: Html4 (12) -
CGI
:: Html4Fr (12) -
CGI
:: Html4Tr (12) -
CGI
:: HtmlExtension (24) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (36)
キーワード
- << (12)
-
DEFAULT
_ ENTITIES (12) - DocType (12)
- Entity (12)
- ExternalEntity (12)
- NotationDecl (12)
- add (24)
-
attribute
_ of (12) -
attributes
_ of (12) - body (12)
- clone (12)
- context (12)
- doctype? (12)
-
doctype
_ end (12) - entities (12)
- entity (24)
- entitydecl (12)
-
external
_ id (12) - html (24)
- listen (60)
- name (12)
- namespaces (12)
- new (24)
-
node
_ type (12) - normalize (12)
- notation (12)
- notations (12)
- public (12)
-
read
_ body (24) -
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) - system (12)
- unnormalize (12)
- write (12)
検索結果
先頭5件
-
REXML
:: DocType # entities -> { String => REXML :: Entity } (12336.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
:: Parsers :: PullEvent # doctype? -> bool (12201.0) -
DTD 開始なら真を返します。
...DTD 開始なら真を返します。... -
REXML
:: StreamListener # doctype _ end -> () (12201.0) -
文書型宣言(DTD)の終了区切りをパースしたときに呼び出されるコールバックメソッドです。
...文書型宣言(DTD)の終了区切りをパースしたときに呼び出されるコールバックメソッドです。... -
REXML
:: DocType # entity(name) -> String | nil (12130.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 # node _ type -> Symbol (12116.0) -
Symbol :doctype を返します。
...Symbol :doctype を返します。... -
REXML
:: DocType (12000.0) -
XML の DTD(文書型定義、Document Type Definition)を表すクラスです。
...XML の DTD(文書型定義、Document Type Definition)を表すクラスです。
rexml では DTD は積極的にはサポートされていません。
デフォルトの実体定義(gt, lt, amp, quot apos)の解決のため DTD は
ある程度はサポートされますが、スキーマの定......義や検証をしたい場合は
XML schema や RELAX NG などを使ってください。
子ノード(REXML::Parent#children)として、
* REXML::ElementDecl
* REXML::ExternalEntity
* REXML::Entity
* REXML::NotationDecl
* REXML::AttlistDecl
などを保持しています。... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (9242.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
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (9236.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...TD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている
属性の名前とデフォルト値を REXML::Attribute の配列で返します。
名前とデフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Att......ribute#value で表現されます。
//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 #REQUIRED
publisher......CDATA "foobar publisher">
]>
EOS
p doctype.attributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}... -
REXML
:: DocType # notation(name) -> REXML :: NotationDecl | nil (9200.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) で name という名前を持つものを返します。
...DTD に含まれている記法宣言 (REXML::NotationDecl) で
name という名前を持つものを返します。
name という名前を持つ記法宣言が存在しない場合は nil を返します。
@param name 検索する記法名...