11件ヒット
[1-11件を表示]
(0.169秒)
ライブラリ
-
rexml
/ document (11)
クラス
-
REXML
:: DocType (11)
検索結果
-
REXML
:: DocType # write(output , indent = 0 , transitive = false , ie _ hack = false) -> () (18214.0) -
output に DTD を出力します。
...@param indent インデントの深さ。指定しないでください。
@param transitive 無視されます。指定しないでください。
@param ie_hack 無視されます。指定しないでください。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS)......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 bo......ok (comment)>
# ....
//}...