Next Page > Hide TOC

NSXMLParser Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in Mac OS X v10.3 and later.
Companion guide
Declared in
NSXMLParser.h
Related sample code

Overview

Instances of this class parse XML documents (including DTD declarations) in an event-driven manner. An NSXMLParser notifies its delegate about the items (elements, attributes, CDATA blocks, comments, and so on) that it encounters as it processes an XML document. It does not itself do anything with those parsed items except report them. It also reports parsing errors. For convenience, an NSXMLParser object in the following descriptions is sometimes referred to as a parser object.

Note: Namespace support was implemented in NSXMLParser for Mac OS X v10.4. Namespace-related methods of NSXMLParser prior to this version have no effect.

Tasks

Initializing a Parser Object

Managing Delegates

Managing Parser Behavior

Parsing

Handling XML

Handling the DTD

Obtaining Parser State

Instance Methods

abortParsing

Stops the parser object.

- (void)abortParsing

Discussion

If you invoke this method, the delegate, if it implements parser:parseErrorOccurred:, is informed of the cancelled parsing operation.

Availability
See Also
Related Sample Code
Declared In
NSXMLParser.h

columnNumber

Returns the column number of the XML document being processed by the receiver.

- (NSInteger)columnNumber

Discussion

The column refers to the nesting level of the XML elements in the document. You may invoke this method once a parsing operation has begun or after an error occurs.

Availability
See Also
Declared In
NSXMLParser.h

delegate

Returns the receiver’s delegate.

- (id)delegate

Availability
See Also
Declared In
NSXMLParser.h

initWithContentsOfURL:

Initializes the receiver with the XML content referenced by the given URL.

- (id)initWithContentsOfURL:(NSURL *)url

Parameters
url

An NSURL object specifying a URL. The URL must be fully qualified and refer to a scheme that is supported by the NSURL class.

Return Value

An initialized NSXMLParser object or nil if an error occurs.

Availability
See Also
Declared In
NSXMLParser.h

initWithData:

Initializes the receiver with the XML contents encapsulated in a given data object.

- (id)initWithData:(NSData *)data

Parameters
data

An NSData object containing XML markup.

Return Value

An initialized NSXMLParser object or nil if an error occurs.

Discussion

This method is the designated initializer.

Availability
See Also
Declared In
NSXMLParser.h

lineNumber

Returns the line number of the XML document being processed by the receiver.

- (NSInteger)lineNumber

Discussion

You may invoke this method once a parsing operation has begun or after an error occurs.

Availability
See Also
Declared In
NSXMLParser.h

parse

Starts the event-driven parsing operation.

- (BOOL)parse

Return Value

YES if parsing is successful and NO in there is an error or if the parsing operation is aborted.

Availability
See Also
Related Sample Code
Declared In
NSXMLParser.h

parserError

Returns an NSError object from which you can obtain information about a parsing error.

- (NSError *)parserError

Discussion

You may invoke this method after a parsing operation abnormally terminates to determine the cause of error.

Availability
See Also
Declared In
NSXMLParser.h

publicID

Returns the public identifier of the external entity referenced in the XML document.

- (NSString *)publicID

Discussion

You may invoke this method once a parsing operation has begun or after an error occurs.

Availability
See Also
Declared In
NSXMLParser.h

setDelegate:

Sets the receiver’s delegate.

- (void)setDelegate:(id)delegate

Parameters
delegate

An object that is the new delegate. It is not retained.

Availability
See Also
Related Sample Code
Declared In
NSXMLParser.h

setShouldProcessNamespaces:

Specifies whether the receiver reports the namespace and the qualified name of an element in related delegation methods .

- (void)setShouldProcessNamespaces:(BOOL)shouldProcessNamespaces

Parameters
shouldProcessNamespaces

YES if the receiver should report the namespace and qualified name of each element, NO otherwise. The default value is NO.

Discussion

The invoked delegation methods are parser:didStartElement:namespaceURI:qualifiedName:attributes: and parser:didEndElement:namespaceURI:qualifiedName:.

Availability
See Also
Declared In
NSXMLParser.h

setShouldReportNamespacePrefixes:

Specifies whether the receiver reports the scope of namespace declarations using related delegation methods.

- (void)setShouldReportNamespacePrefixes:(BOOL)shouldReportNamespacePrefixes

Parameters
shouldReportNamespacePrefixes

YES if the receiver should report the scope of namespace declarations, NO otherwise. The default value is NO.

Discussion

The invoked delegation methods are parser:didStartMappingPrefix:toURI: and parser:didEndMappingPrefix:.

Availability
See Also
Declared In
NSXMLParser.h

setShouldResolveExternalEntities:

Specifies whether the receiver reports declarations of external entities using the delegate method parser:foundExternalEntityDeclarationWithName:publicID:systemID:.

- (void)setShouldResolveExternalEntities:(BOOL)shouldResolveExternalEntities

Parameters
shouldResolveExternalEntities

YES if the receiver should report declarations of external entities, NO otherwise. The default value is NO.

Discussion

If you pass in YES, you may cause other I/O operations, either network-based or disk-based, to load the external DTD.

Availability
See Also
Declared In
NSXMLParser.h

shouldProcessNamespaces

Indicates whether the receiver reports the namespace and the qualified name of an element in related delegation methods.

- (BOOL)shouldProcessNamespaces

Return Value

YES if the receiver reports namespace and qualified name, NO otherwise.

Discussion

The invoked delegation methods are parser:didStartElement:namespaceURI:qualifiedName:attributes: and parser:didEndElement:namespaceURI:qualifiedName:.

Availability
See Also
Declared In
NSXMLParser.h

shouldReportNamespacePrefixes

Indicates whether the receiver reports the prefixes indicating the scope of namespace declarations using related delegation methods.

- (BOOL)shouldReportNamespacePrefixes

Return Value

YES if the receiver reports the scope of namespace declarations, NO otherwise. The default value is NO.

Discussion

The invoked delegation methods are parser:didStartMappingPrefix:toURI: and parser:didEndMappingPrefix:.

Availability
See Also
Declared In
NSXMLParser.h

shouldResolveExternalEntities

Indicates whether the receiver reports declarations of external entities using the delegate method parser:foundExternalEntityDeclarationWithName:publicID:systemID:.

- (BOOL)shouldResolveExternalEntities

Return Value

YES if the receiver reports declarations of external entities, NO otherwise. The default value is NO.

Availability
See Also
Declared In
NSXMLParser.h

systemID

Returns the system identifier of the external entity referenced in the XML document.

- (NSString *)systemID

Discussion

You may invoke this method once a parsing operation has begun or after an error occurs.

Availability
See Also
Declared In
NSXMLParser.h

Delegate Methods

parser:didEndElement:namespaceURI:qualifiedName:

Sent by a parser object to its delegate when it encounters an end tag for a specific element.

- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName

Parameters
parser

A parser object.

elementName

A string that is the name of an element (in its end tag).

namespaceURI

If namespace processing is turned on, contains the URI for the current namespace as a string object.

qName

If namespace processing is turned on, contains the qualified name for the current namespace as a string object..

Availability
See Also
Declared In
NSXMLParser.h

parser:didEndMappingPrefix:

Sent by a parser object to its delegate when a given namespace prefix goes out of scope.

- (void)parser:(NSXMLParser *)parser didEndMappingPrefix:(NSString *)prefix

Parameters
parser

A parser object.

prefix

A string that is a namespace prefix.

Discussion

The parser sends this message only when namespace-prefix reporting is turned on through the setShouldReportNamespacePrefixes: method.

Availability
See Also
Declared In
NSXMLParser.h

parser:didStartElement:namespaceURI:qualifiedName:attributes:

Sent by a parser object to its delegate when it encounters a start tag for a given element.

- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict

Parameters
parser

A parser object.

elementName

A string that is the name of an element (in its start tag).

namespaceURI

If namespace processing is turned on, contains the URI for the current namespace as a string object.

qualifiedName

If namespace processing is turned on, contains the qualified name for the current namespace as a string object..

attributeDict

A dictionary that contains any attributes associated with the element. Keys are the names of attributes, and values are attribute values.

Availability
See Also
Declared In
NSXMLParser.h

parser:didStartMappingPrefix:toURI:

Sent by a parser object to its delegate the first time it encounters a given namespace prefix, which is mapped to a URI.

- (void)parser:(NSXMLParser *)parser didStartMappingPrefix:(NSString *)prefix toURI:(NSString *)namespaceURI

Parameters
parser

A parser object.

prefix

A string that is a namespace prefix.

namespaceURI

A string that specifies a namespace URI.

Discussion

The parser object sends this message only when namespace-prefix reporting is turned on through the setShouldReportNamespacePrefixes: method.

Availability
See Also
Declared In
NSXMLParser.h

parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:

Sent by a parser object to its delegate when it encounters a declaration of an attribute that is associated with a specific element.

- (void)parser:(NSXMLParser *)parser foundAttributeDeclarationWithName:(NSString *)attributeName forElement:(NSString *)elementName type:(NSString *)type defaultValue:(NSString *)defaultValue

Parameters
parser

An NSXMLParser object parsing XML.

attributeName

A string that is the name of an attribute.

elementName

A string that is the name of an element that has the attribute attributeName.

type

A string, such as "ENTITY", "NOTATION", or "ID", that indicates the type of the attribute.

defaultValue

A string that specifies the default value of the attribute.

Availability
See Also
Declared In
NSXMLParser.h

parser:foundCDATA:

Sent by a parser object to its delegate when it encounters a CDATA block.

- (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock

Parameters
parser

An NSXMLParser object parsing XML.

CDATABlock

A data object containing a block of CDATA.

Discussion

Through this method the parser object passes the contents of the block to its delegate in an NSData object. The CDATA block is character data that is ignored by the parser. The encoding of the character data is UTF-8. To convert the data object to a string object, use the NSString method initWithData:encoding:.

Availability
Declared In
NSXMLParser.h

parser:foundCharacters:

Sent by a parser object to provide its delegate with a string representing all or part of the characters of the current element.

- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string

Parameters
parser

A parser object.

string

A string representing the complete or partial textual content of the current element.

Discussion

The parser object may send the delegate several parser:foundCharacters: messages to report the characters of an element. Because string may be only part of the total character content for the current element, you should append it to the current accumulation of characters until the element changes.

Availability
Declared In
NSXMLParser.h

parser:foundComment:

Sent by a parser object to its delegate when it encounters a comment in the XML.

- (void)parser:(NSXMLParser *)parser foundComment:(NSString *)comment

Parameters
parser

An NSXMLParser object parsing XML.

comment

A string that is a the content of a comment in the XML.

Availability
Declared In
NSXMLParser.h

parser:foundElementDeclarationWithName:model:

Sent by a parser object to its delegate when it encounters a declaration of an element with a given model.

- (void)parser:(NSXMLParser *)parser foundElementDeclarationWithName:(NSString *)elementName model:(NSString *)model

Parameters
parser

An NSXMLParser object parsing XML.

elementName

A string that is the name of an element.

model

A string that specifies a model for elementName.

Availability
See Also
Declared In
NSXMLParser.h

parser:foundExternalEntityDeclarationWithName:publicID:systemID:

Sent by a parser object to its delegate when it encounters an external entity declaration.

- (void)parser:(NSXMLParser *)parser foundExternalEntityDeclarationWithName:(NSString *)entityName publicID:(NSString *)publicID systemID:(NSString *)systemID

Parameters
parser

An NSXMLParser object parsing XML.

entityName

A string that is the name of an entity.

publicID

A string that specifies the public ID associated with entityName.

systemID

A string that specifies the system ID associated with entityName.

Availability
See Also
Declared In
NSXMLParser.h

parser:foundIgnorableWhitespace:

Reported by a parser object to provide its delegate with a string representing all or part of the ignorable whitespace characters of the current element.

- (void)parser:(NSXMLParser *)parser foundIgnorableWhitespace:(NSString *)whitespaceString

Parameters
parser

A parser object.

whitespaceString

A string representing all or part of the ignorable whitespace characters of the current element.

Discussion

All the whitespace characters of the element (including carriage returns, tabs, and new-line characters) may not be provided through an individual invocation of this method. The parser may send the delegate several parser:foundIgnorableWhitespace: messages to report the whitespace characters of an element. You should append the characters in each invocation to the current accumulation of characters.

Availability
See Also
Declared In
NSXMLParser.h

parser:foundInternalEntityDeclarationWithName:value:

Sent by a parser object to the delegate when it encounters an internal entity declaration.

- (void)parser:(NSXMLParser *)parser foundInternalEntityDeclarationWithName:(NSString *)name value:(NSString *)value

Parameters
parser

An NSXMLParser object parsing XML.

name

A string that is the declared name of an internal entity.

value

A string that is the value of entity name.

Availability
See Also
Declared In
NSXMLParser.h

parser:foundNotationDeclarationWithName:publicID:systemID:

Sent by a parser object to its delegate when it encounters a notation declaration.

- (void)parser:(NSXMLParser *)parser foundNotationDeclarationWithName:(NSString *)name publicID:(NSString *)publicID systemID:(NSString *)systemID

Parameters
parser

An NSXMLParser object parsing XML.

name

A string that is the name of the notation.

publicID

A string specifying the public ID associated with the notation name.

systemID

A string specifying the system ID associated with the notation name.

Availability
Declared In
NSXMLParser.h

parser:foundProcessingInstructionWithTarget:data:

Sent by a parser object to its delegate when it encounters a processing instruction.

- (void)parser:(NSXMLParser *)parser foundProcessingInstructionWithTarget:(NSString *)target data:(NSString *)data

Parameters
parser

A parser object.

target

A string representing the target of a processing instruction.

data

A string representing the data for a processing instruction.

Availability
Declared In
NSXMLParser.h

parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:

Sent by a parser object to its delegate when it encounters an unparsed entity declaration.

- (void)parser:(NSXMLParser *)parser foundUnparsedEntityDeclarationWithName:(NSString *)name publicID:(NSString *)publicID systemID:(NSString *)systemID notationName:(NSString *)notationName

Parameters
parser

An NSXMLParser object parsing XML.

name

A string that is the name of the unparsed entity in the declaration.

publicID

A string specifying the public ID associated with the entity name.

systemID

A string specifying the system ID associated with the entity name.

notationName

A string specifying a notation of the declaration of entity name.

Availability
See Also
Declared In
NSXMLParser.h

parser:parseErrorOccurred:

Sent by a parser object to its delegate when it encounters a fatal error.

- (void)parser:(NSXMLParser *)parser parseErrorOccurred:(NSError *)parseError

Parameters
parser

A parser object.

parseError

An NSError object describing the parsing error that occurred.

Discussion

When this method is invoked, parsing is stopped. For further information about the error, you can query parseError or you can send the receiver a parserError message. You can also send the parser lineNumber and columnNumber messages to further isolate where the error occurred. Typically you implement this method to display information about the error to the user.

Availability
See Also
Declared In
NSXMLParser.h

parser:resolveExternalEntityName:systemID:

Sent by a parser object to its delegate when it encounters a given external entity with a specific system ID.

- (NSData *)parser:(NSXMLParser *)parser resolveExternalEntityName:(NSString *)entityName systemID:(NSString *)systemID

Parameters
parser

A parser object.

entityName

A string that specifies the external name of an entity.

systemID

A string that specifies the system ID for the external entity.

Return Value

An NSData object that contains the resolution of the given external entity.

Discussion

The delegate can resolve the external entity (for example, locating and reading an externally declared DTD) and provide the result to the parser object as an NSData object.

Availability
See Also
Declared In
NSXMLParser.h

parser:validationErrorOccurred:

Sent by a parser object to its delegate when it encounters a fatal validation error. NSXMLParser currently does not invoke this method and does not perform validation.

- (void)parser:(NSXMLParser *)parser validationErrorOccurred:(NSError *)validError

Parameters
parser

A parser object.

validError

An NSError object describing the validation error that occurred.

Discussion

If you want to validate an XML document, use the validation features of the NSXMLDocument class.

Availability
See Also
Declared In
NSXMLParser.h

parserDidEndDocument:

Sent by the parser object to the delegate when it has successfully completed parsing.

- (void)parserDidEndDocument:(NSXMLParser *)parser

Parameters
parser

A parser object.

Availability
See Also
Declared In
NSXMLParser.h

parserDidStartDocument:

Sent by the parser object to the delegate when it begins parsing a document.

- (void)parserDidStartDocument:(NSXMLParser *)parser

Parameters
parser

A parser object.

Availability
See Also
Declared In
NSXMLParser.h

Constants

NSXMLParserErrorDomain

This constant defines the NSXMLParser error domain.

NSString * const NSXMLParserErrorDomain

Constants
NSXMLParserErrorDomain

Indicates an error in XML parsing.

Used by NSError.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

Declared In
NSXMLParser.h

NSXMLParserError

A type defined for the contants listed in “Parser Error Constants.”

typedef NSInteger NSXMLParserError;

Availability
Declared In
NSXMLParser.h

Parser Error Constants

The following error types are defined by NSXMLParser.

typedef enum {
   NSXMLParserInternalError = 1,
   NSXMLParserOutOfMemoryError = 2,
   NSXMLParserDocumentStartError = 3,
   NSXMLParserEmptyDocumentError = 4,
   NSXMLParserPrematureDocumentEndError = 5,
   NSXMLParserInvalidHexCharacterRefError = 6,
   NSXMLParserInvalidDecimalCharacterRefError = 7,
   NSXMLParserInvalidCharacterRefError = 8,
   NSXMLParserInvalidCharacterError = 9,
   NSXMLParserCharacterRefAtEOFError = 10,
   NSXMLParserCharacterRefInPrologError = 11,
   NSXMLParserCharacterRefInEpilogError = 12,
   NSXMLParserCharacterRefInDTDError = 13,
   NSXMLParserEntityRefAtEOFError = 14,
   NSXMLParserEntityRefInPrologError = 15,
   NSXMLParserEntityRefInEpilogError = 16,
   NSXMLParserEntityRefInDTDError = 17,
   NSXMLParserParsedEntityRefAtEOFError = 18,
   NSXMLParserParsedEntityRefInPrologError = 19,
   NSXMLParserParsedEntityRefInEpilogError = 20,
   NSXMLParserParsedEntityRefInInternalSubsetError = 21,
   NSXMLParserEntityReferenceWithoutNameError = 22,
   NSXMLParserEntityReferenceMissingSemiError = 23,
   NSXMLParserParsedEntityRefNoNameError = 24,
   NSXMLParserParsedEntityRefMissingSemiError = 25,
   NSXMLParserUndeclaredEntityError = 26,
   NSXMLParserUnparsedEntityError = 28,
   NSXMLParserEntityIsExternalError = 29,
   NSXMLParserEntityIsParameterError = 30,
   NSXMLParserUnknownEncodingError = 31,
   NSXMLParserEncodingNotSupportedError = 32,
   NSXMLParserStringNotStartedError = 33,
   NSXMLParserStringNotClosedError = 34,
   NSXMLParserNamespaceDeclarationError = 35,
   NSXMLParserEntityNotStartedError = 36,
   NSXMLParserEntityNotFinishedError = 37,
   NSXMLParserLessThanSymbolInAttributeError = 38,
   NSXMLParserAttributeNotStartedError = 39,
   NSXMLParserAttributeNotFinishedError = 40,
   NSXMLParserAttributeHasNoValueError = 41,
   NSXMLParserAttributeRedefinedError = 42,
   NSXMLParserLiteralNotStartedError = 43,
   NSXMLParserLiteralNotFinishedError = 44,
   NSXMLParserCommentNotFinishedError = 45,
   NSXMLParserProcessingInstructionNotStartedError = 46,
   NSXMLParserProcessingInstructionNotFinishedError = 47,
   NSXMLParserNotationNotStartedError = 48,
   NSXMLParserNotationNotFinishedError = 49,
   NSXMLParserAttributeListNotStartedError = 50,
   NSXMLParserAttributeListNotFinishedError = 51,
   NSXMLParserMixedContentDeclNotStartedError = 52,
   NSXMLParserMixedContentDeclNotFinishedError = 53,
   NSXMLParserElementContentDeclNotStartedError = 54,
   NSXMLParserElementContentDeclNotFinishedError = 55,
   NSXMLParserXMLDeclNotStartedError = 56,
   NSXMLParserXMLDeclNotFinishedError = 57,
   NSXMLParserConditionalSectionNotStartedError = 58,
   NSXMLParserConditionalSectionNotFinishedError = 59,
   NSXMLParserExternalSubsetNotFinishedError = 60,
   NSXMLParserDOCTYPEDeclNotFinishedError = 61,
   NSXMLParserMisplacedCDATAEndStringError = 62,
   NSXMLParserCDATANotFinishedError = 63,
   NSXMLParserMisplacedXMLDeclarationError = 64,
   NSXMLParserSpaceRequiredError = 65,
   NSXMLParserSeparatorRequiredError = 66,
   NSXMLParserNMTOKENRequiredError = 67,
   NSXMLParserNAMERequiredError = 68,
   NSXMLParserPCDATARequiredError = 69,
   NSXMLParserURIRequiredError = 70,
   NSXMLParserPublicIdentifierRequiredError = 71,
   NSXMLParserLTRequiredError = 72,
   NSXMLParserGTRequiredError = 73,
   NSXMLParserLTSlashRequiredError = 74,
   NSXMLParserEqualExpectedError = 75,
   NSXMLParserTagNameMismatchError = 76,
   NSXMLParserUnfinishedTagError = 77,
   NSXMLParserStandaloneValueError = 78,
   NSXMLParserInvalidEncodingNameError = 79,
   NSXMLParserCommentContainsDoubleHyphenError = 80,
   NSXMLParserInvalidEncodingError = 81,
   NSXMLParserExternalStandaloneEntityError = 82,
   NSXMLParserInvalidConditionalSectionError = 83,
   NSXMLParserEntityValueRequiredError = 84,
   NSXMLParserNotWellBalancedError = 85,
   NSXMLParserExtraContentError = 86,
   NSXMLParserInvalidCharacterInEntityError = 87,
   NSXMLParserParsedEntityRefInInternalError = 88,
   NSXMLParserEntityRefLoopError = 89,
   NSXMLParserEntityBoundaryError = 90,
   NSXMLParserInvalidURIError = 91,
   NSXMLParserURIFragmentError = 92,
   NSXMLParserNoDTDError = 94,
   NSXMLParserDelegateAbortedParseError = 512
} NSXMLParserError;

Constants
NSXMLParserInternalError

The parser object encountered an internal error.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserOutOfMemoryError

The parser object ran out of memory.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserDocumentStartError

The parser object is unable to start parsing.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEmptyDocumentError

The document is empty.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserPrematureDocumentEndError

The document ended unexpectedly.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidHexCharacterRefError

Invalid hexadecimal character reference encountered.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidDecimalCharacterRefError

Invalid decimal character reference encountered.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidCharacterRefError

Invalid character reference encountered.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidCharacterError

Invalid character encountered.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserCharacterRefAtEOFError

Target of character reference cannot be found.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserCharacterRefInPrologError

Invalid character found in the prolog.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserCharacterRefInEpilogError

Invalid character found in the epilog.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserCharacterRefInDTDError

Invalid character encountered in the DTD.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefAtEOFError

Target of entity reference is not found.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefInPrologError

Invalid entity reference found in the prolog.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefInEpilogError

Invalid entity reference found in the epilog.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefInDTDError

Invalid entity reference found in the DTD.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefAtEOFError

Target of parsed entity reference is not found.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefInPrologError

Target of parsed entity reference is not found in prolog.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefInEpilogError

Target of parsed entity reference is not found in epilog.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefInInternalSubsetError

Target of parsed entity reference is not found in internal subset.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityReferenceWithoutNameError

Entity reference is without name.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityReferenceMissingSemiError

Entity reference is missing semicolon.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefNoNameError

Parsed entity reference is without an entity name.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefMissingSemiError

Parsed entity reference is missing semicolon.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserUndeclaredEntityError

Entity is not declared.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserUnparsedEntityError

Cannot parse entity.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityIsExternalError

Cannot parse external entity.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityIsParameterError

Entity is a parameter.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserUnknownEncodingError

Document encoding is unknown.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEncodingNotSupportedError

Document encoding is not supported.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserStringNotStartedError

String is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserStringNotClosedError

String is not closed.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserNamespaceDeclarationError

Invalid namespace declaration encountered.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityNotStartedError

Entity is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityNotFinishedError

Entity is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserLessThanSymbolInAttributeError

Angle bracket is used in attribute.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeNotStartedError

Attribute is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeNotFinishedError

Attribute is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeHasNoValueError

Attribute doesn’t contain a value.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeRedefinedError

Attribute is redefined.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserLiteralNotStartedError

Literal is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserLiteralNotFinishedError

Literal is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserCommentNotFinishedError

Comment is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserProcessingInstructionNotStartedError

Processing instruction is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserProcessingInstructionNotFinishedError

Processing instruction is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserNotationNotStartedError

Notation is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserNotationNotFinishedError

Notation is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeListNotStartedError

Attribute list is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeListNotFinishedError

Attribute list is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserMixedContentDeclNotStartedError

Mixed content declaration is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserMixedContentDeclNotFinishedError

Mixed content declaration is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserElementContentDeclNotStartedError

Element content declaration is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserElementContentDeclNotFinishedError

Element content declaration is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserXMLDeclNotStartedError

XML declaration is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserXMLDeclNotFinishedError

XML declaration is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserConditionalSectionNotStartedError

Conditional section is not started.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserConditionalSectionNotFinishedError

Conditional section is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserExternalSubsetNotFinishedError

External subset is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserDOCTYPEDeclNotFinishedError

Document type declaration is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserMisplacedCDATAEndStringError

Misplaced CDATA end string.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserCDATANotFinishedError

CDATA block is not finished.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserMisplacedXMLDeclarationError

Misplaced XML declaration.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserSpaceRequiredError

Space is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserSeparatorRequiredError

Separator is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserNMTOKENRequiredError

Name token is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserNAMERequiredError

Name is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserPCDATARequiredError

CDATA is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserURIRequiredError

URI is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserPublicIdentifierRequiredError

Public identifier is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserLTRequiredError

Left angle bracket is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserGTRequiredError

Right angle bracket is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserLTSlashRequiredError

Left angle bracket slash is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEqualExpectedError

Equal sign expected.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserTagNameMismatchError

Tag name mismatch.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserUnfinishedTagError

Unfinished tag found.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserStandaloneValueError

Standalone value found.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidEncodingNameError

Invalid encoding name found.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserCommentContainsDoubleHyphenError

Comment contains double hyphen.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidEncodingError

Invalid encoding.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserExternalStandaloneEntityError

External standalone entity.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidConditionalSectionError

Invalid conditional section.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityValueRequiredError

Entity value is required.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserNotWellBalancedError

Document is not well balanced.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserExtraContentError

Error in content found.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidCharacterInEntityError

Invalid character in entity found.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefInInternalError

Internal error in parsed entity reference found.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefLoopError

Entity reference loop encountered.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityBoundaryError

Entity boundary error.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidURIError

Invalid URI specified.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserURIFragmentError

URI fragment.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserNoDTDError

Missing DTD.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

NSXMLParserDelegateAbortedParseError

Delegate aborted parse.

Available in Mac OS X v10.3 and later.

Declared in NSXMLParser.h.

Declared In
NSXMLParser.h

Next Page > Hide TOC


© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-02)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.