CFXMLParserAddChildCallBack
Callback function invoked by the parser to notify your application of parent/child relationships between XML structures.
Declaration
typealias CFXMLParserAddChildCallBack = (CFXMLParser?, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> VoidParameters
- parser:
The CFXMLParser object making the callback.
- parent:
The program-defined value representing the XML element to whom
childis being added. This value was returned by the Cfxmlparsercreatexmlstructurecallback callback when this element’s open tag was detected. - child:
The program-defined value representing the XML element that is being added to
parent. This value was returned by the Cfxmlparsercreatexmlstructurecallback callback when this element’s open tag was detected. - info:
The program-defined context data you specified in the Cfxmlparsercontext structure when creating the parser.
Discussion
If the CFXMLParserCreateXMLStructureCallBack function returns NULL for a given structure, that structure is omitted entirely, and this callback will not be called for either a NULL child or parent.