| 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.
| Methods |
| Attributes |
| :entities | [R] | name is the name of the doctype external_id is the referenced DTD, if given |
| :external_id | [R] | name is the name of the doctype external_id is the referenced DTD, if given |
| :name | [R] | name is the name of the doctype external_id is the referenced DTD, if given |
| :namespaces | [R] | name is the name of the doctype external_id is the referenced DTD, if given |
| Included modules |
| Public Class methods |
| new( first, parent=nil ) |
Constructor
dt = DocType.new( 'foo', '-//I/Hate/External/IDs' )
# <!DOCTYPE foo '-//I/Hate/External/IDs'>
dt = DocType.new( doctype_to_clone )
# Incomplete. Shallow clone of doctype
source = Source.new( '<!DOCTYPE foo "bar">' )
dt = DocType.new( source )
# <!DOCTYPE foo "bar">
dt = DocType.new( source, some_document )
# Creates a doctype, and adds to the supplied document
| parse_stream(source, listener) |
| pull(source) |
| Public Instance methods |
| attributes_of(element) |
| attribute_of(element, attribute) |
| clone() |
| write( output, indent=0, transitive=false ) |
| entity( name ) |
| add(child) |