CFXMLParser

Overview

CFXMLParser provides an XML parser you can use to find and extract data in XML documents. You can use a high-level interface to load an XML document into a Core Foundation collection object. A low-level callback-based interface allows you to perform any action you wish on an XML structured type when it is detected by the parser. This opaque type is relevant for applications that need information about an XML document's structure or content.

Topics

CFXMLParser Miscellaneous Functions

CFXMLParserAbort

Causes a parser to abort with the given error code and description.

Deprecated
CFXMLParserCopyErrorDescription

Returns the user-readable description of the current error condition.

Deprecated
CFXMLParserCreate

Creates a new XML parser for the specified XML data.

Deprecated
CFXMLParserCreateWithDataFromURL

Creates a new XML parser for the specified XML data at the specified URL.

Deprecated
CFXMLParserGetCallBacks

Returns the callbacks associated with an XML parser when it was created.

Deprecated
CFXMLParserGetContext

Returns the context for an XML parser.

Deprecated
CFXMLParserGetDocument

Returns the top-most object returned by the create XML structure callback.

Deprecated
CFXMLParserGetLineNumber

Returns the line number of the current parse location.

Deprecated
CFXMLParserGetLocation

Returns the character index of the current parse location.

Deprecated
CFXMLParserGetSourceURL

Returns the URL for the XML data being parsed.

Deprecated
CFXMLParserGetStatusCode

Returns a numeric code indicating the current status of the parser.

Deprecated
CFXMLParserGetTypeID

Returns the type identifier for the CFXMLParser opaque type.

Deprecated
CFXMLParserParse

Begins a parse of the XML data that was associated with the parser when it was created.

Deprecated

Callbacks

CFXMLParserAddChildCallBack

Callback function invoked by the parser to notify your application of parent/child relationships between XML structures.

CFXMLParserCopyDescriptionCallBack

Callback function invoked by the parser when handling the information pointer.

CFXMLParserCreateXMLStructureCallBack

Callback function invoked when the parser encounters an XML open tag.

CFXMLParserEndXMLStructureCallBack

Callback function invoked by the parser to notify your application that an XML structure (and all its children) have been completely parsed.

CFXMLParserHandleErrorCallBack

Callback function invoked by the parser to notify your application that an error has occurred.

CFXMLParserReleaseCallBack

Callback function invoked by the parser when it wants to release a reference to the information pointer.

CFXMLParserResolveExternalEntityCallBack

Callback function invoked by the parser to notify your application that an external entity has been referenced.

CFXMLParserRetainCallBack

Callback function invoked by the parser when it needs another reference to the information pointer.

Data Types

CFXMLParserCallBacks

Contains version information and function pointers to callbacks needed when parsing XML.

CFXMLParserContext

Contains version information and function pointers to callbacks used when handling a program-defined context.

CFXMLParserRef

A reference to an XML parser object.

Constants

CFXMLParserStatusCode

The various status and error flags that can be returned by the parser.

CFXMLParserOptions

Options you can use to control the parser's treatment of an XML document.

See Also

Opaque Types

CFFileDescriptor

The CFFileDescriptor provides an opaque type to monitor file descriptors for read and write activity via CFRunLoop.

CFStringTokenizer

CFStringTokenizer allows you to tokenize strings into words, sentences or paragraphs in a language-neutral way. It supports languages such as Japanese and Chinese that do not delimit words by spaces, as well as de-compounding German compounds. You can obtain Latin transcription for tokens. It also provides language identification API.