Method StartDTD
StartDTD(String, String, String)
Report the start of DTD declarations, if any.
Declaration
void StartDTD(string name, string publicId, string systemId)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The document type name. |
System.String | publicId | The declared public identifier for the external DTD subset, or null if none was declared. |
System.String | 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.) |
Remarks
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 IDTDHandler or IDeclHandler events must appear between the startDTD and EndDTD() events. Declarations are assumed to belong to the internal DTD subset unless they appear between StartEntity(String) and EndEntity(String) events. Comments and processing instructions from the DTD should also be reported between the StartDTD(String, String, String) and EndDTD() events, in their original order of(logical) occurrence; they are not required to appear in their correct locations relative to IDTDHandler or IDeclHandler events, however.
Note that the start / endDTD events will appear within the start / endDocument events from IContentHandler and before the first StartElement(String, String, String, IAttributes) event.
Exceptions
Type | Condition |
---|---|
SAXException | The application may raise an exception. |