typedef struct { CFIndex version; CFXMLParserCreateXMLStructureCallBack createXMLStructure; CFXMLParserAddChildCallBack addChild; CFXMLParserEndXMLStructureCallBack endXMLStructure; CFXMLParserResolveExternalEntityCallBack resolveExternalEntity; CFXMLParserHandleErrorCallBack handleError; } CFXMLParserCallBacks;
createXMLStructure, addChild, and endStructure are required. Set the others to NULL if you don't wish to implement them.
Name Description version Version number, set to 0 ---?? Shouldn't there be a #define for this? ??---.
typedef struct { CFIndex version; void * info; CFXMLParserRetainCallBack retain; CFXMLParserReleaseCallBack release; CFXMLParserCopyDescriptionCallBack copyDescription; } CFXMLParserContext;
You can associate a context with a parser when the parser is created. The context can be anything you wish, and will be passed as a parameter to all of the XML parser callbacks.
Name Description version Version number of the CFXMLParserContext. info User defined. retain A retain callback for your user defined context data. Optional. release A release callback for your user defined context data. Optional. copyDescription A copy description callback for your user defined context data. Optional.
© 2000 Apple Computer, Inc. (Last Updated 7/20/2000)