Functions
Abstract: Creates a new CFXMLNode.
CFXMLNodeRef CFXMLNodeCreate(CFAllocatorRef alloc, CFXMLNodeTypeCode xmlType, CFStringRef dataString, const void *additionalInfoPtr, CFIndex version);
Parameters
Name | Description |
alloc | The memory allocator to use. Pass NULL or kCFAllocatorDefault to use the system allocator. |
xmlType | Type identifier code for the XML structure you want this node to describe. |
dataString | The XML data. |
additionalInfoPtr | A pointer to a structure containing additional information about the XML data. |
version | The version number of the CFXMLNode you want to create. Pass one of the pre-defined constants, typically kCFXMLNodeCurrentVersion. |
Result: The newly created CFXMLNode.
Abstract: Creates a copy of a CFXMLNode.
CFXMLNodeRef CFXMLNodeCreateCopy(CFAllocatorRef alloc, CFXMLNodeRef origNode);
Parameters
Name | Description |
alloc | The memory allocator to use. Pass NULL or kCFAllocatorDefault to use the system allocator. |
origNode | The node to copy. Do not pass NULL. |
Result: The newly created CFXMLNode.
Abstract: Obtains the additional info pointer from the CFXMLNode.
const void *CFXMLNodeGetInfoPtr(CFXMLNodeRef node);
Parameters
Name | Description |
node | The CFXMLNode whose additional info pointer you wish to obtain. |
Result: The additional info pointer from the CFXMLNode. See CFXMLNodeTypeCode for information about the the various structures that are returned in the additional info pointer.
Abstract: Obtains the data string from the CFXMLNode.
CFStringRef CFXMLNodeGetString(CFXMLNodeRef node);
Parameters
Name | Description |
node | The CFXMLNode whose data string you wish to obtain. |
Result: The data string from the CFXMLNode.
Abstract: Obtains the XML structure type code for the CFXMLNode.
CFXMLNodeTypeCode CFXMLNodeGetTypeCode(CFXMLNodeRef node);
Parameters
Name | Description |
node | The CFXMLNode whose type code you wish to obtain. |
Result: The type code for the CFXMLNode.
Abstract: Obtains the Core Foundation type identifier code for a CFXMLNode.
CFTypeID CFXMLNodeGetTypeID(void);
Result: The type identifier.
Abstract: Obtains the version number for the CFXMLNode.
CFIndex CFXMLNodeGetVersion(CFXMLNodeRef node);
Parameters
Name | Description |
node | The CFXMLNode whose version number you wish to obtain. |
Result: The version number for the CFXMLNode.
Abstract: Creates a childless, parentless CFXMLTree node using a CFXMLNode.
CFXMLTreeRef CFXMLTreeCreateWithNode(CFAllocatorRef allocator, CFXMLNodeRef node);
A CFXMLTree is simply a type of CFTree that has only CFXMLNodes along with known contexts and callbacks.
Parameters
Name | Description |
allocator | The memory allocator to use. Pass NULL or kCFAllocatorDefault to use the system allocator. |
node | The CFXMLNode to use when creating the new CFXMLTree node. |
Result: The CFXMLTree node.
Abstract: Obtains a CFXMLNode from a CFXMLTree.
CFXMLNodeRef CFXMLTreeGetNode(CFXMLTreeRef xmlTree);
A CFXMLTree is simply a type of CFTree that has only CFXMLNodes along with known contexts and callbacks.
Parameters
Name | Description |
CFXMLTree | The CFXMLTree node from which the CFXMLNode will be extracted. |
Result: The CFXMLNode.
© 2000 Apple Computer, Inc. (Last Updated 7/20/2000)