IParser.SetDocumentHandler(IDocumentHandler) Method

Definition

Caution

deprecated

Allow an application to register a document event handler.

[Android.Runtime.Register("setDocumentHandler", "(Lorg/xml/sax/DocumentHandler;)V", "GetSetDocumentHandler_Lorg_xml_sax_DocumentHandler_Handler:Org.Xml.Sax.IParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public void SetDocumentHandler (Org.Xml.Sax.IDocumentHandler? handler);
[<Android.Runtime.Register("setDocumentHandler", "(Lorg/xml/sax/DocumentHandler;)V", "GetSetDocumentHandler_Lorg_xml_sax_DocumentHandler_Handler:Org.Xml.Sax.IParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member SetDocumentHandler : Org.Xml.Sax.IDocumentHandler -> unit

Parameters

handler
IDocumentHandler

The document handler.

Attributes

Remarks

Allow an application to register a document event handler.

If the application does not register a document handler, all document events reported by the SAX parser will be silently ignored (this is the default behaviour implemented by HandlerBase).

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Java documentation for org.xml.sax.Parser.setDocumentHandler(org.xml.sax.DocumentHandler).

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