11件ヒット
[1-11件を表示]
(0.110秒)
ライブラリ
-
rexml
/ document (11)
検索結果
-
REXML
:: DocType # write(output , indent = 0 , transitive = false , ie _ hack = false) -> () (8.0) -
output に DTD を出力します。
...でください。
//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 publ......isher">
<!ENTITY p "foobar publisher">
<!ENTITY % q "quzz">
]>
EOS
doctype.write(STDOUT)
# =>
# <!DOCTYPE books [
# <!ELEMENT book (comment)>
# ....
//}...