| Class REXML::DocType |
|
Represents an XML DOCTYPE declaration; that is, the contents of <!DOCTYPE ... >. DOCTYPES can be used to declare the DTD of a document, as well as being used to declare entities used in the document.
XMLのDOCTYPE宣言を置き換えます。;それは<!DOCTYPE ... >の内容です。 DOCTYPEは、XML文書で使われる要素を宣言するためだけに使われるのでは なく、XML文書のDTDを宣言するのにもまた使えます。
| Methods |
| Attributes |
| :external_id | [R] | name is the name of the doctype external_id is the referenced DTD, if given nameはdoctypeの名前です。 もし、与えられていれば、external_idはDTDへのリファレンスです。 |
| :name | [R] | name is the name of the doctype external_id is the referenced DTD, if given nameはdoctypeの名前です。 もし、与えられていれば、external_idはDTDへのリファレンスです。 |
| Public Class methods |
| new( first, parent=nil ) |
Constructor
@param first can be multiple types. If String, name is set to this and external_id is set to nil. If DocType, the object is cloned. If Source, the source is scanned for the DOCTYPE declaration.
@param parent If first is String, it must be String and set to external_id. Otherwise, it is set as the parent of this object.
コンストラクタ
@パラメータfirstは複数の型が可能です。もし、Stringなら、nameは firstに設定され、external_idはnilに設定されます。もし、DocTypeな ら、このオブジェクトがコピーされます。もし、Sourceなら、そのソー スはDOCTYPE宣言を目指して調べられます。
@もし、firstがStringなら、パラメータparentはStringであり、 external_idが設定されているに違いありません。そうでなければ、こ のオブジェクトのparentに設定されます。
| parse_stream(source, listener) |
| Public Instance methods |
| clone() |
| write( output, indent=0 ) |