<!DOCTYPE class>
<class name='DocType' extends='Parent'>
   Represents an XML DOCTYPE declaration; that is, the contents of &lt;!DOCTYPE ... &gt;.  DOCTYPES can be used to declare the DTD of a document, as well as being used to declare entities used in the document.
  <attribute name='name' type='reader'>
     name is the name of the doctype external_id is the referenced DTD, if given
  </attribute>
  <attribute name='external_id' type='reader'>
     name is the name of the doctype external_id is the referenced DTD, if given
  </attribute>
  <method name='initialize'>
    <argument name='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.
    </argument>
    <argument default='nil' name='parent'>
      if given, is set as the parent of this object 
    </argument>
     Constructor 
  </method>
  <method name='clone'/>
  <method name='write'>
    <argument name='output'/>
    <argument default='0' name='indent'/>
  </method>
  <method name='DocType'>
    <argument name='parse_stream source'/>
    <argument name='listener'/>
  </method>
  <method name='DocType'>
    <argument name='parser source'/>
  </method>
  <method name='DocType'>
    <argument name='parse_entities_source source'/>
    <argument name='listener'/>
  </method>
  <method name='parse_entities'>
    <argument name='src'/>
  </method>
  <method name='add_entity_sub'>
    <argument name='ent'/>
  </method>
</class>