種類
- インスタンスメソッド (480)
- ライブラリ (60)
- 特異メソッド (48)
- クラス (48)
- 定数 (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)
-
cgi
/ session (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 / pullparser (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) - system (12)
- unnormalize (12)
- write (12)
検索結果
先頭5件
-
REXML
:: Parsers :: PullEvent # doctype? -> bool (6101.0) -
DTD 開始なら真を返します。
DTD 開始なら真を返します。 -
REXML
:: StreamListener # doctype _ end -> () (6101.0) -
文書型宣言(DTD)の終了区切りをパースしたときに呼び出されるコールバックメソッドです。
文書型宣言(DTD)の終了区切りをパースしたときに呼び出されるコールバックメソッドです。 -
REXML
:: DocType (6000.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
:: DocType . new(source , parent = nil) -> REXML :: DocType (3141.0) -
DocType オブジェクトを生成します。
...
DocType オブジェクトを生成します。
REXML::Source オブジェクトの場合は、Source オブジェクトが
保持しているDTDのテキストがパースされ、その内容によって DocType
オブジェクトが初期化されます。
REXML::DocType.new(Source.new(<<EOS)......)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EOS
このインターフェースは deprecated です。
このメソッドは他のインターフェースもありますが、内部用なので使わないで
くださ......い。
一般的にいって、XML 文書に含まれる DTD は REXML::Document.new などで
適切に解析され、REXML::Document#doctype で取得できます。
このメソッドを直接使う必要はありません。... -
REXML
:: DocType # clone -> REXML :: DocType (3113.0) -
self の複製を返します。
...self の複製を返します。
external_id (REXML::DocType#external_id) と
名前(REXML::DocType#name) のみ複製されるため、
結果として得られるオブジェクトはあまり有用ではないでしょう。... -
REXML
:: DocType # external _ id -> String | nil (3060.0) -
DTD が外部サブセットを用いている場合は "SYSTEM", "PUBLIC" の いずれかの文字列を返します。
...ocument'
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.name # => "html"
doctype.external_id # => "PUBLIC"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books......[
<!ELEMENT books (book+)>
<!ELEMENT book (title,author)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT author (#PCDATA)>
]>
EOS
doctype.name # => "books"
doctype.external_id # => nil
//}... -
REXML
:: DocType # public -> String | nil (3060.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//DT......D XHTML 1.0 Strict//EN"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root SYSTEM "foobar">
EOS
doctype.system # => "foobar"
doctype.public # => nil
//}... -
REXML
:: DocType # system -> String | nil (3060.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//DT......D XHTML 1.0 Strict//EN"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root SYSTEM "foobar">
EOS
doctype.system # => "foobar"
doctype.public # => nil
//}... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (3042.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...re '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.attribute_of("boo......k", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}...