Contents

CFXMLParserEndXMLStructureCallBack

Callback function invoked by the parser to notify your application that an XML structure (and all its children) have been completely parsed.

Declaration

typealias CFXMLParserEndXMLStructureCallBack = (CFXMLParser?, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> Void

Parameters

  • parser:

    The CFXMLParser object making the callback.

  • xmlType:

    The program-defined value representing the XML element whose end tag has been detected. This value was returned by the Cfxmlparsercreatexmlstructurecallback callback.

  • info:

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

Discussion

As elements are encountered, this callback is called first, then the CFXMLParserAddChildCallBack callback to add the new structure to its parent, then the CFXMLParserAddChildCallBack callback (potentially several times) to add the new structure’s children to it, and then finally the CFXMLParserEndXMLStructureCallBack callback to show that the structure has been fully parsed.This callback is optional.

See Also

Callbacks