372件ヒット
[201-300件を表示]
(0.071秒)
ライブラリ
-
cgi
/ html (96) - fiddle (12)
-
rexml
/ document (216) -
rexml
/ parsers / pullparser (12) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (24)
クラス
-
Fiddle
:: Closure (12) -
REXML
:: DocType (192) -
REXML
:: Document (12) -
REXML
:: Parsers :: PullEvent (12) -
REXML
:: Text (12)
モジュール
-
CGI
:: Html3 (12) -
CGI
:: Html4 (12) -
CGI
:: Html4Fr (12) -
CGI
:: Html4Tr (12) -
CGI
:: HtmlExtension (48) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (24)
キーワード
- add (12)
-
attribute
_ of (12) -
attributes
_ of (12) - clone (12)
- context (12)
- doctype (96)
- doctype? (12)
-
doctype
_ end (12) - entities (12)
- entity (12)
-
external
_ id (12) - form (24)
-
multipart
_ form (24) - name (12)
- namespaces (12)
-
node
_ type (12) - notation (12)
- notations (12)
- public (12)
- system (12)
- write (12)
検索結果
先頭5件
-
REXML
:: DocType # entities -> { String => REXML :: Entity } (3001.0) -
DTD で宣言されている実体の集合を Hash で返します。
...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 \"barbarbarbar\">"
p doctype.... -
REXML
:: DocType # entity(name) -> String | nil (3001.0) -
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 # external _ id -> String | nil (3001.0) -
DTD が外部サブセットを用いている場合は "SYSTEM", "PUBLIC" の いずれかの文字列を返します。
...ument'
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 # name -> String (3001.0) -
ルート要素名を返します。
...ルート要素名を返します。
//emlist[][ruby]{
document = REXML::Document.new(<<EOS)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EOS
doctype = document.doctype
p doctype.name # => "html"
//}... -
REXML
:: DocType # namespaces -> nil (3001.0) -
nil を返します。
nil を返します。 -
REXML
:: DocType # node _ type -> Symbol (3001.0) -
Symbol :doctype を返します。
...Symbol :doctype を返します。... -
REXML
:: DocType # notation(name) -> REXML :: NotationDecl | nil (3001.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) で name という名前を持つものを返します。
DTD に含まれている記法宣言 (REXML::NotationDecl) で
name という名前を持つものを返します。
name という名前を持つ記法宣言が存在しない場合は nil を返します。
@param name 検索する記法名 -
REXML
:: DocType # notations -> [REXML :: NotationDecl] (3001.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) を 配列で返します。
DTD に含まれている記法宣言 (REXML::NotationDecl) を
配列で返します。 -
REXML
:: DocType # public -> String | nil (3001.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......XHTML 1.0 Strict//EN"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root SYSTEM "foobar">
EOS
doctype.system # => "foobar"
doctype.public # => nil
//}...