ILexicalHandler.StartDTD(String, String, String) Method

Definition

Report the start of DTD declarations, if any.

[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:Org.Xml.Sax.Ext.ILexicalHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void StartDTD (string? name, string? publicId, string? systemId);
[<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:Org.Xml.Sax.Ext.ILexicalHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member StartDTD : string * string * string -> unit

Parameters

name
String

The document type name.

publicId
String

The declared public identifier for the external DTD subset, or null if none was declared.

systemId
String

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

Attributes

Exceptions

The application may raise an exception.

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.DTDHandler DTDHandler or org.xml.sax.ext.DeclHandler DeclHandler events must appear between the startDTD and #endDTD endDTD events. Declarations are assumed to belong to the internal DTD subset unless they appear between #startEntity startEntity and #endEntity endEntity 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.ContentHandler#startElement startElement event.

Java documentation for org.xml.sax.ext.LexicalHandler.startDTD(java.lang.String, java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also