CFXMLTreeCreateWithDataFromURL
Creates a new CFXMLTree object by loading the data to be parsed directly from a data source.
Declaration
extern CFXMLTreeRef CFXMLTreeCreateWithDataFromURL(CFAllocatorRef allocator, CFURLRef dataSource, CFOptionFlags parseOptions, CFIndex versionOfNodes);Parameters
- allocator:
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator. - dataSource:
The URL from which the XML data is obtained. The URL is used to resolve any relative references found in XML Data. Pass
NULLif a valid URL is unavailable. - parseOptions:
Flags which control how the XML data will be parsed. See Cfxmlparseroptions for the list of available options.
- versionOfNodes:
Determines which version of CFXMLNode objects are produced by the parser.
Return Value
A new CFXMLTree object containing the data from the specified XML data source. Ownership follows the The Create Rule.