MCPcopy Create free account
hub / github.com/WinMerge/winmerge / XML_ErrorString

Function XML_ErrorString

Externals/poco/XML/src/xmlparse.cpp:2882–2988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2880}
2881
2882const XML_LChar *XMLCALL
2883XML_ErrorString(enum XML_Error code) {
2884 switch (code) {
2885 case XML_ERROR_NONE:
2886 return NULL;
2887 case XML_ERROR_NO_MEMORY:
2888 return XML_L("out of memory");
2889 case XML_ERROR_SYNTAX:
2890 return XML_L("syntax error");
2891 case XML_ERROR_NO_ELEMENTS:
2892 return XML_L("no element found");
2893 case XML_ERROR_INVALID_TOKEN:
2894 return XML_L("not well-formed (invalid token)");
2895 case XML_ERROR_UNCLOSED_TOKEN:
2896 return XML_L("unclosed token");
2897 case XML_ERROR_PARTIAL_CHAR:
2898 return XML_L("partial character");
2899 case XML_ERROR_TAG_MISMATCH:
2900 return XML_L("mismatched tag");
2901 case XML_ERROR_DUPLICATE_ATTRIBUTE:
2902 return XML_L("duplicate attribute");
2903 case XML_ERROR_JUNK_AFTER_DOC_ELEMENT:
2904 return XML_L("junk after document element");
2905 case XML_ERROR_PARAM_ENTITY_REF:
2906 return XML_L("illegal parameter entity reference");
2907 case XML_ERROR_UNDEFINED_ENTITY:
2908 return XML_L("undefined entity");
2909 case XML_ERROR_RECURSIVE_ENTITY_REF:
2910 return XML_L("recursive entity reference");
2911 case XML_ERROR_ASYNC_ENTITY:
2912 return XML_L("asynchronous entity");
2913 case XML_ERROR_BAD_CHAR_REF:
2914 return XML_L("reference to invalid character number");
2915 case XML_ERROR_BINARY_ENTITY_REF:
2916 return XML_L("reference to binary entity");
2917 case XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF:
2918 return XML_L("reference to external entity in attribute");
2919 case XML_ERROR_MISPLACED_XML_PI:
2920 return XML_L("XML or text declaration not at start of entity");
2921 case XML_ERROR_UNKNOWN_ENCODING:
2922 return XML_L("unknown encoding");
2923 case XML_ERROR_INCORRECT_ENCODING:
2924 return XML_L("encoding specified in XML declaration is incorrect");
2925 case XML_ERROR_UNCLOSED_CDATA_SECTION:
2926 return XML_L("unclosed CDATA section");
2927 case XML_ERROR_EXTERNAL_ENTITY_HANDLING:
2928 return XML_L("error in processing external entity reference");
2929 case XML_ERROR_NOT_STANDALONE:
2930 return XML_L("document is not standalone");
2931 case XML_ERROR_UNEXPECTED_STATE:
2932 return XML_L("unexpected parser state - please send a bug report");
2933 case XML_ERROR_ENTITY_DECLARED_IN_PE:
2934 return XML_L("entity declared in parameter entity");
2935 case XML_ERROR_FEATURE_REQUIRES_XML_DTD:
2936 return XML_L("requested feature requires XML_DTD support in Expat");
2937 case XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING:
2938 return XML_L("cannot change setting once parsing has begun");
2939 /* Added in 1.95.7. */

Callers 2

UnpackFileMethod · 0.85
handleErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected