Contents

CFXMLParserHandleErrorCallBack

Callback function invoked by the parser to notify your application that an error has occurred.

Declaration

typealias CFXMLParserHandleErrorCallBack = (CFXMLParser?, CFXMLParserStatusCode, UnsafeMutableRawPointer?) -> DarwinBoolean

Parameters

  • parser:

    A CFXMLParser object making the callback.

  • error:

    A status code describing the error.

  • info:

    The program-defined context data you specified in the Cfxmlparsercontext structure when creating the parser.

Return Value

true if the parser should continue parsing the XML, false if the parser should stop.

Discussion

If this callback is not defined, the parser will silently attempt to recover. Otherwise, this callback may return false to force the parser to stop. If this callback returns true, the parser will attempt to recover (fatal errors will still cause the parse to abort immediately). This callback is optional.

See Also

Callbacks