Function

CFPropertyListCreateXMLData

Creates an XML representation of the specified property list.

Declaration

CFDataRef CFPropertyListCreateXMLData(CFAllocatorRef allocator, CFPropertyListRef propertyList);

Parameters

allocator

The allocator to use to allocate memory for the new data object. Pass NULL or kCFAllocatorDefault to use the current default allocator.

propertyList

The property list to convert. This may be any of the standard property list objects, for example a CFArray or a CFDictionary object.

Return Value

A CFData object containing the XML data. Ownership follows the The Create Rule.

Discussion

See Also

Exporting a Property List

CFPropertyListCreateData

Returns a CFData object containing a serialized representation of a given property list in a specified format.

CFPropertyListWrite

Write the bytes of a serialized property list out to a stream.

CFPropertyListWriteToStream

Writes the bytes of a property list serialization out to a stream.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software