write(output, indent = 0, transitive = false, ie_hack = false) -> ()[permalink][rdoc][edit]-
output に DTD を出力します。
このメソッドは deprecated です。REXML::Formatters::Default で出力してください。
- [PARAM]
output: - 出力先の IO オブジェクト
- [PARAM]
indent: - インデントの深さ。指定しないでください。
- [PARAM]
transitive: - 無視されます。指定しないでください。
- [PARAM]
ie_hack: - 無視されます。指定しないでください。
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)> # .... - [PARAM]