Structs



CFXMLParserCallBacks

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.

Fields

NameDescription
versionVersion number, set to 0 ---?? Shouldn't there be a #define for this? ??---.

CFXMLParserContext

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.

Fields

NameDescription
versionVersion number of the CFXMLParserContext.
infoUser defined.
retainA retain callback for your user defined context data. Optional.
releaseA release callback for your user defined context data. Optional.
copyDescriptionA copy description callback for your user defined context data. Optional.

© 2000 Apple Computer, Inc. — (Last Updated 7/20/2000)