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 =1
The parser object encountered an internal error.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserOutOfMemoryError =2
The parser object ran out of memory.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserDocumentStartError =3
The parser object is unable to start parsing.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEmptyDocumentError =4
The document is empty.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserPrematureDocumentEndError =5
The document ended unexpectedly.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserInvalidHexCharacterRefError =6
Invalid hexadecimal character reference encountered.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserInvalidDecimalCharacterRefError =7
Invalid decimal character reference encountered.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserInvalidCharacterRefError =8
Invalid character reference encountered.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserInvalidCharacterError =9
Invalid character encountered.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserCharacterRefAtEOFError =10
Target of character reference cannot be found.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserCharacterRefInPrologError =11
Invalid character found in the prolog.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserCharacterRefInEpilogError =12
Invalid character found in the epilog.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserCharacterRefInDTDError =13
Invalid character encountered in the DTD.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityRefAtEOFError =14
Target of entity reference is not found.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityRefInPrologError =15
Invalid entity reference found in the prolog.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityRefInEpilogError =16
Invalid entity reference found in the epilog.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityRefInDTDError =17
Invalid entity reference found in the DTD.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserParsedEntityRefAtEOFError =18
Target of parsed entity reference is not found.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserParsedEntityRefInPrologError =19
Target of parsed entity reference is not found in prolog.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserParsedEntityRefInEpilogError =20
Target of parsed entity reference is not found in epilog.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserParsedEntityRefInInternalSubsetError =21
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 =22
Entity reference is without name.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityReferenceMissingSemiError =23
Entity reference is missing semicolon.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserParsedEntityRefNoNameError =24
Parsed entity reference is without an entity name.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserParsedEntityRefMissingSemiError =25
Parsed entity reference is missing semicolon.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserUndeclaredEntityError =26
Entity is not declared.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserUnparsedEntityError =28
Cannot parse entity.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityIsExternalError =29
Cannot parse external entity.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityIsParameterError =30
Entity is a parameter.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserUnknownEncodingError =31
Document encoding is unknown.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEncodingNotSupportedError = 32
Document encoding is not supported.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserStringNotStartedError = 33
String is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserStringNotClosedError = 34
String is not closed.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserNamespaceDeclarationError = 35
Invalid namespace declaration encountered.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityNotStartedError = 36
Entity is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityNotFinishedError = 37
Entity is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserLessThanSymbolInAttributeError = 38
Angle bracket is used in attribute.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserAttributeNotStartedError = 39
Attribute is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserAttributeNotFinishedError = 40
Attribute is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserAttributeHasNoValueError = 41
Attribute doesn’t contain a value.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserAttributeRedefinedError = 42
Attribute is redefined.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserLiteralNotStartedError = 43
Literal is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserLiteralNotFinishedError = 44
Literal is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserCommentNotFinishedError = 45
Comment is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserProcessingInstructionNotStartedError = 46
Processing instruction is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserProcessingInstructionNotFinishedError = 47
Processing instruction is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserNotationNotStartedError = 48
Notation is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserNotationNotFinishedError = 49
Notation is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserAttributeListNotStartedError = 50
Attribute list is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserAttributeListNotFinishedError = 51
Attribute list is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserMixedContentDeclNotStartedError = 52
Mixed content declaration is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserMixedContentDeclNotFinishedError = 53
Mixed content declaration is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserElementContentDeclNotStartedError = 54
Element content declaration is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserElementContentDeclNotFinishedError = 55
Element content declaration is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserXMLDeclNotStartedError = 56
XML declaration is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserXMLDeclNotFinishedError = 57
XML declaration is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserConditionalSectionNotStartedError = 58
Conditional section is not started.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserConditionalSectionNotFinishedError = 59
Conditional section is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserExternalSubsetNotFinishedError = 60
External subset is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserDOCTYPEDeclNotFinishedError = 61
Document type declaration is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserMisplacedCDATAEndStringError = 62
Misplaced CDATA end string.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserCDatanotFinishedError = 63
CDATA block is not finished.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserMisplacedXMLDeclarationError = 64
Misplaced XML declaration.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserSpacerequiredError = 65
Space is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserSeparatorrequiredError = 66
Separator is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserNMTOKENrequiredError = 67
Name token is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserNAMErequiredError = 68
Name is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserPCDATArequiredError = 69
CDATA is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserURIrequiredError = 70
URI is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserPublicIdentifierrequiredError = 71
Public identifier is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserLTrequiredError = 72
Left angle bracket is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserGTrequiredError = 73
Right angle bracket is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserLTSlashrequiredError = 74
Left angle bracket slash is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEqualExpectedError = 75
Equal sign expected.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserTagNameMismatchError = 76
Tag name mismatch.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserUnfinishedTagError = 77
Unfinished tag found.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserStandaloneValueError = 78
Standalone value found.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserInvalidEncodingNameError = 79
Invalid encoding name found.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserCommentContainsDoubleHyphenError = 80
Comment contains double hyphen.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserInvalidEncodingError = 81
Invalid encoding.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserExternalStandaloneEntityError = 82
External standalone entity.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserInvalidConditionalSectionError = 83
Invalid conditional section.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityValuerequiredError = 84
Entity value is required.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserNotWellBalancedError = 85
Document is not well balanced.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserExtraContentError = 86
Error in content found.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserInvalidCharacterInEntityError = 87
Invalid character in entity found.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserParsedEntityRefInInternalError = 88
Internal error in parsed entity reference found.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityRefLoopError = 89
Entity reference loop encountered.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserEntityBoundaryError = 90
Entity boundary error.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserInvalidURIError = 91
Invalid URI specified.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserURIFragmentError = 92
URI fragment.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserNoDTDError = 94
Missing DTD.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.
NSXMLParserDelegateAbortedParseError = 512
Delegate aborted parse.
原文链接:https://www.f2er.com/xml/298178.html