72件ヒット
[1-72件を表示]
(0.115秒)
ライブラリ
-
rexml
/ document (24) - rss (48)
クラス
-
REXML
:: DocType (24) -
RSS
:: Maker :: ItemsBase :: ItemBase (24) -
RSS
:: Rss :: Channel :: Item (24)
キーワード
-
attribute
_ of (12) - write (12)
検索結果
先頭5件
-
RSS
:: Maker :: ItemsBase :: ItemBase # author (27219.0) -
@todo
...@todo... -
RSS
:: Rss :: Channel :: Item # author (24219.0) -
@todo
...@todo... -
RSS
:: Maker :: ItemsBase :: ItemBase # author=() (15219.0) -
@todo
...@todo... -
RSS
:: Rss :: Channel :: Item # author= (12219.0) -
@todo
...@todo... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (6219.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...DTD 内の属性リスト宣言で、 element という名前の要素の attribute という
名前の属性のデフォルト値を返します。
elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣......
@param element 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
tit......le CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}... -
REXML
:: DocType # write(output , indent = 0 , transitive = false , ie _ hack = false) -> () (6131.0) -
output に DTD を出力します。
...output に DTD を出力します。
このメソッドは deprecated です。REXML::Formatter で
出力してください。
@param output 出力先の IO オブジェクト
@param indent インデントの深さ。指定しないでください。
@param transitive 無視されます。指定......。
@param ie_hack 無視されます。指定しないでください。
//emlist[][ruby]{
require '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">
<!ENTITY p "foobar publisher">
<!ENTITY % q "quzz">
]>
EOS
doctype.write(STDOUT)
# =>
# <!DOCTYPE books [
# <!ELEMENT book (comment)>
# ....
//}...