Function

CFXMLParserAbort

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

Declaration

void CFXMLParserAbort(CFXMLParserRef parser, CFXMLParserStatusCode errorCode, CFStringRef errorDescription);

Parameters

parser

The parser to abort.

errorCode

The error code to return to the parser.

errorDescription

The error description string to return to the parser. This value may not be NULL.

Discussion

This function cannot be called asynchronously. In other words, it must be called from within a parser callback function.

See Also

CFXMLParser Miscellaneous Functions

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