Function

CFXMLNodeCreate

Creates a new CFXMLNode.

Declaration

CFXMLNodeRef CFXMLNodeCreate(CFAllocatorRef alloc, CFXMLNodeTypeCode xmlType, CFStringRef dataString, const void *additionalInfoPtr, CFIndex version);

Parameters

alloc

The allocator to use to allocate memory for the new object. Pass NULL or kCFAllocatorDefault to use the current default 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 object you want to create. Pass one of the pre-defined constants, typically kCFXMLNodeCurrentVersion.

Return Value

A new CFXMLNode object. Ownership follows the The Create Rule.

See Also

CFXMLNode Miscellaneous Functions

CFXMLNodeCreateCopy

Creates a copy of a CFXMLNode object.

Deprecated
CFXMLNodeGetInfoPtr

Returns the additional information pointer of a CFXMLNode object.

Deprecated
CFXMLNodeGetString

Returns the data string from a CFXMLNode.

Deprecated
CFXMLNodeGetTypeCode

Returns the XML structure type code for a CFXMLNode object.

Deprecated
CFXMLNodeGetTypeID

Returns the type identifier code for the CFXMLNode opaque type.

Deprecated
CFXMLNodeGetVersion

Returns the version number for a CFXMLNode object.

Deprecated