156件ヒット
[1-100件を表示]
(0.024秒)
別のキーワード
種類
- インスタンスメソッド (84)
- ライブラリ (48)
- クラス (24)
ライブラリ
-
rexml
/ document (48) -
rexml
/ parsers / sax2parser (60)
クラス
-
REXML
:: DocType (24) -
REXML
:: Parsers :: SAX2Parser (60)
キーワード
- NotationDecl (12)
- listen (60)
- notation (12)
- notations (12)
-
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12)
検索結果
先頭5件
-
REXML
:: DocType (18006.0) -
XML の DTD(文書型定義、Document Type Definition)を表すクラスです。
...マの定義や検証をしたい場合は
XML schema や RELAX NG などを使ってください。
子ノード(REXML::Parent#children)として、
* REXML::ElementDecl
* REXML::ExternalEntity
* REXML::Entity
* REXML::NotationDecl
* REXML::AttlistDecl
などを保持しています。... -
REXML
:: NotationDecl (6036.0) -
DTD の記法宣言を表すクラスです。
...DTD の記法宣言を表すクラスです。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!NOTATION type-image-svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!NOTATION type-image-g......if PUBLIC "image/gif">
<!NOTATION foobar SYSTEM "http://example.org/foobar.dtd">
]>
EOS
svg = doctype.notation("type-image-svg")
p svg.name # => "type-image-svg"
p svg.to_s # => "<!NOTATION type-image-svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/......ww.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"
gif = doctype.notation("type-image-gif")
p gif.name # => "type-image-gif"
p gif.to_s # => "<!NOTATION type-image-gif PUBLIC \"image/gif\">"
p gif.public # => "image/gif"
p gif.system # => nil
foobar = doctype.notation("foobar")
p foobar.name # => "foobar"... -
REXML
:: DocType # notation(name) -> REXML :: NotationDecl | nil (3117.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) で name という名前を持つものを返します。
...DTD に含まれている記法宣言 (REXML::NotationDecl) で
name という名前を持つものを返します。
name という名前を持つ記法宣言が存在しない場合は nil を返します。
@param name 検索する記法名... -
REXML
:: DocType # notations -> [REXML :: NotationDecl] (3117.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) を 配列で返します。
...DTD に含まれている記法宣言 (REXML::NotationDecl) を
配列で返します。... -
rexml
/ parsers / pullparser (60.0) -
プル方式の XML パーサ。
...文字列)
コメント
: start_doctype (ルート要素名, "SYSTEM" | "PUBLIC" | nil, システム識別子 | nil, 公開識別子 | nil)
DTD 開始。判定は REXML::Parsers::PullEvent#doctype? メソッドで、
start_doctype? ではない
: end_doctype ()
DTD 終了
: attlistdecl (要......ォルト値文字列(なければnil) } という Hash
: elementdecl (宣言文字列)
DTDの要素宣言
: entitydecl
DTDの実体宣言
: notationdecl (記法名文字列, "PUBLIC" | "SYSTEM" | nil, 公開識別子文字列 | nil, URI文字列 | nil)
DTDの記法宣言
: cdata (テキスト......xternalentity (エンティティ文字列)
doctype内のパラメータ実体参照。
//emlist[][ruby]{
require 'rexml/parsers/pullparser'
xml = <<EOS
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<!DOCTYPE root SYSTEM "foo" [
<!ELEMENT root (a+)>... -
REXML
:: Parsers :: SAX2Parser # listen(ary) { . . . } -> () (24.0) -
コールバックをパーサに登録します。
...tion)
* :doctype
(DTD, REXML::SAX2Listener#doctype)
* :attlistdecl
(DTDの属性リスト宣言, REXML::SAX2Listener#attlistdecl)
* :entitydecl
(DTDの実体宣言, REXML::SAX2Listener#entitydecl)
* :notationdecl
(DTDの記法宣言, REXML::SAX2Listener#notationdecl)
* :cda... -
REXML
:: Parsers :: SAX2Parser # listen(ary , listener) -> () (24.0) -
コールバックをパーサに登録します。
...tion)
* :doctype
(DTD, REXML::SAX2Listener#doctype)
* :attlistdecl
(DTDの属性リスト宣言, REXML::SAX2Listener#attlistdecl)
* :entitydecl
(DTDの実体宣言, REXML::SAX2Listener#entitydecl)
* :notationdecl
(DTDの記法宣言, REXML::SAX2Listener#notationdecl)
* :cda... -
REXML
:: Parsers :: SAX2Parser # listen(listener) -> () (24.0) -
コールバックをパーサに登録します。
...tion)
* :doctype
(DTD, REXML::SAX2Listener#doctype)
* :attlistdecl
(DTDの属性リスト宣言, REXML::SAX2Listener#attlistdecl)
* :entitydecl
(DTDの実体宣言, REXML::SAX2Listener#entitydecl)
* :notationdecl
(DTDの記法宣言, REXML::SAX2Listener#notationdecl)
* :cda... -
REXML
:: Parsers :: SAX2Parser # listen(sym) { . . . } -> () (24.0) -
コールバックをパーサに登録します。
...tion)
* :doctype
(DTD, REXML::SAX2Listener#doctype)
* :attlistdecl
(DTDの属性リスト宣言, REXML::SAX2Listener#attlistdecl)
* :entitydecl
(DTDの実体宣言, REXML::SAX2Listener#entitydecl)
* :notationdecl
(DTDの記法宣言, REXML::SAX2Listener#notationdecl)
* :cda...