Condividi tramite


IContentHandler.EndDocument Method

Definition

Receive notification of the end of a document.

[Android.Runtime.Register("endDocument", "()V", "GetEndDocumentHandler:Org.Xml.Sax.IContentHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void EndDocument ();
[<Android.Runtime.Register("endDocument", "()V", "GetEndDocumentHandler:Org.Xml.Sax.IContentHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member EndDocument : unit -> unit
Attributes

Exceptions

any SAX exception, possibly wrapping another exception

Remarks

Receive notification of the end of a document.

<strong>There is an apparent contradiction between the documentation for this method and the documentation for org.xml.sax.ErrorHandler#fatalError. Until this ambiguity is resolved in a future major release, clients should make no assumptions about whether endDocument() will or will not be invoked when the parser has reported a fatalError() or thrown an exception.</strong>

The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.

Java documentation for org.xml.sax.ContentHandler.endDocument().

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