Org.Xml.Sax.Ext.DefaultHandler2.StartDTD Method
Report the start of DTD declarations, if any.

Syntax

[Android.Runtime.Register("startDTD", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetStartDTD_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void StartDTD (string name, string publicId, string systemId)

Parameters

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.)

Exceptions

TypeReason
Org.Xml.Sax.SAXException

Remarks

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.

[Android Documentation]

Requirements

Namespace: Org.Xml.Sax.Ext
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1