Daniel Veillard | a11001b | 2001-11-12 22:45:36 +0000 | [diff] [blame] | 1 | #include <libxml/parser.h> |
| 2 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 3 | #ifndef __XML_ERROR_H__ |
| 4 | #define __XML_ERROR_H__ |
| 5 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 6 | #ifdef __cplusplus |
| 7 | extern "C" { |
| 8 | #endif |
| 9 | |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 10 | /** |
| 11 | * xmlErrorLevel: |
| 12 | * |
| 13 | * Indicates the level of an error |
| 14 | */ |
| 15 | typedef enum { |
| 16 | XML_ERR_NONE = 0, |
| 17 | XML_ERR_WARNING = 1, /* A simple warning */ |
| 18 | XML_ERR_ERROR = 2, /* A recoverable error */ |
| 19 | XML_ERR_FATAL = 3 /* A fatal error */ |
| 20 | } xmlErrorLevel; |
| 21 | |
| 22 | /** |
| 23 | * xmlErrorDomain: |
| 24 | * |
| 25 | * Indicates where an error may have come from |
| 26 | */ |
| 27 | typedef enum { |
| 28 | XML_FROM_NONE = 0, |
| 29 | XML_FROM_PARSER, /* The XML parser */ |
Daniel Veillard | 18ec16e | 2003-10-07 23:16:40 +0000 | [diff] [blame] | 30 | XML_FROM_TREE, /* The tree module */ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 31 | XML_FROM_NAMESPACE, /* The XML Namespace module */ |
Daniel Veillard | 72b9e29 | 2003-10-28 15:44:17 +0000 | [diff] [blame] | 32 | XML_FROM_DTD, /* The XML DTD validation with parser context*/ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 33 | XML_FROM_HTML, /* The HTML parser */ |
| 34 | XML_FROM_MEMORY, /* The memory allocator */ |
| 35 | XML_FROM_OUTPUT, /* The serialization code */ |
Daniel Veillard | d0c9c32 | 2003-10-10 00:49:42 +0000 | [diff] [blame] | 36 | XML_FROM_IO, /* The Input/Output stack */ |
Daniel Veillard | 2b0f879 | 2003-10-10 19:36:36 +0000 | [diff] [blame] | 37 | XML_FROM_FTP, /* The FTP module */ |
| 38 | XML_FROM_HTTP, /* The FTP module */ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 39 | XML_FROM_XINCLUDE, /* The XInclude processing */ |
| 40 | XML_FROM_XPATH, /* The XPath module */ |
| 41 | XML_FROM_XPOINTER, /* The XPointer module */ |
| 42 | XML_FROM_REGEXP, /* The regular expressions module */ |
Daniel Veillard | d0c9c32 | 2003-10-10 00:49:42 +0000 | [diff] [blame] | 43 | XML_FROM_DATATYPE, /* The W3C XML Schemas Datatype module */ |
| 44 | XML_FROM_SCHEMASP, /* The W3C XML Schemas parser module */ |
| 45 | XML_FROM_SCHEMASV, /* The W3C XML Schemas validation module */ |
Daniel Veillard | 4c00414 | 2003-10-07 11:33:24 +0000 | [diff] [blame] | 46 | XML_FROM_RELAXNGP, /* The Relax-NG parser module */ |
| 47 | XML_FROM_RELAXNGV, /* The Relax-NG validator module */ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 48 | XML_FROM_CATALOG, /* The Catalog module */ |
| 49 | XML_FROM_C14N, /* The Canonicalization module */ |
Daniel Veillard | 72b9e29 | 2003-10-28 15:44:17 +0000 | [diff] [blame] | 50 | XML_FROM_XSLT, /* The XSLT engine from libxslt */ |
| 51 | XML_FROM_VALID /* The XML DTD validation with valid context */ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 52 | } xmlErrorDomain; |
| 53 | |
| 54 | /** |
| 55 | * xmlError: |
| 56 | * |
| 57 | * An XML Error instance. |
| 58 | */ |
| 59 | |
| 60 | typedef struct _xmlError xmlError; |
| 61 | typedef xmlError *xmlErrorPtr; |
| 62 | struct _xmlError { |
| 63 | int domain; /* What part of the library raised this error */ |
| 64 | int code; /* The error code, e.g. an xmlParserError */ |
| 65 | char *message;/* human-readable informative error message */ |
| 66 | xmlErrorLevel level;/* how consequent is the error */ |
| 67 | char *file; /* the filename */ |
| 68 | int line; /* the line number if available */ |
| 69 | char *str1; /* extra string information */ |
| 70 | char *str2; /* extra string information */ |
| 71 | char *str3; /* extra string information */ |
| 72 | int int1; /* extra number information */ |
| 73 | int int2; /* extra number information */ |
Daniel Veillard | 4c00414 | 2003-10-07 11:33:24 +0000 | [diff] [blame] | 74 | void *ctxt; /* the parser context if available */ |
| 75 | void *node; /* the node in the tree */ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | /** |
| 79 | * xmlParserError: |
| 80 | * |
| 81 | * This is an error that the XML (or HTML) parser can generate |
| 82 | */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 83 | typedef enum { |
| 84 | XML_ERR_OK = 0, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 85 | XML_ERR_INTERNAL_ERROR, /* 1 */ |
| 86 | XML_ERR_NO_MEMORY, /* 2 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 87 | XML_ERR_DOCUMENT_START, /* 3 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 88 | XML_ERR_DOCUMENT_EMPTY, /* 4 */ |
| 89 | XML_ERR_DOCUMENT_END, /* 5 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 90 | XML_ERR_INVALID_HEX_CHARREF, /* 6 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 91 | XML_ERR_INVALID_DEC_CHARREF, /* 7 */ |
| 92 | XML_ERR_INVALID_CHARREF, /* 8 */ |
| 93 | XML_ERR_INVALID_CHAR, /* 9 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 94 | XML_ERR_CHARREF_AT_EOF, /* 10 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 95 | XML_ERR_CHARREF_IN_PROLOG, /* 11 */ |
| 96 | XML_ERR_CHARREF_IN_EPILOG, /* 12 */ |
| 97 | XML_ERR_CHARREF_IN_DTD, /* 13 */ |
| 98 | XML_ERR_ENTITYREF_AT_EOF, /* 14 */ |
| 99 | XML_ERR_ENTITYREF_IN_PROLOG, /* 15 */ |
| 100 | XML_ERR_ENTITYREF_IN_EPILOG, /* 16 */ |
| 101 | XML_ERR_ENTITYREF_IN_DTD, /* 17 */ |
| 102 | XML_ERR_PEREF_AT_EOF, /* 18 */ |
| 103 | XML_ERR_PEREF_IN_PROLOG, /* 19 */ |
| 104 | XML_ERR_PEREF_IN_EPILOG, /* 20 */ |
| 105 | XML_ERR_PEREF_IN_INT_SUBSET, /* 21 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 106 | XML_ERR_ENTITYREF_NO_NAME, /* 22 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 107 | XML_ERR_ENTITYREF_SEMICOL_MISSING, /* 23 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 108 | XML_ERR_PEREF_NO_NAME, /* 24 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 109 | XML_ERR_PEREF_SEMICOL_MISSING, /* 25 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 110 | XML_ERR_UNDECLARED_ENTITY, /* 26 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 111 | XML_WAR_UNDECLARED_ENTITY, /* 27 */ |
| 112 | XML_ERR_UNPARSED_ENTITY, /* 28 */ |
| 113 | XML_ERR_ENTITY_IS_EXTERNAL, /* 29 */ |
| 114 | XML_ERR_ENTITY_IS_PARAMETER, /* 30 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 115 | XML_ERR_UNKNOWN_ENCODING, /* 31 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 116 | XML_ERR_UNSUPPORTED_ENCODING, /* 32 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 117 | XML_ERR_STRING_NOT_STARTED, /* 33 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 118 | XML_ERR_STRING_NOT_CLOSED, /* 34 */ |
| 119 | XML_ERR_NS_DECL_ERROR, /* 35 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 120 | XML_ERR_ENTITY_NOT_STARTED, /* 36 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 121 | XML_ERR_ENTITY_NOT_FINISHED, /* 37 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 122 | XML_ERR_LT_IN_ATTRIBUTE, /* 38 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 123 | XML_ERR_ATTRIBUTE_NOT_STARTED, /* 39 */ |
| 124 | XML_ERR_ATTRIBUTE_NOT_FINISHED, /* 40 */ |
| 125 | XML_ERR_ATTRIBUTE_WITHOUT_VALUE, /* 41 */ |
| 126 | XML_ERR_ATTRIBUTE_REDEFINED, /* 42 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 127 | XML_ERR_LITERAL_NOT_STARTED, /* 43 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 128 | XML_ERR_LITERAL_NOT_FINISHED, /* 44 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 129 | XML_ERR_COMMENT_NOT_FINISHED, /* 45 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 130 | XML_ERR_PI_NOT_STARTED, /* 46 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 131 | XML_ERR_PI_NOT_FINISHED, /* 47 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 132 | XML_ERR_NOTATION_NOT_STARTED, /* 48 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 133 | XML_ERR_NOTATION_NOT_FINISHED, /* 49 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 134 | XML_ERR_ATTLIST_NOT_STARTED, /* 50 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 135 | XML_ERR_ATTLIST_NOT_FINISHED, /* 51 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 136 | XML_ERR_MIXED_NOT_STARTED, /* 52 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 137 | XML_ERR_MIXED_NOT_FINISHED, /* 53 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 138 | XML_ERR_ELEMCONTENT_NOT_STARTED, /* 54 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 139 | XML_ERR_ELEMCONTENT_NOT_FINISHED, /* 55 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 140 | XML_ERR_XMLDECL_NOT_STARTED, /* 56 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 141 | XML_ERR_XMLDECL_NOT_FINISHED, /* 57 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 142 | XML_ERR_CONDSEC_NOT_STARTED, /* 58 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 143 | XML_ERR_CONDSEC_NOT_FINISHED, /* 59 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 144 | XML_ERR_EXT_SUBSET_NOT_FINISHED, /* 60 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 145 | XML_ERR_DOCTYPE_NOT_FINISHED, /* 61 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 146 | XML_ERR_MISPLACED_CDATA_END, /* 62 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 147 | XML_ERR_CDATA_NOT_FINISHED, /* 63 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 148 | XML_ERR_RESERVED_XML_NAME, /* 64 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 149 | XML_ERR_SPACE_REQUIRED, /* 65 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 150 | XML_ERR_SEPARATOR_REQUIRED, /* 66 */ |
| 151 | XML_ERR_NMTOKEN_REQUIRED, /* 67 */ |
| 152 | XML_ERR_NAME_REQUIRED, /* 68 */ |
| 153 | XML_ERR_PCDATA_REQUIRED, /* 69 */ |
| 154 | XML_ERR_URI_REQUIRED, /* 70 */ |
| 155 | XML_ERR_PUBID_REQUIRED, /* 71 */ |
| 156 | XML_ERR_LT_REQUIRED, /* 72 */ |
| 157 | XML_ERR_GT_REQUIRED, /* 73 */ |
| 158 | XML_ERR_LTSLASH_REQUIRED, /* 74 */ |
| 159 | XML_ERR_EQUAL_REQUIRED, /* 75 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 160 | XML_ERR_TAG_NAME_MISMATCH, /* 76 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 161 | XML_ERR_TAG_NOT_FINISHED, /* 77 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 162 | XML_ERR_STANDALONE_VALUE, /* 78 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 163 | XML_ERR_ENCODING_NAME, /* 79 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 164 | XML_ERR_HYPHEN_IN_COMMENT, /* 80 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 165 | XML_ERR_INVALID_ENCODING, /* 81 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 166 | XML_ERR_EXT_ENTITY_STANDALONE, /* 82 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 167 | XML_ERR_CONDSEC_INVALID, /* 83 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 168 | XML_ERR_VALUE_REQUIRED, /* 84 */ |
Daniel Veillard | 9ec2653 | 2003-09-23 07:43:19 +0000 | [diff] [blame] | 169 | XML_ERR_NOT_WELL_BALANCED, /* 85 */ |
| 170 | XML_ERR_EXTRA_CONTENT, /* 86 */ |
| 171 | XML_ERR_ENTITY_CHAR_ERROR, /* 87 */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 172 | XML_ERR_ENTITY_PE_INTERNAL, /* 88 */ |
| 173 | XML_ERR_ENTITY_LOOP, /* 89 */ |
| 174 | XML_ERR_ENTITY_BOUNDARY, /* 90 */ |
| 175 | XML_ERR_INVALID_URI, /* 91 */ |
Daniel Veillard | 5d90b6c | 2001-08-22 14:29:45 +0000 | [diff] [blame] | 176 | XML_ERR_URI_FRAGMENT, /* 92 */ |
Daniel Veillard | 7a51d6d | 2001-09-10 14:40:43 +0000 | [diff] [blame] | 177 | XML_WAR_CATALOG_PI, /* 93 */ |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 178 | XML_ERR_NO_DTD, /* 94 */ |
| 179 | XML_ERR_CONDSEC_INVALID_KEYWORD, /* 95 */ |
| 180 | XML_ERR_VERSION_MISSING, /* 96 */ |
| 181 | XML_WAR_UNKNOWN_VERSION, /* 97 */ |
| 182 | XML_WAR_LANG_VALUE, /* 98 */ |
| 183 | XML_WAR_NS_URI, /* 99 */ |
| 184 | XML_WAR_NS_URI_RELATIVE, /* 100 */ |
Daniel Veillard | f5cb3cd | 2003-10-28 13:58:13 +0000 | [diff] [blame] | 185 | XML_ERR_MISSING_ENCODING, /* 101 */ |
Daniel Veillard | 4c00414 | 2003-10-07 11:33:24 +0000 | [diff] [blame] | 186 | XML_NS_ERR_XML_NAMESPACE = 200, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 187 | XML_NS_ERR_UNDEFINED_NAMESPACE, /* 201 */ |
| 188 | XML_NS_ERR_QNAME, /* 202 */ |
| 189 | XML_NS_ERR_ATTRIBUTE_REDEFINED, /* 203 */ |
Daniel Veillard | 4c00414 | 2003-10-07 11:33:24 +0000 | [diff] [blame] | 190 | XML_DTD_ATTRIBUTE_DEFAULT = 500, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 191 | XML_DTD_ATTRIBUTE_REDEFINED, /* 501 */ |
| 192 | XML_DTD_ATTRIBUTE_VALUE, /* 502 */ |
| 193 | XML_DTD_CONTENT_ERROR, /* 503 */ |
| 194 | XML_DTD_CONTENT_MODEL, /* 504 */ |
| 195 | XML_DTD_CONTENT_NOT_DETERMINIST, /* 505 */ |
| 196 | XML_DTD_DIFFERENT_PREFIX, /* 506 */ |
| 197 | XML_DTD_ELEM_DEFAULT_NAMESPACE, /* 507 */ |
| 198 | XML_DTD_ELEM_NAMESPACE, /* 508 */ |
| 199 | XML_DTD_ELEM_REDEFINED, /* 509 */ |
| 200 | XML_DTD_EMPTY_NOTATION, /* 510 */ |
| 201 | XML_DTD_ENTITY_TYPE, /* 511 */ |
| 202 | XML_DTD_ID_FIXED, /* 512 */ |
| 203 | XML_DTD_ID_REDEFINED, /* 513 */ |
| 204 | XML_DTD_ID_SUBSET, /* 514 */ |
| 205 | XML_DTD_INVALID_CHILD, /* 515 */ |
| 206 | XML_DTD_INVALID_DEFAULT, /* 516 */ |
| 207 | XML_DTD_LOAD_ERROR, /* 517 */ |
| 208 | XML_DTD_MISSING_ATTRIBUTE, /* 518 */ |
| 209 | XML_DTD_MIXED_CORRUPT, /* 519 */ |
| 210 | XML_DTD_MULTIPLE_ID, /* 520 */ |
| 211 | XML_DTD_NO_DOC, /* 521 */ |
| 212 | XML_DTD_NO_DTD, /* 522 */ |
| 213 | XML_DTD_NO_ELEM_NAME, /* 523 */ |
| 214 | XML_DTD_NO_PREFIX, /* 524 */ |
| 215 | XML_DTD_NO_ROOT, /* 525 */ |
| 216 | XML_DTD_NOTATION_REDEFINED, /* 526 */ |
| 217 | XML_DTD_NOTATION_VALUE, /* 527 */ |
| 218 | XML_DTD_NOT_EMPTY, /* 528 */ |
| 219 | XML_DTD_NOT_PCDATA, /* 529 */ |
| 220 | XML_DTD_NOT_STANDALONE, /* 530 */ |
| 221 | XML_DTD_ROOT_NAME, /* 531 */ |
| 222 | XML_DTD_STANDALONE_WHITE_SPACE, /* 532 */ |
| 223 | XML_DTD_UNKNOWN_ATTRIBUTE, /* 533 */ |
| 224 | XML_DTD_UNKNOWN_ELEM, /* 534 */ |
| 225 | XML_DTD_UNKNOWN_ENTITY, /* 535 */ |
| 226 | XML_DTD_UNKNOWN_ID, /* 536 */ |
| 227 | XML_DTD_UNKNOWN_NOTATION, /* 537 */ |
Daniel Veillard | 4c00414 | 2003-10-07 11:33:24 +0000 | [diff] [blame] | 228 | XML_HTML_STRUCURE_ERROR = 800, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 229 | XML_HTML_UNKNOWN_TAG, /* 801 */ |
Daniel Veillard | 4c00414 | 2003-10-07 11:33:24 +0000 | [diff] [blame] | 230 | XML_RNGP_ANYNAME_ATTR_ANCESTOR = 1000, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 231 | XML_RNGP_ATTR_CONFLICT, /* 1001 */ |
| 232 | XML_RNGP_ATTRIBUTE_CHILDREN, /* 1002 */ |
| 233 | XML_RNGP_ATTRIBUTE_CONTENT, /* 1003 */ |
| 234 | XML_RNGP_ATTRIBUTE_EMPTY, /* 1004 */ |
| 235 | XML_RNGP_ATTRIBUTE_NOOP, /* 1005 */ |
| 236 | XML_RNGP_CHOICE_CONTENT, /* 1006 */ |
| 237 | XML_RNGP_CHOICE_EMPTY, /* 1007 */ |
| 238 | XML_RNGP_CREATE_FAILURE, /* 1008 */ |
| 239 | XML_RNGP_DATA_CONTENT, /* 1009 */ |
| 240 | XML_RNGP_DEF_CHOICE_AND_INTERLEAVE, /* 1010 */ |
| 241 | XML_RNGP_DEFINE_CREATE_FAILED, /* 1011 */ |
| 242 | XML_RNGP_DEFINE_EMPTY, /* 1012 */ |
| 243 | XML_RNGP_DEFINE_MISSING, /* 1013 */ |
| 244 | XML_RNGP_DEFINE_NAME_MISSING, /* 1014 */ |
| 245 | XML_RNGP_ELEM_CONTENT_EMPTY, /* 1015 */ |
| 246 | XML_RNGP_ELEM_CONTENT_ERROR, /* 1016 */ |
| 247 | XML_RNGP_ELEMENT_EMPTY, /* 1017 */ |
| 248 | XML_RNGP_ELEMENT_CONTENT, /* 1018 */ |
| 249 | XML_RNGP_ELEMENT_NAME, /* 1019 */ |
| 250 | XML_RNGP_ELEMENT_NO_CONTENT, /* 1020 */ |
| 251 | XML_RNGP_ELEM_TEXT_CONFLICT, /* 1021 */ |
| 252 | XML_RNGP_EMPTY, /* 1022 */ |
| 253 | XML_RNGP_EMPTY_CONSTRUCT, /* 1023 */ |
| 254 | XML_RNGP_EMPTY_CONTENT, /* 1024 */ |
| 255 | XML_RNGP_EMPTY_NOT_EMPTY, /* 1025 */ |
| 256 | XML_RNGP_ERROR_TYPE_LIB, /* 1026 */ |
| 257 | XML_RNGP_EXCEPT_EMPTY, /* 1027 */ |
| 258 | XML_RNGP_EXCEPT_MISSING, /* 1028 */ |
| 259 | XML_RNGP_EXCEPT_MULTIPLE, /* 1029 */ |
| 260 | XML_RNGP_EXCEPT_NO_CONTENT, /* 1030 */ |
| 261 | XML_RNGP_EXTERNALREF_EMTPY, /* 1031 */ |
| 262 | XML_RNGP_EXTERNAL_REF_FAILURE, /* 1032 */ |
| 263 | XML_RNGP_EXTERNALREF_RECURSE, /* 1033 */ |
| 264 | XML_RNGP_FORBIDDEN_ATTRIBUTE, /* 1034 */ |
| 265 | XML_RNGP_FOREIGN_ELEMENT, /* 1035 */ |
| 266 | XML_RNGP_GRAMMAR_CONTENT, /* 1036 */ |
| 267 | XML_RNGP_GRAMMAR_EMPTY, /* 1037 */ |
| 268 | XML_RNGP_GRAMMAR_MISSING, /* 1038 */ |
| 269 | XML_RNGP_GRAMMAR_NO_START, /* 1039 */ |
| 270 | XML_RNGP_GROUP_ATTR_CONFLICT, /* 1040 */ |
| 271 | XML_RNGP_HREF_ERROR, /* 1041 */ |
| 272 | XML_RNGP_INCLUDE_EMPTY, /* 1042 */ |
| 273 | XML_RNGP_INCLUDE_FAILURE, /* 1043 */ |
| 274 | XML_RNGP_INCLUDE_RECURSE, /* 1044 */ |
| 275 | XML_RNGP_INTERLEAVE_ADD, /* 1045 */ |
| 276 | XML_RNGP_INTERLEAVE_CREATE_FAILED, /* 1046 */ |
| 277 | XML_RNGP_INTERLEAVE_EMPTY, /* 1047 */ |
| 278 | XML_RNGP_INTERLEAVE_NO_CONTENT, /* 1048 */ |
| 279 | XML_RNGP_INVALID_DEFINE_NAME, /* 1049 */ |
| 280 | XML_RNGP_INVALID_URI, /* 1050 */ |
| 281 | XML_RNGP_INVALID_VALUE, /* 1051 */ |
| 282 | XML_RNGP_MISSING_HREF, /* 1052 */ |
| 283 | XML_RNGP_NAME_MISSING, /* 1053 */ |
| 284 | XML_RNGP_NEED_COMBINE, /* 1054 */ |
| 285 | XML_RNGP_NOTALLOWED_NOT_EMPTY, /* 1055 */ |
| 286 | XML_RNGP_NSNAME_ATTR_ANCESTOR, /* 1056 */ |
| 287 | XML_RNGP_NSNAME_NO_NS, /* 1057 */ |
| 288 | XML_RNGP_PARAM_FORBIDDEN, /* 1058 */ |
| 289 | XML_RNGP_PARAM_NAME_MISSING, /* 1059 */ |
| 290 | XML_RNGP_PARENTREF_CREATE_FAILED, /* 1060 */ |
| 291 | XML_RNGP_PARENTREF_NAME_INVALID, /* 1061 */ |
| 292 | XML_RNGP_PARENTREF_NO_NAME, /* 1062 */ |
| 293 | XML_RNGP_PARENTREF_NO_PARENT, /* 1063 */ |
| 294 | XML_RNGP_PARENTREF_NOT_EMPTY, /* 1064 */ |
| 295 | XML_RNGP_PARSE_ERROR, /* 1065 */ |
| 296 | XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME, /* 1066 */ |
| 297 | XML_RNGP_PAT_ATTR_ATTR, /* 1067 */ |
| 298 | XML_RNGP_PAT_ATTR_ELEM, /* 1068 */ |
| 299 | XML_RNGP_PAT_DATA_EXCEPT_ATTR, /* 1069 */ |
| 300 | XML_RNGP_PAT_DATA_EXCEPT_ELEM, /* 1070 */ |
| 301 | XML_RNGP_PAT_DATA_EXCEPT_EMPTY, /* 1071 */ |
| 302 | XML_RNGP_PAT_DATA_EXCEPT_GROUP, /* 1072 */ |
| 303 | XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE, /* 1073 */ |
| 304 | XML_RNGP_PAT_DATA_EXCEPT_LIST, /* 1074 */ |
| 305 | XML_RNGP_PAT_DATA_EXCEPT_ONEMORE, /* 1075 */ |
| 306 | XML_RNGP_PAT_DATA_EXCEPT_REF, /* 1076 */ |
| 307 | XML_RNGP_PAT_DATA_EXCEPT_TEXT, /* 1077 */ |
| 308 | XML_RNGP_PAT_LIST_ATTR, /* 1078 */ |
| 309 | XML_RNGP_PAT_LIST_ELEM, /* 1079 */ |
| 310 | XML_RNGP_PAT_LIST_INTERLEAVE, /* 1080 */ |
| 311 | XML_RNGP_PAT_LIST_LIST, /* 1081 */ |
| 312 | XML_RNGP_PAT_LIST_REF, /* 1082 */ |
| 313 | XML_RNGP_PAT_LIST_TEXT, /* 1083 */ |
| 314 | XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME, /* 1084 */ |
| 315 | XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME, /* 1085 */ |
| 316 | XML_RNGP_PAT_ONEMORE_GROUP_ATTR, /* 1086 */ |
| 317 | XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR, /* 1087 */ |
| 318 | XML_RNGP_PAT_START_ATTR, /* 1088 */ |
| 319 | XML_RNGP_PAT_START_DATA, /* 1089 */ |
| 320 | XML_RNGP_PAT_START_EMPTY, /* 1090 */ |
| 321 | XML_RNGP_PAT_START_GROUP, /* 1091 */ |
| 322 | XML_RNGP_PAT_START_INTERLEAVE, /* 1092 */ |
| 323 | XML_RNGP_PAT_START_LIST, /* 1093 */ |
| 324 | XML_RNGP_PAT_START_ONEMORE, /* 1094 */ |
| 325 | XML_RNGP_PAT_START_TEXT, /* 1095 */ |
| 326 | XML_RNGP_PAT_START_VALUE, /* 1096 */ |
| 327 | XML_RNGP_PREFIX_UNDEFINED, /* 1097 */ |
| 328 | XML_RNGP_REF_CREATE_FAILED, /* 1098 */ |
| 329 | XML_RNGP_REF_CYCLE, /* 1099 */ |
| 330 | XML_RNGP_REF_NAME_INVALID, /* 1100 */ |
| 331 | XML_RNGP_REF_NO_DEF, /* 1101 */ |
| 332 | XML_RNGP_REF_NO_NAME, /* 1102 */ |
| 333 | XML_RNGP_REF_NOT_EMPTY, /* 1103 */ |
| 334 | XML_RNGP_START_CHOICE_AND_INTERLEAVE, /* 1104 */ |
| 335 | XML_RNGP_START_CONTENT, /* 1105 */ |
| 336 | XML_RNGP_START_EMPTY, /* 1106 */ |
| 337 | XML_RNGP_START_MISSING, /* 1107 */ |
| 338 | XML_RNGP_TEXT_EXPECTED, /* 1108 */ |
| 339 | XML_RNGP_TEXT_HAS_CHILD, /* 1109 */ |
| 340 | XML_RNGP_TYPE_MISSING, /* 1110 */ |
| 341 | XML_RNGP_TYPE_NOT_FOUND, /* 1111 */ |
| 342 | XML_RNGP_TYPE_VALUE, /* 1112 */ |
| 343 | XML_RNGP_UNKNOWN_ATTRIBUTE, /* 1113 */ |
| 344 | XML_RNGP_UNKNOWN_COMBINE, /* 1114 */ |
| 345 | XML_RNGP_UNKNOWN_CONSTRUCT, /* 1115 */ |
| 346 | XML_RNGP_UNKNOWN_TYPE_LIB, /* 1116 */ |
| 347 | XML_RNGP_URI_FRAGMENT, /* 1117 */ |
| 348 | XML_RNGP_URI_NOT_ABSOLUTE, /* 1118 */ |
| 349 | XML_RNGP_VALUE_EMPTY, /* 1119 */ |
| 350 | XML_RNGP_VALUE_NO_CONTENT, /* 1120 */ |
| 351 | XML_RNGP_XMLNS_NAME, /* 1121 */ |
| 352 | XML_RNGP_XML_NS, /* 1122 */ |
Daniel Veillard | d96f6d3 | 2003-10-07 21:25:12 +0000 | [diff] [blame] | 353 | XML_XPATH_EXPRESSION_OK = 1200, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 354 | XML_XPATH_NUMBER_ERROR, /* 1201 */ |
| 355 | XML_XPATH_UNFINISHED_LITERAL_ERROR, /* 1202 */ |
| 356 | XML_XPATH_START_LITERAL_ERROR, /* 1203 */ |
| 357 | XML_XPATH_VARIABLE_REF_ERROR, /* 1204 */ |
| 358 | XML_XPATH_UNDEF_VARIABLE_ERROR, /* 1205 */ |
| 359 | XML_XPATH_INVALID_PREDICATE_ERROR, /* 1206 */ |
| 360 | XML_XPATH_EXPR_ERROR, /* 1207 */ |
| 361 | XML_XPATH_UNCLOSED_ERROR, /* 1208 */ |
| 362 | XML_XPATH_UNKNOWN_FUNC_ERROR, /* 1209 */ |
| 363 | XML_XPATH_INVALID_OPERAND, /* 1210 */ |
| 364 | XML_XPATH_INVALID_TYPE, /* 1211 */ |
| 365 | XML_XPATH_INVALID_ARITY, /* 1212 */ |
| 366 | XML_XPATH_INVALID_CTXT_SIZE, /* 1213 */ |
| 367 | XML_XPATH_INVALID_CTXT_POSITION, /* 1214 */ |
| 368 | XML_XPATH_MEMORY_ERROR, /* 1215 */ |
| 369 | XML_XPTR_SYNTAX_ERROR, /* 1216 */ |
| 370 | XML_XPTR_RESOURCE_ERROR, /* 1217 */ |
| 371 | XML_XPTR_SUB_RESOURCE_ERROR, /* 1218 */ |
| 372 | XML_XPATH_UNDEF_PREFIX_ERROR, /* 1219 */ |
| 373 | XML_XPATH_ENCODING_ERROR, /* 1220 */ |
| 374 | XML_XPATH_INVALID_CHAR_ERROR, /* 1221 */ |
Daniel Veillard | 18ec16e | 2003-10-07 23:16:40 +0000 | [diff] [blame] | 375 | XML_TREE_INVALID_HEX = 1300, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 376 | XML_TREE_INVALID_DEC, /* 1301 */ |
| 377 | XML_TREE_UNTERMINATED_ENTITY, /* 1302 */ |
Daniel Veillard | 18ec16e | 2003-10-07 23:16:40 +0000 | [diff] [blame] | 378 | XML_SAVE_NOT_UTF8 = 1400, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 379 | XML_SAVE_CHAR_INVALID, /* 1401 */ |
| 380 | XML_SAVE_NO_DOCTYPE, /* 1402 */ |
| 381 | XML_SAVE_UNKNOWN_ENCODING, /* 1403 */ |
Daniel Veillard | 05d987b | 2003-10-08 11:54:57 +0000 | [diff] [blame] | 382 | XML_REGEXP_COMPILE_ERROR = 1450, |
| 383 | XML_IO_UNKNOWN = 1500, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 384 | XML_IO_EACCES, /* 1501 */ |
| 385 | XML_IO_EAGAIN, /* 1502 */ |
| 386 | XML_IO_EBADF, /* 1503 */ |
| 387 | XML_IO_EBADMSG, /* 1504 */ |
| 388 | XML_IO_EBUSY, /* 1505 */ |
| 389 | XML_IO_ECANCELED, /* 1506 */ |
| 390 | XML_IO_ECHILD, /* 1507 */ |
| 391 | XML_IO_EDEADLK, /* 1508 */ |
| 392 | XML_IO_EDOM, /* 1509 */ |
| 393 | XML_IO_EEXIST, /* 1510 */ |
| 394 | XML_IO_EFAULT, /* 1511 */ |
| 395 | XML_IO_EFBIG, /* 1512 */ |
| 396 | XML_IO_EINPROGRESS, /* 1513 */ |
| 397 | XML_IO_EINTR, /* 1514 */ |
| 398 | XML_IO_EINVAL, /* 1515 */ |
| 399 | XML_IO_EIO, /* 1516 */ |
| 400 | XML_IO_EISDIR, /* 1517 */ |
| 401 | XML_IO_EMFILE, /* 1518 */ |
| 402 | XML_IO_EMLINK, /* 1519 */ |
| 403 | XML_IO_EMSGSIZE, /* 1520 */ |
| 404 | XML_IO_ENAMETOOLONG, /* 1521 */ |
| 405 | XML_IO_ENFILE, /* 1522 */ |
| 406 | XML_IO_ENODEV, /* 1523 */ |
| 407 | XML_IO_ENOENT, /* 1524 */ |
| 408 | XML_IO_ENOEXEC, /* 1525 */ |
| 409 | XML_IO_ENOLCK, /* 1526 */ |
| 410 | XML_IO_ENOMEM, /* 1527 */ |
| 411 | XML_IO_ENOSPC, /* 1528 */ |
| 412 | XML_IO_ENOSYS, /* 1529 */ |
| 413 | XML_IO_ENOTDIR, /* 1530 */ |
| 414 | XML_IO_ENOTEMPTY, /* 1531 */ |
| 415 | XML_IO_ENOTSUP, /* 1532 */ |
| 416 | XML_IO_ENOTTY, /* 1533 */ |
| 417 | XML_IO_ENXIO, /* 1534 */ |
| 418 | XML_IO_EPERM, /* 1535 */ |
| 419 | XML_IO_EPIPE, /* 1536 */ |
| 420 | XML_IO_ERANGE, /* 1537 */ |
| 421 | XML_IO_EROFS, /* 1538 */ |
| 422 | XML_IO_ESPIPE, /* 1539 */ |
| 423 | XML_IO_ESRCH, /* 1540 */ |
| 424 | XML_IO_ETIMEDOUT, /* 1541 */ |
| 425 | XML_IO_EXDEV, /* 1542 */ |
| 426 | XML_IO_NETWORK_ATTEMPT, /* 1543 */ |
| 427 | XML_IO_ENCODER, /* 1544 */ |
| 428 | XML_IO_FLUSH, /* 1545 */ |
| 429 | XML_IO_WRITE, /* 1546 */ |
| 430 | XML_IO_NO_INPUT, /* 1547 */ |
| 431 | XML_IO_BUFFER_FULL, /* 1548 */ |
| 432 | XML_IO_LOAD_ERROR, /* 1549 */ |
Daniel Veillard | 2b0f879 | 2003-10-10 19:36:36 +0000 | [diff] [blame] | 433 | XML_IO_ENOTSOCK, /* 1550 */ |
| 434 | XML_IO_EISCONN, /* 1551 */ |
| 435 | XML_IO_ECONNREFUSED, /* 1552 */ |
| 436 | XML_IO_ENETUNREACH, /* 1553 */ |
| 437 | XML_IO_EADDRINUSE, /* 1554 */ |
| 438 | XML_IO_EALREADY, /* 1555 */ |
| 439 | XML_IO_EAFNOSUPPORT, /* 1556 */ |
Daniel Veillard | cd6ff28 | 2003-10-08 22:38:13 +0000 | [diff] [blame] | 440 | XML_XINCLUDE_RECURSION=1600, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 441 | XML_XINCLUDE_PARSE_VALUE, /* 1601 */ |
| 442 | XML_XINCLUDE_ENTITY_DEF_MISMATCH, /* 1602 */ |
| 443 | XML_XINCLUDE_NO_HREF, /* 1603 */ |
| 444 | XML_XINCLUDE_NO_FALLBACK, /* 1604 */ |
| 445 | XML_XINCLUDE_HREF_URI, /* 1605 */ |
| 446 | XML_XINCLUDE_TEXT_FRAGMENT, /* 1606 */ |
| 447 | XML_XINCLUDE_TEXT_DOCUMENT, /* 1607 */ |
| 448 | XML_XINCLUDE_INVALID_CHAR, /* 1608 */ |
| 449 | XML_XINCLUDE_BUILD_FAILED, /* 1609 */ |
| 450 | XML_XINCLUDE_UNKNOWN_ENCODING, /* 1610 */ |
| 451 | XML_XINCLUDE_MULTIPLE_ROOT, /* 1611 */ |
| 452 | XML_XINCLUDE_XPTR_FAILED, /* 1612 */ |
| 453 | XML_XINCLUDE_XPTR_RESULT, /* 1613 */ |
| 454 | XML_XINCLUDE_INCLUDE_IN_INCLUDE, /* 1614 */ |
| 455 | XML_XINCLUDE_FALLBACKS_IN_INCLUDE, /* 1615 */ |
| 456 | XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE, /* 1616 */ |
Daniel Veillard | 69d2c17 | 2003-10-09 11:46:07 +0000 | [diff] [blame] | 457 | XML_CATALOG_MISSING_ATTR = 1650, |
Daniel Veillard | e2238d5 | 2003-10-09 13:14:55 +0000 | [diff] [blame] | 458 | XML_CATALOG_ENTRY_BROKEN, /* 1651 */ |
| 459 | XML_CATALOG_PREFER_VALUE, /* 1652 */ |
| 460 | XML_CATALOG_NOT_CATALOG, /* 1653 */ |
Daniel Veillard | d0c9c32 | 2003-10-10 00:49:42 +0000 | [diff] [blame] | 461 | XML_CATALOG_RECURSION, /* 1654 */ |
| 462 | XML_SCHEMAP_PREFIX_UNDEFINED = 1700, |
| 463 | XML_SCHEMAP_ATTRFORMDEFAULT_VALUE, /* 1701 */ |
| 464 | XML_SCHEMAP_ATTRGRP_NONAME_NOREF, /* 1702 */ |
| 465 | XML_SCHEMAP_ATTR_NONAME_NOREF, /* 1703 */ |
| 466 | XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF, /* 1704 */ |
| 467 | XML_SCHEMAP_ELEMFORMDEFAULT_VALUE, /* 1705 */ |
| 468 | XML_SCHEMAP_ELEM_NONAME_NOREF, /* 1706 */ |
| 469 | XML_SCHEMAP_EXTENSION_NO_BASE, /* 1707 */ |
| 470 | XML_SCHEMAP_FACET_NO_VALUE, /* 1708 */ |
| 471 | XML_SCHEMAP_FAILED_BUILD_IMPORT, /* 1709 */ |
| 472 | XML_SCHEMAP_GROUP_NONAME_NOREF, /* 1710 */ |
| 473 | XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI, /* 1711 */ |
| 474 | XML_SCHEMAP_IMPORT_REDEFINE_NSNAME, /* 1712 */ |
| 475 | XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI, /* 1713 */ |
| 476 | XML_SCHEMAP_INVALID_BOOLEAN, /* 1714 */ |
| 477 | XML_SCHEMAP_INVALID_ENUM, /* 1715 */ |
| 478 | XML_SCHEMAP_INVALID_FACET, /* 1716 */ |
| 479 | XML_SCHEMAP_INVALID_FACET_VALUE, /* 1717 */ |
| 480 | XML_SCHEMAP_INVALID_MAXOCCURS, /* 1718 */ |
| 481 | XML_SCHEMAP_INVALID_MINOCCURS, /* 1719 */ |
| 482 | XML_SCHEMAP_INVALID_REF_AND_SUBTYPE, /* 1720 */ |
| 483 | XML_SCHEMAP_INVALID_WHITE_SPACE, /* 1721 */ |
| 484 | XML_SCHEMAP_NOATTR_NOREF, /* 1722 */ |
| 485 | XML_SCHEMAP_NOTATION_NO_NAME, /* 1723 */ |
| 486 | XML_SCHEMAP_NOTYPE_NOREF, /* 1724 */ |
| 487 | XML_SCHEMAP_REF_AND_SUBTYPE, /* 1725 */ |
| 488 | XML_SCHEMAP_RESTRICTION_NONAME_NOREF, /* 1726 */ |
| 489 | XML_SCHEMAP_SIMPLETYPE_NONAME, /* 1727 */ |
| 490 | XML_SCHEMAP_TYPE_AND_SUBTYPE, /* 1728 */ |
| 491 | XML_SCHEMAP_UNKNOWN_ALL_CHILD, /* 1729 */ |
| 492 | XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD, /* 1730 */ |
| 493 | XML_SCHEMAP_UNKNOWN_ATTR_CHILD, /* 1731 */ |
| 494 | XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD, /* 1732 */ |
| 495 | XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP, /* 1733 */ |
| 496 | XML_SCHEMAP_UNKNOWN_BASE_TYPE, /* 1734 */ |
| 497 | XML_SCHEMAP_UNKNOWN_CHOICE_CHILD, /* 1735 */ |
| 498 | XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD, /* 1736 */ |
| 499 | XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD, /* 1737 */ |
| 500 | XML_SCHEMAP_UNKNOWN_ELEM_CHILD, /* 1738 */ |
| 501 | XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD, /* 1739 */ |
| 502 | XML_SCHEMAP_UNKNOWN_FACET_CHILD, /* 1740 */ |
| 503 | XML_SCHEMAP_UNKNOWN_FACET_TYPE, /* 1741 */ |
| 504 | XML_SCHEMAP_UNKNOWN_GROUP_CHILD, /* 1742 */ |
| 505 | XML_SCHEMAP_UNKNOWN_IMPORT_CHILD, /* 1743 */ |
| 506 | XML_SCHEMAP_UNKNOWN_LIST_CHILD, /* 1744 */ |
| 507 | XML_SCHEMAP_UNKNOWN_NOTATION_CHILD, /* 1745 */ |
| 508 | XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD, /* 1746 */ |
| 509 | XML_SCHEMAP_UNKNOWN_REF, /* 1747 */ |
| 510 | XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD, /* 1748 */ |
| 511 | XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD, /* 1749 */ |
| 512 | XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD, /* 1750 */ |
| 513 | XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD, /* 1751 */ |
| 514 | XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD, /* 1752 */ |
| 515 | XML_SCHEMAP_UNKNOWN_TYPE, /* 1753 */ |
| 516 | XML_SCHEMAP_UNKNOWN_UNION_CHILD, /* 1754 */ |
| 517 | XML_SCHEMAP_ELEM_DEFAULT_FIXED, /* 1755 */ |
| 518 | XML_SCHEMAP_REGEXP_INVALID, /* 1756 */ |
| 519 | XML_SCHEMAP_FAILED_LOAD, /* 1756 */ |
| 520 | XML_SCHEMAP_NOTHING_TO_PARSE, /* 1757 */ |
| 521 | XML_SCHEMAP_NOROOT, /* 1758 */ |
| 522 | XML_SCHEMAP_REDEFINED_GROUP, /* 1759 */ |
| 523 | XML_SCHEMAP_REDEFINED_TYPE, /* 1760 */ |
| 524 | XML_SCHEMAP_REDEFINED_ELEMENT, /* 1761 */ |
| 525 | XML_SCHEMAP_REDEFINED_ATTRGROUP, /* 1762 */ |
| 526 | XML_SCHEMAP_REDEFINED_ATTR, /* 1763 */ |
| 527 | XML_SCHEMAP_REDEFINED_NOTATION, /* 1764 */ |
| 528 | XML_SCHEMAP_FAILED_PARSE, /* 1765 */ |
| 529 | XML_SCHEMAV_NOROOT = 1800, |
| 530 | XML_SCHEMAV_UNDECLAREDELEM, /* 1801 */ |
| 531 | XML_SCHEMAV_NOTTOPLEVEL, /* 1802 */ |
| 532 | XML_SCHEMAV_MISSING, /* 1803 */ |
| 533 | XML_SCHEMAV_WRONGELEM, /* 1804 */ |
| 534 | XML_SCHEMAV_NOTYPE, /* 1805 */ |
| 535 | XML_SCHEMAV_NOROLLBACK, /* 1806 */ |
| 536 | XML_SCHEMAV_ISABSTRACT, /* 1807 */ |
| 537 | XML_SCHEMAV_NOTEMPTY, /* 1808 */ |
| 538 | XML_SCHEMAV_ELEMCONT, /* 1809 */ |
| 539 | XML_SCHEMAV_HAVEDEFAULT, /* 1810 */ |
| 540 | XML_SCHEMAV_NOTNILLABLE, /* 1811 */ |
| 541 | XML_SCHEMAV_EXTRACONTENT, /* 1812 */ |
| 542 | XML_SCHEMAV_INVALIDATTR, /* 1813 */ |
| 543 | XML_SCHEMAV_INVALIDELEM, /* 1814 */ |
| 544 | XML_SCHEMAV_NOTDETERMINIST, /* 1815 */ |
| 545 | XML_SCHEMAV_CONSTRUCT, /* 1816 */ |
| 546 | XML_SCHEMAV_INTERNAL, /* 1817 */ |
| 547 | XML_SCHEMAV_NOTSIMPLE, /* 1818 */ |
| 548 | XML_SCHEMAV_ATTRUNKNOWN, /* 1819 */ |
| 549 | XML_SCHEMAV_ATTRINVALID, /* 1820 */ |
| 550 | XML_SCHEMAV_VALUE, /* 1821 */ |
Daniel Veillard | fcf719c | 2003-10-10 11:42:17 +0000 | [diff] [blame] | 551 | XML_SCHEMAV_FACET, /* 1822 */ |
| 552 | XML_XPTR_UNKNOWN_SCHEME = 1900, |
| 553 | XML_XPTR_CHILDSEQ_START, /* 1901 */ |
| 554 | XML_XPTR_EVAL_FAILED, /* 1902 */ |
Daniel Veillard | d96cce1 | 2003-10-10 12:30:37 +0000 | [diff] [blame] | 555 | XML_XPTR_EXTRA_OBJECTS, /* 1903 */ |
| 556 | XML_C14N_CREATE_CTXT = 1950, |
| 557 | XML_C14N_REQUIRES_UTF8, /* 1951 */ |
| 558 | XML_C14N_CREATE_STACK, /* 1952 */ |
Daniel Veillard | 2b0f879 | 2003-10-10 19:36:36 +0000 | [diff] [blame] | 559 | XML_C14N_INVALID_NODE, /* 1953 */ |
| 560 | XML_FTP_PASV_ANSWER = 2000, |
| 561 | XML_FTP_EPSV_ANSWER, /* 2001 */ |
| 562 | XML_FTP_ACCNT, /* 2002 */ |
| 563 | XML_HTTP_URL_SYNTAX = 2020, |
| 564 | XML_HTTP_USE_IP, /* 2021 */ |
| 565 | XML_HTTP_UNKNOWN_HOST /* 2022 */ |
Daniel Veillard | 3b7840c | 2003-09-11 23:42:01 +0000 | [diff] [blame] | 566 | } xmlParserErrors; |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 567 | |
Daniel Veillard | 9d06d30 | 2002-01-22 18:15:52 +0000 | [diff] [blame] | 568 | /** |
| 569 | * xmlGenericErrorFunc: |
| 570 | * @ctx: a parsing context |
| 571 | * @msg: the message |
| 572 | * @...: the extra arguments of the varags to format the message |
| 573 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 574 | * Signature of the function to use when there is an error and |
Daniel Veillard | 61f2617 | 2002-03-12 18:46:39 +0000 | [diff] [blame] | 575 | * no parsing or validity context available . |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 576 | */ |
Daniel Veillard | 9d06d30 | 2002-01-22 18:15:52 +0000 | [diff] [blame] | 577 | typedef void (*xmlGenericErrorFunc) (void *ctx, |
| 578 | const char *msg, |
Daniel Veillard | d96f6d3 | 2003-10-07 21:25:12 +0000 | [diff] [blame] | 579 | ...); |
| 580 | /** |
| 581 | * xmlStructuredErrorFunc: |
| 582 | * @userData: user provided data for the error callback |
| 583 | * @error: the error being raised. |
| 584 | * |
| 585 | * Signature of the function to use when there is an error and |
| 586 | * the module handles the new error reporting mechanism. |
| 587 | */ |
| 588 | typedef void (*xmlStructuredErrorFunc) (void *userData, xmlErrorPtr error); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 589 | |
| 590 | /* |
Daniel Veillard | d046356 | 2001-10-13 09:15:48 +0000 | [diff] [blame] | 591 | * Use the following function to reset the two global variables |
| 592 | * xmlGenericError and xmlGenericErrorContext. |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 593 | */ |
Igor Zlatkovic | aa3cfbd | 2003-08-27 08:59:58 +0000 | [diff] [blame] | 594 | XMLPUBFUN void XMLCALL |
| 595 | xmlSetGenericErrorFunc (void *ctx, |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 596 | xmlGenericErrorFunc handler); |
Igor Zlatkovic | aa3cfbd | 2003-08-27 08:59:58 +0000 | [diff] [blame] | 597 | XMLPUBFUN void XMLCALL |
| 598 | initGenericErrorDefaultFunc (xmlGenericErrorFunc *handler); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 599 | |
Daniel Veillard | 659e71e | 2003-10-10 14:10:40 +0000 | [diff] [blame] | 600 | XMLPUBFUN void XMLCALL |
| 601 | xmlSetStructuredErrorFunc (void *ctx, |
| 602 | xmlStructuredErrorFunc handler); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 603 | /* |
| 604 | * Default message routines used by SAX and Valid context for error |
Daniel Veillard | 61f2617 | 2002-03-12 18:46:39 +0000 | [diff] [blame] | 605 | * and warning reporting. |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 606 | */ |
Igor Zlatkovic | aa3cfbd | 2003-08-27 08:59:58 +0000 | [diff] [blame] | 607 | XMLPUBFUN void XMLCALL |
| 608 | xmlParserError (void *ctx, |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 609 | const char *msg, |
| 610 | ...); |
Igor Zlatkovic | aa3cfbd | 2003-08-27 08:59:58 +0000 | [diff] [blame] | 611 | XMLPUBFUN void XMLCALL |
| 612 | xmlParserWarning (void *ctx, |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 613 | const char *msg, |
| 614 | ...); |
Igor Zlatkovic | aa3cfbd | 2003-08-27 08:59:58 +0000 | [diff] [blame] | 615 | XMLPUBFUN void XMLCALL |
| 616 | xmlParserValidityError (void *ctx, |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 617 | const char *msg, |
| 618 | ...); |
Igor Zlatkovic | aa3cfbd | 2003-08-27 08:59:58 +0000 | [diff] [blame] | 619 | XMLPUBFUN void XMLCALL |
| 620 | xmlParserValidityWarning (void *ctx, |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 621 | const char *msg, |
| 622 | ...); |
Igor Zlatkovic | aa3cfbd | 2003-08-27 08:59:58 +0000 | [diff] [blame] | 623 | XMLPUBFUN void XMLCALL |
| 624 | xmlParserPrintFileInfo (xmlParserInputPtr input); |
| 625 | XMLPUBFUN void XMLCALL |
| 626 | xmlParserPrintFileContext (xmlParserInputPtr input); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 627 | |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 628 | /* |
| 629 | * Extended error information routines |
| 630 | */ |
| 631 | XMLPUBFUN xmlErrorPtr XMLCALL |
| 632 | xmlGetLastError (void); |
| 633 | XMLPUBFUN void XMLCALL |
| 634 | xmlResetLastError (void); |
| 635 | XMLPUBFUN xmlErrorPtr XMLCALL |
| 636 | xmlCtxtGetLastError (void *ctx); |
| 637 | XMLPUBFUN void XMLCALL |
| 638 | xmlCtxtResetLastError (void *ctx); |
| 639 | XMLPUBFUN void XMLCALL |
| 640 | xmlResetError (xmlErrorPtr err); |
| 641 | XMLPUBFUN int XMLCALL |
| 642 | xmlCopyError (xmlErrorPtr from, |
| 643 | xmlErrorPtr to); |
| 644 | |
Daniel Veillard | bb5abab | 2003-10-03 22:21:51 +0000 | [diff] [blame] | 645 | #ifdef IN_LIBXML |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 646 | /* |
Daniel Veillard | bb5abab | 2003-10-03 22:21:51 +0000 | [diff] [blame] | 647 | * Internal callback reporting routine |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 648 | */ |
Daniel Veillard | bb5abab | 2003-10-03 22:21:51 +0000 | [diff] [blame] | 649 | XMLPUBFUN void XMLCALL |
Daniel Veillard | 659e71e | 2003-10-10 14:10:40 +0000 | [diff] [blame] | 650 | __xmlRaiseError (xmlStructuredErrorFunc schannel, |
| 651 | xmlGenericErrorFunc channel, |
Daniel Veillard | bb5abab | 2003-10-03 22:21:51 +0000 | [diff] [blame] | 652 | void *data, |
| 653 | void *ctx, |
| 654 | void *node, |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 655 | int domain, |
| 656 | int code, |
| 657 | xmlErrorLevel level, |
| 658 | const char *file, |
| 659 | int line, |
| 660 | const char *str1, |
| 661 | const char *str2, |
| 662 | const char *str3, |
| 663 | int int1, |
| 664 | int int2, |
| 665 | const char *msg, |
| 666 | ...); |
Daniel Veillard | 18ec16e | 2003-10-07 23:16:40 +0000 | [diff] [blame] | 667 | XMLPUBFUN void XMLCALL |
| 668 | __xmlSimpleError (int domain, |
| 669 | int code, |
| 670 | xmlNodePtr node, |
| 671 | const char *msg, |
| 672 | const char *extra); |
Daniel Veillard | bb5abab | 2003-10-03 22:21:51 +0000 | [diff] [blame] | 673 | #endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 674 | #ifdef __cplusplus |
| 675 | } |
| 676 | #endif |
| 677 | #endif /* __XML_ERROR_H__ */ |