別のキーワード
ライブラリ
- ビルトイン (108)
-
cgi
/ html (48) - csv (12)
- fcntl (12)
-
net
/ imap (12) - openssl (72)
-
rake
/ rdoctask (264) -
rexml
/ document (276) -
rexml
/ parsers / pullparser (12) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (24) -
webrick
/ httpresponse (72)
クラス
- CSV (12)
- IO (12)
-
Net
:: IMAP (12) -
OpenSSL
:: ASN1 :: OctetString (24) -
REXML
:: DocType (216) -
REXML
:: Document (12) -
REXML
:: Parsers :: PullEvent (12) -
REXML
:: Text (36) -
Rake
:: RDocTask (252) - String (48)
-
WEBrick
:: HTTPResponse (72)
モジュール
-
CGI
:: Html3 (12) -
CGI
:: Html4 (12) -
CGI
:: Html4Fr (12) -
CGI
:: Html4Tr (12) - Enumerable (12)
- Fcntl (12)
-
File
:: Constants (12) - Kernel (12)
-
OpenSSL
:: ASN1 (36) - Process (12)
-
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (24)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
DEFAULT
_ ENTITIES (12) - DocType (12)
- Integer (12)
- NOCTTY (12)
-
OCTET
_ STRING (12) -
O
_ NOCTTY (12) - OctetString (36)
- RDocTask (12)
- [] (12)
- add (12)
-
attribute
_ of (12) -
attributes
_ of (12) - body= (12)
- chunk (12)
- chunked= (12)
- clone (12)
-
content
_ length (12) -
content
_ length= (12) - context (12)
- define (12)
- doctype (96)
- doctype? (12)
-
doctype
_ end (12) - entities (12)
- entity (12)
- external (12)
- external= (12)
-
external
_ id (12) - fetch (12)
- hex (12)
- ioctl (24)
- main (12)
- main= (12)
- name (24)
- name= (12)
- namespaces (12)
- new (48)
-
node
_ type (12) - normalize (12)
- notation (12)
- notations (12)
-
option
_ list (12) -
option
_ string (12) - public (12)
- quote (12)
-
rake
/ rdoctask (12) -
rdoc
_ dir (12) -
rdoc
_ dir= (12) -
rdoc
_ files (12) -
rdoc
_ files= (12) -
ruby 1
. 8 . 4 feature (12) - setproctitle (12)
- system (12)
- template (12)
- template= (12)
- title (12)
- title= (12)
-
to
_ f (12) -
to
_ i (12) -
to
_ s (12) - unnormalize (12)
- write (12)
検索結果
先頭5件
-
REXML
:: DocType # entity(name) -> String | nil (3000.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 (3000.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 # name -> String (3000.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 (3000.0) -
nil を返します。
nil を返します。 -
REXML
:: DocType # node _ type -> Symbol (3000.0) -
Symbol :doctype を返します。
...Symbol :doctype を返します。... -
REXML
:: DocType # notation(name) -> REXML :: NotationDecl | nil (3000.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) で name という名前を持つものを返します。
DTD に含まれている記法宣言 (REXML::NotationDecl) で
name という名前を持つものを返します。
name という名前を持つ記法宣言が存在しない場合は nil を返します。
@param name 検索する記法名 -
REXML
:: DocType # notations -> [REXML :: NotationDecl] (3000.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) を 配列で返します。
DTD に含まれている記法宣言 (REXML::NotationDecl) を
配列で返します。 -
REXML
:: DocType # public -> String | nil (3000.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 (3000.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
//}...