Error Codes
Expat Parsing Errors
The following constants are defined for expat parsing error. These are returned by xml_Parse and xml_ParseBLOB if an error occurs during parsing.
|
0
|
XML_Err_None
|
|
1
|
XML_Err_NoMemory
|
|
2
|
XML_Err_Syntax
|
|
3
|
XML_Err_NoElements
|
|
4
|
XML_Err_InvalidToken
|
|
5
|
XML_Err_UnclosedToken
|
|
6
|
XML_Err_PartialChar
|
|
7
|
XML_Err_TagMismatch
|
|
8
|
XML_Err_DuplicateAttribute
|
|
9
|
XML_Err_JunkAfterDocElement
|
|
10
|
XML_Err_ParamEntityRef
|
|
11
|
XML_Err_UndefinedEntity
|
|
12
|
XML_Err_RecursiveEntityRef
|
|
13
|
XML_Err_AsyncEntity
|
|
14
|
XML_Err_BadCharRef
|
|
15
|
XML_Err_BinaryEntityRef
|
|
16
|
XML_Err_AttributeExtEntityRef
|
|
17
|
XML_Err_MisplacedXmlPI
|
|
18
|
XML_Err_UnknownEncoding
|
|
19
|
XML_Err_IncorrectEncoding
|
|
20
|
XML_Err_UnclosedCDATASection
|
|
21
|
XML_Err_ExternalEntityHandling
|
|
22
|
XML_Err_NotStandalone
|
Expat4D Errors
Expat4D errors are normally caused by not using the plug-in correctly. Expat4D errors can be trapped by setting the Expat4D error handler using xml_SetErrorHandler. The first parameter of the error handler method receives a longint value which corresponds to one of the following constants.
|
0
|
E4D_Err_None
|
|
1
|
E4D_Err_InvalidParserHandle
|
|
2
|
E4D_Err_InvalidHandlerMethod
|
|
3
|
E4D_Err_CannotCreateParser
|
|
4
|
E4D_Err_OutputBufferFull
|
See Also: xml_Parse, xml_ParseBLOB
|