Method EndDocument
EndDocument()
Receive notification of the end of a document.
Declaration
void EndDocument()
Remarks
There is an apparent contradiction between the documentation for this method and the documentation for FatalError(SAXParseException). 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(SAXParseException) or thrown an exception.
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.
Exceptions
Type | Condition |
---|---|
SAXException | any SAX exception, possibly wrapping another exception |