42#define Expat_INCLUDED 1
55#define XML_TRUE ((XML_Bool)1)
56#define XML_FALSE ((XML_Bool)0)
73#define XML_STATUS_ERROR XML_STATUS_ERROR
75#define XML_STATUS_OK XML_STATUS_OK
77#define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
222 void *(*malloc_fcn)(
size_t size);
223 void *(*realloc_fcn)(
void *ptr,
size_t size);
224 void (*free_fcn)(
void *ptr);
270 const XML_Char *namespaceSeparator);
332 int has_internal_subset);
359 void *userData,
const XML_Char *entityName,
int is_parameter_entity,
467 int is_parameter_entity);
647 void *encodingHandlerData);
678#define XML_GetUserData(parser) (*(void **)(parser))
968#define XML_GetErrorLineNumber XML_GetCurrentLineNumber
969#define XML_GetErrorColumnNumber XML_GetCurrentColumnNumber
970#define XML_GetErrorByteIndex XML_GetCurrentByteIndex
1044XML_SetBillionLaughsAttackProtectionMaximumAmplification(
1045 XML_Parser parser,
float maximumAmplificationFactor);
1049XML_SetBillionLaughsAttackProtectionActivationThreshold(
1050 XML_Parser parser,
unsigned long long activationThresholdBytes);
1056#define XML_MAJOR_VERSION 2
1057#define XML_MINOR_VERSION 4
1058#define XML_MICRO_VERSION 9
XML_SetNotStandaloneHandler(XML_Parser parser, XML_NotStandaloneHandler handler)
void(XMLCALL * XML_CommentHandler)(void *userData, const XML_Char *data)
XML_SetEndCdataSectionHandler(XML_Parser parser, XML_EndCdataSectionHandler end)
XML_GetBase(XML_Parser parser)
XML_SetEndDoctypeDeclHandler(XML_Parser parser, XML_EndDoctypeDeclHandler end)
void(XMLCALL * XML_EndElementHandler)(void *userData, const XML_Char *name)
XML_SetExternalEntityRefHandler(XML_Parser parser, XML_ExternalEntityRefHandler handler)
XML_GetInputContext(XML_Parser parser, int *offset, int *size)
void(XMLCALL * XML_EndNamespaceDeclHandler)(void *userData, const XML_Char *prefix)
XML_MemRealloc(XML_Parser parser, void *ptr, size_t size)
XML_SetCommentHandler(XML_Parser parser, XML_CommentHandler handler)
XML_ParserCreate(const XML_Char *encoding)
XML_SetDoctypeDeclHandler(XML_Parser parser, XML_StartDoctypeDeclHandler start, XML_EndDoctypeDeclHandler end)
XML_SetStartElementHandler(XML_Parser parser, XML_StartElementHandler handler)
XML_ParserCreate_MM(const XML_Char *encoding, const XML_Memory_Handling_Suite *memsuite, const XML_Char *namespaceSeparator)
XML_ParseBuffer(XML_Parser parser, int len, int isFinal)
XML_SetProcessingInstructionHandler(XML_Parser parser, XML_ProcessingInstructionHandler handler)
XML_SetSkippedEntityHandler(XML_Parser parser, XML_SkippedEntityHandler handler)
void(XMLCALL * XML_SkippedEntityHandler)(void *userData, const XML_Char *entityName, int is_parameter_entity)
XML_SetEndElementHandler(XML_Parser parser, XML_EndElementHandler handler)
XML_GetBuffer(XML_Parser parser, int len)
XML_GetErrorCode(XML_Parser parser)
int(XMLCALL * XML_ExternalEntityRefHandler)(XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId)
XML_StopParser(XML_Parser parser, XML_Bool resumable)
@ XML_FEATURE_SIZEOF_XML_LCHAR
@ XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT
@ XML_FEATURE_SIZEOF_XML_CHAR
@ XML_FEATURE_UNICODE_WCHAR_T
@ XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT
@ XML_FEATURE_CONTEXT_BYTES
void(XMLCALL * XML_EndCdataSectionHandler)(void *userData)
XML_SetNamespaceDeclHandler(XML_Parser parser, XML_StartNamespaceDeclHandler start, XML_EndNamespaceDeclHandler end)
int(XMLCALL * XML_UnknownEncodingHandler)(void *encodingHandlerData, const XML_Char *name, XML_Encoding *info)
XML_SetStartDoctypeDeclHandler(XML_Parser parser, XML_StartDoctypeDeclHandler start)
XML_ResumeParser(XML_Parser parser)
XML_SetStartNamespaceDeclHandler(XML_Parser parser, XML_StartNamespaceDeclHandler start)
XML_SetExternalEntityRefHandlerArg(XML_Parser parser, void *arg)
void(XMLCALL * XML_EndDoctypeDeclHandler)(void *userData)
XML_SetUserData(XML_Parser parser, void *userData)
XML_SetUnparsedEntityDeclHandler(XML_Parser parser, XML_UnparsedEntityDeclHandler handler)
XML_ATTR_MALLOC XML_MemMalloc(XML_Parser parser, size_t size)
void(XMLCALL * XML_StartElementHandler)(void *userData, const XML_Char *name, const XML_Char **atts)
XML_SetEncoding(XML_Parser parser, const XML_Char *encoding)
void(XMLCALL * XML_ProcessingInstructionHandler)(void *userData, const XML_Char *target, const XML_Char *data)
XML_SetXmlDeclHandler(XML_Parser parser, XML_XmlDeclHandler xmldecl)
XML_GetSpecifiedAttributeCount(XML_Parser parser)
void(XMLCALL * XML_StartNamespaceDeclHandler)(void *userData, const XML_Char *prefix, const XML_Char *uri)
XML_MemFree(XML_Parser parser, void *ptr)
XML_SetCdataSectionHandler(XML_Parser parser, XML_StartCdataSectionHandler start, XML_EndCdataSectionHandler end)
XML_SetDefaultHandlerExpand(XML_Parser parser, XML_DefaultHandler handler)
void(XMLCALL * XML_XmlDeclHandler)(void *userData, const XML_Char *version, const XML_Char *encoding, int standalone)
XML_DefaultCurrent(XML_Parser parser)
void(XMLCALL * XML_StartCdataSectionHandler)(void *userData)
void(XMLCALL * XML_UnparsedEntityDeclHandler)(void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName)
XML_ParserFree(XML_Parser parser)
XML_ExpatVersionInfo(void)
XML_SetElementHandler(XML_Parser parser, XML_StartElementHandler start, XML_EndElementHandler end)
@ XML_ERROR_UNCLOSED_TOKEN
@ XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF
@ XML_ERROR_NOT_STANDALONE
@ XML_ERROR_INCOMPLETE_PE
@ XML_ERROR_RECURSIVE_ENTITY_REF
@ XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING
@ XML_ERROR_ENTITY_DECLARED_IN_PE
@ XML_ERROR_DUPLICATE_ATTRIBUTE
@ XML_ERROR_EXTERNAL_ENTITY_HANDLING
@ XML_ERROR_INCORRECT_ENCODING
@ XML_ERROR_MISPLACED_XML_PI
@ XML_ERROR_AMPLIFICATION_LIMIT_BREACH
@ XML_ERROR_PARAM_ENTITY_REF
@ XML_ERROR_FEATURE_REQUIRES_XML_DTD
@ XML_ERROR_RESERVED_PREFIX_XML
@ XML_ERROR_UNEXPECTED_STATE
@ XML_ERROR_JUNK_AFTER_DOC_ELEMENT
@ XML_ERROR_NOT_SUSPENDED
@ XML_ERROR_UNCLOSED_CDATA_SECTION
@ XML_ERROR_RESERVED_NAMESPACE_URI
@ XML_ERROR_UNDEFINED_ENTITY
@ XML_ERROR_UNBOUND_PREFIX
@ XML_ERROR_UNDECLARING_PREFIX
@ XML_ERROR_INVALID_TOKEN
@ XML_ERROR_BINARY_ENTITY_REF
@ XML_ERROR_UNKNOWN_ENCODING
@ XML_ERROR_INVALID_ARGUMENT
@ XML_ERROR_RESERVED_PREFIX_XMLNS
XML_SetUnknownEncodingHandler(XML_Parser parser, XML_UnknownEncodingHandler handler, void *encodingHandlerData)
XML_Parse(XML_Parser parser, const char *s, int len, int isFinal)
#define XML_STATUS_SUSPENDED
XML_SetReturnNSTriplet(XML_Parser parser, int do_nst)
XML_FreeContentModel(XML_Parser parser, XML_Content *model)
XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt)
XML_SetEntityDeclHandler(XML_Parser parser, XML_EntityDeclHandler handler)
XML_ErrorString(enum XML_Error code)
@ XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE
@ XML_PARAM_ENTITY_PARSING_ALWAYS
@ XML_PARAM_ENTITY_PARSING_NEVER
void(XMLCALL * XML_AttlistDeclHandler)(void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired)
int(XMLCALL * XML_NotStandaloneHandler)(void *userData)
XML_SetBase(XML_Parser parser, const XML_Char *base)
XML_SetEndNamespaceDeclHandler(XML_Parser parser, XML_EndNamespaceDeclHandler end)
XML_UseParserAsHandlerArg(XML_Parser parser)
XML_ExternalEntityParserCreate(XML_Parser parser, const XML_Char *context, const XML_Char *encoding)
XML_ParserCreateNS(const XML_Char *encoding, XML_Char namespaceSeparator)
struct XML_ParserStruct * XML_Parser
XML_GetCurrentByteCount(XML_Parser parser)
XML_GetIdAttributeIndex(XML_Parser parser)
XML_UseForeignDTD(XML_Parser parser, XML_Bool useDTD)
void(XMLCALL * XML_StartDoctypeDeclHandler)(void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset)
XML_SetAttlistDeclHandler(XML_Parser parser, XML_AttlistDeclHandler attdecl)
XML_ParserReset(XML_Parser parser, const XML_Char *encoding)
XML_SetElementDeclHandler(XML_Parser parser, XML_ElementDeclHandler eldecl)
XML_SetParamEntityParsing(XML_Parser parser, enum XML_ParamEntityParsing parsing)
XML_SetStartCdataSectionHandler(XML_Parser parser, XML_StartCdataSectionHandler start)
XML_SetNotationDeclHandler(XML_Parser parser, XML_NotationDeclHandler handler)
void(XMLCALL * XML_CharacterDataHandler)(void *userData, const XML_Char *s, int len)
XML_SetDefaultHandler(XML_Parser parser, XML_DefaultHandler handler)
void(XMLCALL * XML_EntityDeclHandler)(void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName)
XML_GetParsingStatus(XML_Parser parser, XML_ParsingStatus *status)
void(XMLCALL * XML_NotationDeclHandler)(void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId)
void(XMLCALL * XML_DefaultHandler)(void *userData, const XML_Char *s, int len)
XML_SetCharacterDataHandler(XML_Parser parser, XML_CharacterDataHandler handler)
void(XMLCALL * XML_ElementDeclHandler)(void *userData, const XML_Char *name, XML_Content *model)
#define XMLPARSEAPI(type)
#define XML_ATTR_ALLOC_SIZE(x)
int(XMLCALL *convert)(void *data
void(XMLCALL *release)(void *data)
enum XML_FeatureEnum feature
enum XML_Content_Quant quant
enum XML_Content_Type type
XML_Size XMLCALL XML_GetCurrentColumnNumber(XML_Parser parser)
XML_Size XMLCALL XML_GetCurrentLineNumber(XML_Parser parser)
XML_Index XMLCALL XML_GetCurrentByteIndex(XML_Parser parser)