Class

DocType

Extends:

Includes:

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.

Constants
DEFAULT_ENTITIES
PUBLIC
START
STOP
SYSTEM
Public Attributes
entities name is the name of the doctype external_id is the referenced DTD, if given
external_id name is the name of the doctype external_id is the referenced DTD, if given
name name is the name of the doctype external_id is the referenced DTD, if given
namespaces name is the name of the doctype external_id is the referenced DTD, if given
Public Methods
add
attribute_of
attributes_of
clone
context
entity
new Constructor
node_type
notation Retrieves a named notation. Only notations declared in the internal DTD subset can be retrieved.
notations This method returns a list of notations that have been declared in the internal DTD subset. Notations in the external DTD subset are not listed.
public This method retrieves the public identifier identifying the document’s DTD.
system This method retrieves the system identifier identifying the document’s DTD
write
Private Methods
strip_quotes Method contributed by Henrik Martensson
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.