- name
- The document type name.
- publicId
- The declared public identifier for the external DTD subset, or null if none was declared.
- systemId
- The declared system identifier for the external DTD subset, or null if none was declared. (Note that this is not resolved against the document base URI.)
Type Reason Org.Xml.Sax.SAXException The application may raise an exception.
Report the start of DTD declarations, if any.
This method is intended to report the beginning of the DOCTYPE declaration; if the document has no DOCTYPE declaration, this method will not be invoked.
All declarations reported through Org.Xml.Sax.IDTDHandler or Org.Xml.Sax.Ext.IDeclHandler events must appear between the startDTD and ILexicalHandler.EndDTD events. Declarations are assumed to belong to the internal DTD subset unless they appear between ILexicalHandler.StartEntity(string) and ILexicalHandler.EndEntity(string) events. Comments and processing instructions from the DTD should also be reported between the startDTD and endDTD events, in their original order of (logical) occurrence; they are not required to appear in their correct locations relative to DTDHandler or DeclHandler events, however.
Note that the start/endDTD events will appear within the start/endDocument events from ContentHandler and before the first Org.Xml.Sax.IContentHandler.StartElement(string, System.String, System.String, System.String) event.