720件ヒット
[201-300件を表示]
(0.107秒)
別のキーワード
ライブラリ
- ビルトイン (72)
-
cgi
/ html (48) - csv (12)
-
net
/ imap (12) -
rake
/ rdoctask (240) -
rexml
/ document (216) -
rexml
/ parsers / pullparser (12) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (24) -
webrick
/ httpresponse (72)
クラス
- CSV (12)
- IO (12)
-
Net
:: IMAP (12) -
REXML
:: DocType (192) -
REXML
:: Document (12) -
REXML
:: Parsers :: PullEvent (12) -
REXML
:: Text (12) -
Rake
:: RDocTask (240) - String (48)
-
WEBrick
:: HTTPResponse (72)
モジュール
-
CGI
:: Html3 (12) -
CGI
:: Html4 (12) -
CGI
:: Html4Fr (12) -
CGI
:: Html4Tr (12) - Enumerable (12)
-
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (24)
キーワード
- [] (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)
-
node
_ type (12) - notation (12)
- notations (12)
-
option
_ list (12) -
option
_ string (12) - public (12)
- quote (12)
-
rdoc
_ dir (12) -
rdoc
_ dir= (12) -
rdoc
_ files (12) -
rdoc
_ files= (12) - system (12)
- template (12)
- template= (12)
- title (12)
- title= (12)
-
to
_ f (12) -
to
_ i (12) -
to
_ s (12) - write (12)
検索結果
先頭5件
-
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (3001.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::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.attributes_of("bo......ok")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}... -
REXML
:: DocType # context -> { Symbol => object } (3001.0) -
DTD が属する文書の「コンテキスト」を返します。
DTD が属する文書の「コンテキスト」を返します。
具体的には親ノードである REXML::Document オブジェクトの
REXML::Element#context を返します。
コンテキストの具体的な内容については REXML::Element#context を
参照してください。 -
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 doctyp... -
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" の いずれかの文字列を返します。
...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 (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 検索する記法名