NSXMLParser Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in iOS 2.0 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. Unless used in a callback, the NSXMLParser is a thread-safe class as long as any given instance is only used in one thread.

Tasks

Initializing a Parser Object

Managing Delegates

Managing Parser Behavior

Parsing

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
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
Declared In
NSXMLParser.h

delegate

Returns the receiver’s delegate.

- (id < NSXMLParserDelegate >)delegate
Availability
  • Available in iOS 2.0 and later.
Related Sample Code
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
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
Declared In
NSXMLParser.h

initWithStream:

Initializes the receiver with the XML contents from the specified stream and parses it..

- (id)initWithStream:(NSInputStream *)stream
Parameters
stream

The input stream. The content is incrementally loaded from the specified stream and parsed. The NSXMLParser will open the stream, and synchronously read from it without scheduling it.

Return Value

An initialized NSXMLParser object or nil if an error occurs.

Availability
  • Available in iOS 5.0 and later.
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
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
See Also
Declared In
NSXMLParser.h

setDelegate:

Sets the receiver’s delegate.

- (void)setDelegate:(id < NSXMLParserDelegate >)delegate
Parameters
delegate

An object that is the new delegate. It is not retained. The delegate must conform to the NSXMLParserDelegate Protocol protocol.

Availability
  • Available in iOS 2.0 and later.
See Also
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.

Availability
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
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.

Availability
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
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
  • Available in iOS 2.0 and later.
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 iOS 2.0 and later.

Declared in NSXMLParser.h.

Declared In
NSXMLParser.h

NSXMLParserError

The following error types are defined by NSXMLParser.

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
};
typedef NSInteger NSXMLParserError;
Constants
NSXMLParserInternalError

The parser object encountered an internal error.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserOutOfMemoryError

The parser object ran out of memory.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserDocumentStartError

The parser object is unable to start parsing.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEmptyDocumentError

The document is empty.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserPrematureDocumentEndError

The document ended unexpectedly.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidHexCharacterRefError

Invalid hexadecimal character reference encountered.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidDecimalCharacterRefError

Invalid decimal character reference encountered.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidCharacterRefError

Invalid character reference encountered.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidCharacterError

Invalid character encountered.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserCharacterRefAtEOFError

Target of character reference cannot be found.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserCharacterRefInPrologError

Invalid character found in the prolog.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserCharacterRefInEpilogError

Invalid character found in the epilog.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserCharacterRefInDTDError

Invalid character encountered in the DTD.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefAtEOFError

Target of entity reference is not found.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefInPrologError

Invalid entity reference found in the prolog.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefInEpilogError

Invalid entity reference found in the epilog.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefInDTDError

Invalid entity reference found in the DTD.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefAtEOFError

Target of parsed entity reference is not found.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefInPrologError

Target of parsed entity reference is not found in prolog.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefInEpilogError

Target of parsed entity reference is not found in epilog.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefInInternalSubsetError

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

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityReferenceWithoutNameError

Entity reference is without name.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityReferenceMissingSemiError

Entity reference is missing semicolon.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefNoNameError

Parsed entity reference is without an entity name.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefMissingSemiError

Parsed entity reference is missing semicolon.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserUndeclaredEntityError

Entity is not declared.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserUnparsedEntityError

Cannot parse entity.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityIsExternalError

Cannot parse external entity.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityIsParameterError

Entity is a parameter.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserUnknownEncodingError

Document encoding is unknown.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEncodingNotSupportedError

Document encoding is not supported.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserStringNotStartedError

String is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserStringNotClosedError

String is not closed.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserNamespaceDeclarationError

Invalid namespace declaration encountered.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityNotStartedError

Entity is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityNotFinishedError

Entity is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserLessThanSymbolInAttributeError

Angle bracket is used in attribute.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeNotStartedError

Attribute is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeNotFinishedError

Attribute is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeHasNoValueError

Attribute doesn’t contain a value.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeRedefinedError

Attribute is redefined.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserLiteralNotStartedError

Literal is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserLiteralNotFinishedError

Literal is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserCommentNotFinishedError

Comment is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserProcessingInstructionNotStartedError

Processing instruction is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserProcessingInstructionNotFinishedError

Processing instruction is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserNotationNotStartedError

Notation is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserNotationNotFinishedError

Notation is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeListNotStartedError

Attribute list is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserAttributeListNotFinishedError

Attribute list is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserMixedContentDeclNotStartedError

Mixed content declaration is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserMixedContentDeclNotFinishedError

Mixed content declaration is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserElementContentDeclNotStartedError

Element content declaration is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserElementContentDeclNotFinishedError

Element content declaration is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserXMLDeclNotStartedError

XML declaration is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserXMLDeclNotFinishedError

XML declaration is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserConditionalSectionNotStartedError

Conditional section is not started.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserConditionalSectionNotFinishedError

Conditional section is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserExternalSubsetNotFinishedError

External subset is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserDOCTYPEDeclNotFinishedError

Document type declaration is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserMisplacedCDATAEndStringError

Misplaced CDATA end string.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserCDATANotFinishedError

CDATA block is not finished.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserMisplacedXMLDeclarationError

Misplaced XML declaration.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserSpaceRequiredError

Space is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserSeparatorRequiredError

Separator is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserNMTOKENRequiredError

Name token is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserNAMERequiredError

Name is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserPCDATARequiredError

CDATA is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserURIRequiredError

URI is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserPublicIdentifierRequiredError

Public identifier is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserLTRequiredError

Left angle bracket is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserGTRequiredError

Right angle bracket is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserLTSlashRequiredError

Left angle bracket slash is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEqualExpectedError

Equal sign expected.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserTagNameMismatchError

Tag name mismatch.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserUnfinishedTagError

Unfinished tag found.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserStandaloneValueError

Standalone value found.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidEncodingNameError

Invalid encoding name found.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserCommentContainsDoubleHyphenError

Comment contains double hyphen.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidEncodingError

Invalid encoding.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserExternalStandaloneEntityError

External standalone entity.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidConditionalSectionError

Invalid conditional section.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityValueRequiredError

Entity value is required.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserNotWellBalancedError

Document is not well balanced.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserExtraContentError

Error in content found.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidCharacterInEntityError

Invalid character in entity found.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserParsedEntityRefInInternalError

Internal error in parsed entity reference found.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityRefLoopError

Entity reference loop encountered.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserEntityBoundaryError

Entity boundary error.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserInvalidURIError

Invalid URI specified.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserURIFragmentError

URI fragment.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserNoDTDError

Missing DTD.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

NSXMLParserDelegateAbortedParseError

Delegate aborted parse.

Available in iOS 2.0 and later.

Declared in NSXMLParser.h.

Availability
  • Available in iOS 2.0 and later.
Declared In
NSXMLParser.h