Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
include/expat.h File Reference
#include <stdlib.h>
#include "expat_external.h"

Go to the source code of this file.

Classes

struct  XML_cp
 
struct  XML_Memory_Handling_Suite
 
struct  XML_Encoding
 
struct  XML_ParsingStatus
 
struct  XML_Expat_Version
 
struct  XML_Feature
 

Macros

#define XML_TRUE   ((XML_Bool) 1)
 
#define XML_FALSE   ((XML_Bool) 0)
 
#define XML_STATUS_ERROR   XML_STATUS_ERROR
 
#define XML_STATUS_OK   XML_STATUS_OK
 
#define XML_STATUS_SUSPENDED   XML_STATUS_SUSPENDED
 
#define XML_GetUserData(parser)   (*(void **)(parser))
 
#define XML_GetErrorLineNumber   XML_GetCurrentLineNumber
 
#define XML_GetErrorColumnNumber   XML_GetCurrentColumnNumber
 
#define XML_GetErrorByteIndex   XML_GetCurrentByteIndex
 
#define XML_MAJOR_VERSION   2
 
#define XML_MINOR_VERSION   0
 
#define XML_MICRO_VERSION   1
 

Typedefs

typedef struct XML_ParserStructXML_Parser
 
typedef unsigned char XML_Bool
 
typedef struct XML_cp XML_Content
 
typedef void(XMLCALLXML_ElementDeclHandler) (void *userData, const XML_Char *name, XML_Content *model)
 
typedef void(XMLCALLXML_AttlistDeclHandler) (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired)
 
typedef void(XMLCALLXML_XmlDeclHandler) (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone)
 
typedef void(XMLCALLXML_StartElementHandler) (void *userData, const XML_Char *name, const XML_Char **atts)
 
typedef void(XMLCALLXML_EndElementHandler) (void *userData, const XML_Char *name)
 
typedef void(XMLCALLXML_CharacterDataHandler) (void *userData, const XML_Char *s, int len)
 
typedef void(XMLCALLXML_ProcessingInstructionHandler) (void *userData, const XML_Char *target, const XML_Char *data)
 
typedef void(XMLCALLXML_CommentHandler) (void *userData, const XML_Char *data)
 
typedef void(XMLCALLXML_StartCdataSectionHandler) (void *userData)
 
typedef void(XMLCALLXML_EndCdataSectionHandler) (void *userData)
 
typedef void(XMLCALLXML_DefaultHandler) (void *userData, const XML_Char *s, int len)
 
typedef void(XMLCALLXML_StartDoctypeDeclHandler) (void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset)
 
typedef void(XMLCALLXML_EndDoctypeDeclHandler) (void *userData)
 
typedef void(XMLCALLXML_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)
 
typedef void(XMLCALLXML_UnparsedEntityDeclHandler) (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName)
 
typedef void(XMLCALLXML_NotationDeclHandler) (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId)
 
typedef void(XMLCALLXML_StartNamespaceDeclHandler) (void *userData, const XML_Char *prefix, const XML_Char *uri)
 
typedef void(XMLCALLXML_EndNamespaceDeclHandler) (void *userData, const XML_Char *prefix)
 
typedef int(XMLCALLXML_NotStandaloneHandler) (void *userData)
 
typedef int(XMLCALLXML_ExternalEntityRefHandler) (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId)
 
typedef void(XMLCALLXML_SkippedEntityHandler) (void *userData, const XML_Char *entityName, int is_parameter_entity)
 
typedef int(XMLCALLXML_UnknownEncodingHandler) (void *encodingHandlerData, const XML_Char *name, XML_Encoding *info)
 

Enumerations

enum  XML_Status {
  XML_STATUS_ERROR = 0 , XML_STATUS_ERROR = 0 , XML_STATUS_OK = 1 , XML_STATUS_OK = 1 ,
  XML_STATUS_SUSPENDED , XML_STATUS_ERROR = 0 , XML_STATUS_ERROR = 0 , XML_STATUS_OK = 1 ,
  XML_STATUS_OK = 1 , XML_STATUS_SUSPENDED
}
 
enum  XML_Error {
  XML_ERROR_NONE , XML_ERROR_NO_MEMORY , XML_ERROR_SYNTAX , XML_ERROR_NO_ELEMENTS ,
  XML_ERROR_INVALID_TOKEN , XML_ERROR_UNCLOSED_TOKEN , XML_ERROR_PARTIAL_CHAR , XML_ERROR_TAG_MISMATCH ,
  XML_ERROR_DUPLICATE_ATTRIBUTE , XML_ERROR_JUNK_AFTER_DOC_ELEMENT , XML_ERROR_PARAM_ENTITY_REF , XML_ERROR_UNDEFINED_ENTITY ,
  XML_ERROR_RECURSIVE_ENTITY_REF , XML_ERROR_ASYNC_ENTITY , XML_ERROR_BAD_CHAR_REF , XML_ERROR_BINARY_ENTITY_REF ,
  XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF , XML_ERROR_MISPLACED_XML_PI , XML_ERROR_UNKNOWN_ENCODING , XML_ERROR_INCORRECT_ENCODING ,
  XML_ERROR_UNCLOSED_CDATA_SECTION , XML_ERROR_EXTERNAL_ENTITY_HANDLING , XML_ERROR_NOT_STANDALONE , XML_ERROR_UNEXPECTED_STATE ,
  XML_ERROR_ENTITY_DECLARED_IN_PE , XML_ERROR_FEATURE_REQUIRES_XML_DTD , XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING , XML_ERROR_UNBOUND_PREFIX ,
  XML_ERROR_UNDECLARING_PREFIX , XML_ERROR_INCOMPLETE_PE , XML_ERROR_XML_DECL , XML_ERROR_TEXT_DECL ,
  XML_ERROR_PUBLICID , XML_ERROR_SUSPENDED , XML_ERROR_NOT_SUSPENDED , XML_ERROR_ABORTED ,
  XML_ERROR_FINISHED , XML_ERROR_SUSPEND_PE , XML_ERROR_RESERVED_PREFIX_XML , XML_ERROR_RESERVED_PREFIX_XMLNS ,
  XML_ERROR_RESERVED_NAMESPACE_URI , XML_ERROR_NONE , XML_ERROR_NO_MEMORY , XML_ERROR_SYNTAX ,
  XML_ERROR_NO_ELEMENTS , XML_ERROR_INVALID_TOKEN , XML_ERROR_UNCLOSED_TOKEN , XML_ERROR_PARTIAL_CHAR ,
  XML_ERROR_TAG_MISMATCH , XML_ERROR_DUPLICATE_ATTRIBUTE , XML_ERROR_JUNK_AFTER_DOC_ELEMENT , XML_ERROR_PARAM_ENTITY_REF ,
  XML_ERROR_UNDEFINED_ENTITY , XML_ERROR_RECURSIVE_ENTITY_REF , XML_ERROR_ASYNC_ENTITY , XML_ERROR_BAD_CHAR_REF ,
  XML_ERROR_BINARY_ENTITY_REF , XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF , XML_ERROR_MISPLACED_XML_PI , XML_ERROR_UNKNOWN_ENCODING ,
  XML_ERROR_INCORRECT_ENCODING , XML_ERROR_UNCLOSED_CDATA_SECTION , XML_ERROR_EXTERNAL_ENTITY_HANDLING , XML_ERROR_NOT_STANDALONE ,
  XML_ERROR_UNEXPECTED_STATE , XML_ERROR_ENTITY_DECLARED_IN_PE , XML_ERROR_FEATURE_REQUIRES_XML_DTD , XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING ,
  XML_ERROR_UNBOUND_PREFIX , XML_ERROR_UNDECLARING_PREFIX , XML_ERROR_INCOMPLETE_PE , XML_ERROR_XML_DECL ,
  XML_ERROR_TEXT_DECL , XML_ERROR_PUBLICID , XML_ERROR_SUSPENDED , XML_ERROR_NOT_SUSPENDED ,
  XML_ERROR_ABORTED , XML_ERROR_FINISHED , XML_ERROR_SUSPEND_PE , XML_ERROR_RESERVED_PREFIX_XML ,
  XML_ERROR_RESERVED_PREFIX_XMLNS , XML_ERROR_RESERVED_NAMESPACE_URI
}
 
enum  XML_Content_Type {
  XML_CTYPE_EMPTY = 1 , XML_CTYPE_ANY , XML_CTYPE_MIXED , XML_CTYPE_NAME ,
  XML_CTYPE_CHOICE , XML_CTYPE_SEQ , XML_CTYPE_EMPTY = 1 , XML_CTYPE_ANY ,
  XML_CTYPE_MIXED , XML_CTYPE_NAME , XML_CTYPE_CHOICE , XML_CTYPE_SEQ
}
 
enum  XML_Content_Quant {
  XML_CQUANT_NONE , XML_CQUANT_OPT , XML_CQUANT_REP , XML_CQUANT_PLUS ,
  XML_CQUANT_NONE , XML_CQUANT_OPT , XML_CQUANT_REP , XML_CQUANT_PLUS
}
 
enum  XML_Parsing {
  XML_INITIALIZED , XML_PARSING , XML_FINISHED , XML_SUSPENDED ,
  XML_INITIALIZED , XML_PARSING , XML_FINISHED , XML_SUSPENDED
}
 
enum  XML_ParamEntityParsing {
  XML_PARAM_ENTITY_PARSING_NEVER , XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE , XML_PARAM_ENTITY_PARSING_ALWAYS , XML_PARAM_ENTITY_PARSING_NEVER ,
  XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE , XML_PARAM_ENTITY_PARSING_ALWAYS
}
 
enum  XML_FeatureEnum {
  XML_FEATURE_END = 0 , XML_FEATURE_UNICODE , XML_FEATURE_UNICODE_WCHAR_T , XML_FEATURE_DTD ,
  XML_FEATURE_CONTEXT_BYTES , XML_FEATURE_MIN_SIZE , XML_FEATURE_SIZEOF_XML_CHAR , XML_FEATURE_SIZEOF_XML_LCHAR ,
  XML_FEATURE_NS , XML_FEATURE_LARGE_SIZE , XML_FEATURE_END = 0 , XML_FEATURE_UNICODE ,
  XML_FEATURE_UNICODE_WCHAR_T , XML_FEATURE_DTD , XML_FEATURE_CONTEXT_BYTES , XML_FEATURE_MIN_SIZE ,
  XML_FEATURE_SIZEOF_XML_CHAR , XML_FEATURE_SIZEOF_XML_LCHAR , XML_FEATURE_NS , XML_FEATURE_LARGE_SIZE
}
 

Functions

 XML_SetElementDeclHandler (XML_Parser parser, XML_ElementDeclHandler eldecl)
 
 XML_SetAttlistDeclHandler (XML_Parser parser, XML_AttlistDeclHandler attdecl)
 
 XML_SetXmlDeclHandler (XML_Parser parser, XML_XmlDeclHandler xmldecl)
 
 XML_ParserCreate (const XML_Char *encoding)
 
 XML_ParserCreateNS (const XML_Char *encoding, XML_Char namespaceSeparator)
 
 XML_ParserCreate_MM (const XML_Char *encoding, const XML_Memory_Handling_Suite *memsuite, const XML_Char *namespaceSeparator)
 
 XML_ParserReset (XML_Parser parser, const XML_Char *encoding)
 
 XML_SetEntityDeclHandler (XML_Parser parser, XML_EntityDeclHandler handler)
 
 XML_SetElementHandler (XML_Parser parser, XML_StartElementHandler start, XML_EndElementHandler end)
 
 XML_SetStartElementHandler (XML_Parser parser, XML_StartElementHandler handler)
 
 XML_SetEndElementHandler (XML_Parser parser, XML_EndElementHandler handler)
 
 XML_SetCharacterDataHandler (XML_Parser parser, XML_CharacterDataHandler handler)
 
 XML_SetProcessingInstructionHandler (XML_Parser parser, XML_ProcessingInstructionHandler handler)
 
 XML_SetCommentHandler (XML_Parser parser, XML_CommentHandler handler)
 
 XML_SetCdataSectionHandler (XML_Parser parser, XML_StartCdataSectionHandler start, XML_EndCdataSectionHandler end)
 
 XML_SetStartCdataSectionHandler (XML_Parser parser, XML_StartCdataSectionHandler start)
 
 XML_SetEndCdataSectionHandler (XML_Parser parser, XML_EndCdataSectionHandler end)
 
 XML_SetDefaultHandler (XML_Parser parser, XML_DefaultHandler handler)
 
 XML_SetDefaultHandlerExpand (XML_Parser parser, XML_DefaultHandler handler)
 
 XML_SetDoctypeDeclHandler (XML_Parser parser, XML_StartDoctypeDeclHandler start, XML_EndDoctypeDeclHandler end)
 
 XML_SetStartDoctypeDeclHandler (XML_Parser parser, XML_StartDoctypeDeclHandler start)
 
 XML_SetEndDoctypeDeclHandler (XML_Parser parser, XML_EndDoctypeDeclHandler end)
 
 XML_SetUnparsedEntityDeclHandler (XML_Parser parser, XML_UnparsedEntityDeclHandler handler)
 
 XML_SetNotationDeclHandler (XML_Parser parser, XML_NotationDeclHandler handler)
 
 XML_SetNamespaceDeclHandler (XML_Parser parser, XML_StartNamespaceDeclHandler start, XML_EndNamespaceDeclHandler end)
 
 XML_SetStartNamespaceDeclHandler (XML_Parser parser, XML_StartNamespaceDeclHandler start)
 
 XML_SetEndNamespaceDeclHandler (XML_Parser parser, XML_EndNamespaceDeclHandler end)
 
 XML_SetNotStandaloneHandler (XML_Parser parser, XML_NotStandaloneHandler handler)
 
 XML_SetExternalEntityRefHandler (XML_Parser parser, XML_ExternalEntityRefHandler handler)
 
 XML_SetExternalEntityRefHandlerArg (XML_Parser parser, void *arg)
 
 XML_SetSkippedEntityHandler (XML_Parser parser, XML_SkippedEntityHandler handler)
 
 XML_SetUnknownEncodingHandler (XML_Parser parser, XML_UnknownEncodingHandler handler, void *encodingHandlerData)
 
 XML_DefaultCurrent (XML_Parser parser)
 
 XML_SetReturnNSTriplet (XML_Parser parser, int do_nst)
 
 XML_SetUserData (XML_Parser parser, void *userData)
 
 XML_SetEncoding (XML_Parser parser, const XML_Char *encoding)
 
 XML_UseParserAsHandlerArg (XML_Parser parser)
 
 XML_UseForeignDTD (XML_Parser parser, XML_Bool useDTD)
 
 XML_SetBase (XML_Parser parser, const XML_Char *base)
 
 XML_GetBase (XML_Parser parser)
 
 XML_GetSpecifiedAttributeCount (XML_Parser parser)
 
 XML_GetIdAttributeIndex (XML_Parser parser)
 
 XML_Parse (XML_Parser parser, const char *s, int len, int isFinal)
 
 XML_GetBuffer (XML_Parser parser, int len)
 
 XML_ParseBuffer (XML_Parser parser, int len, int isFinal)
 
 XML_StopParser (XML_Parser parser, XML_Bool resumable)
 
 XML_ResumeParser (XML_Parser parser)
 
 XML_GetParsingStatus (XML_Parser parser, XML_ParsingStatus *status)
 
 XML_ExternalEntityParserCreate (XML_Parser parser, const XML_Char *context, const XML_Char *encoding)
 
 XML_SetParamEntityParsing (XML_Parser parser, enum XML_ParamEntityParsing parsing)
 
 XML_GetErrorCode (XML_Parser parser)
 
 XMLPARSEAPI (XML_Size) XML_GetCurrentLineNumber(XML_Parser parser)
 
 XMLPARSEAPI (XML_Index) XML_GetCurrentByteIndex(XML_Parser parser)
 
 XML_GetCurrentByteCount (XML_Parser parser)
 
 XML_GetInputContext (XML_Parser parser, int *offset, int *size)
 
 XML_FreeContentModel (XML_Parser parser, XML_Content *model)
 
 XML_MemMalloc (XML_Parser parser, size_t size)
 
 XML_MemRealloc (XML_Parser parser, void *ptr, size_t size)
 
 XML_MemFree (XML_Parser parser, void *ptr)
 
 XML_ParserFree (XML_Parser parser)
 
 XML_ErrorString (enum XML_Error code)
 
 XML_ExpatVersion (void)
 
 XML_ExpatVersionInfo (void)
 
 XML_GetFeatureList (void)
 

Macro Definition Documentation

◆ XML_FALSE

#define XML_FALSE   ((XML_Bool) 0)

Definition at line 30 of file include/expat.h.

◆ XML_GetErrorByteIndex

#define XML_GetErrorByteIndex   XML_GetCurrentByteIndex

Definition at line 936 of file include/expat.h.

◆ XML_GetErrorColumnNumber

#define XML_GetErrorColumnNumber   XML_GetCurrentColumnNumber

Definition at line 935 of file include/expat.h.

◆ XML_GetErrorLineNumber

#define XML_GetErrorLineNumber   XML_GetCurrentLineNumber

Definition at line 934 of file include/expat.h.

◆ XML_GetUserData

#define XML_GetUserData (   parser)    (*(void **)(parser))

Definition at line 674 of file include/expat.h.

◆ XML_MAJOR_VERSION

#define XML_MAJOR_VERSION   2

Definition at line 1006 of file include/expat.h.

◆ XML_MICRO_VERSION

#define XML_MICRO_VERSION   1

Definition at line 1008 of file include/expat.h.

◆ XML_MINOR_VERSION

#define XML_MINOR_VERSION   0

Definition at line 1007 of file include/expat.h.

◆ XML_STATUS_ERROR

#define XML_STATUS_ERROR   XML_STATUS_ERROR

Definition at line 47 of file include/expat.h.

◆ XML_STATUS_OK

#define XML_STATUS_OK   XML_STATUS_OK

Definition at line 49 of file include/expat.h.

◆ XML_STATUS_SUSPENDED

#define XML_STATUS_SUSPENDED   XML_STATUS_SUSPENDED

◆ XML_TRUE

#define XML_TRUE   ((XML_Bool) 1)

Definition at line 29 of file include/expat.h.

Typedef Documentation

◆ XML_AttlistDeclHandler

typedef 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)

Definition at line 166 of file include/expat.h.

◆ XML_Bool

typedef unsigned char XML_Bool

Definition at line 28 of file include/expat.h.

◆ XML_CharacterDataHandler

typedef void(XMLCALL * XML_CharacterDataHandler) (void *userData, const XML_Char *s, int len)

Definition at line 261 of file include/expat.h.

◆ XML_CommentHandler

typedef void(XMLCALL * XML_CommentHandler) (void *userData, const XML_Char *data)

Definition at line 272 of file include/expat.h.

◆ XML_Content

typedef struct XML_cp XML_Content

Definition at line 135 of file include/expat.h.

◆ XML_DefaultHandler

typedef void(XMLCALL * XML_DefaultHandler) (void *userData, const XML_Char *s, int len)

Definition at line 291 of file include/expat.h.

◆ XML_ElementDeclHandler

typedef void(XMLCALL * XML_ElementDeclHandler) (void *userData, const XML_Char *name, XML_Content *model)

Definition at line 150 of file include/expat.h.

◆ XML_EndCdataSectionHandler

typedef void(XMLCALL * XML_EndCdataSectionHandler) (void *userData)

Definition at line 276 of file include/expat.h.

◆ XML_EndDoctypeDeclHandler

typedef void(XMLCALL * XML_EndDoctypeDeclHandler) (void *userData)

Definition at line 309 of file include/expat.h.

◆ XML_EndElementHandler

typedef void(XMLCALL * XML_EndElementHandler) (void *userData, const XML_Char *name)

Definition at line 256 of file include/expat.h.

◆ XML_EndNamespaceDeclHandler

typedef void(XMLCALL * XML_EndNamespaceDeclHandler) (void *userData, const XML_Char *prefix)

Definition at line 383 of file include/expat.h.

◆ XML_EntityDeclHandler

typedef 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)

Definition at line 329 of file include/expat.h.

◆ XML_ExternalEntityRefHandler

typedef int(XMLCALL * XML_ExternalEntityRefHandler) (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId)

Definition at line 432 of file include/expat.h.

◆ XML_NotationDeclHandler

typedef void(XMLCALL * XML_NotationDeclHandler) (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId)

Definition at line 365 of file include/expat.h.

◆ XML_NotStandaloneHandler

typedef int(XMLCALL * XML_NotStandaloneHandler) (void *userData)

Definition at line 396 of file include/expat.h.

◆ XML_Parser

typedef struct XML_ParserStruct* XML_Parser

Definition at line 25 of file include/expat.h.

◆ XML_ProcessingInstructionHandler

typedef void(XMLCALL * XML_ProcessingInstructionHandler) (void *userData, const XML_Char *target, const XML_Char *data)

Definition at line 266 of file include/expat.h.

◆ XML_SkippedEntityHandler

typedef void(XMLCALL * XML_SkippedEntityHandler) (void *userData, const XML_Char *entityName, int is_parameter_entity)

Definition at line 449 of file include/expat.h.

◆ XML_StartCdataSectionHandler

typedef void(XMLCALL * XML_StartCdataSectionHandler) (void *userData)

Definition at line 275 of file include/expat.h.

◆ XML_StartDoctypeDeclHandler

typedef void(XMLCALL * XML_StartDoctypeDeclHandler) (void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset)

Definition at line 298 of file include/expat.h.

◆ XML_StartElementHandler

typedef void(XMLCALL * XML_StartElementHandler) (void *userData, const XML_Char *name, const XML_Char **atts)

Definition at line 252 of file include/expat.h.

◆ XML_StartNamespaceDeclHandler

typedef void(XMLCALL * XML_StartNamespaceDeclHandler) (void *userData, const XML_Char *prefix, const XML_Char *uri)

Definition at line 378 of file include/expat.h.

◆ XML_UnknownEncodingHandler

typedef int(XMLCALL * XML_UnknownEncodingHandler) (void *encodingHandlerData, const XML_Char *name, XML_Encoding *info)

Definition at line 528 of file include/expat.h.

◆ XML_UnparsedEntityDeclHandler

typedef 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)

Definition at line 353 of file include/expat.h.

◆ XML_XmlDeclHandler

typedef void(XMLCALL * XML_XmlDeclHandler) (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone)

Definition at line 186 of file include/expat.h.

Enumeration Type Documentation

◆ XML_Content_Quant

Enumerator
XML_CQUANT_NONE 
XML_CQUANT_OPT 
XML_CQUANT_REP 
XML_CQUANT_PLUS 
XML_CQUANT_NONE 
XML_CQUANT_OPT 
XML_CQUANT_REP 
XML_CQUANT_PLUS 

Definition at line 110 of file include/expat.h.

110 {
115};
@ XML_CQUANT_PLUS
@ XML_CQUANT_OPT
@ XML_CQUANT_NONE
@ XML_CQUANT_REP

◆ XML_Content_Type

Enumerator
XML_CTYPE_EMPTY 
XML_CTYPE_ANY 
XML_CTYPE_MIXED 
XML_CTYPE_NAME 
XML_CTYPE_CHOICE 
XML_CTYPE_SEQ 
XML_CTYPE_EMPTY 
XML_CTYPE_ANY 
XML_CTYPE_MIXED 
XML_CTYPE_NAME 
XML_CTYPE_CHOICE 
XML_CTYPE_SEQ 

Definition at line 101 of file include/expat.h.

101 {
102 XML_CTYPE_EMPTY = 1,
108};
@ XML_CTYPE_ANY
@ XML_CTYPE_SEQ
@ XML_CTYPE_MIXED
@ XML_CTYPE_CHOICE
@ XML_CTYPE_EMPTY
@ XML_CTYPE_NAME

◆ XML_Error

enum XML_Error
Enumerator
XML_ERROR_NONE 
XML_ERROR_NO_MEMORY 
XML_ERROR_SYNTAX 
XML_ERROR_NO_ELEMENTS 
XML_ERROR_INVALID_TOKEN 
XML_ERROR_UNCLOSED_TOKEN 
XML_ERROR_PARTIAL_CHAR 
XML_ERROR_TAG_MISMATCH 
XML_ERROR_DUPLICATE_ATTRIBUTE 
XML_ERROR_JUNK_AFTER_DOC_ELEMENT 
XML_ERROR_PARAM_ENTITY_REF 
XML_ERROR_UNDEFINED_ENTITY 
XML_ERROR_RECURSIVE_ENTITY_REF 
XML_ERROR_ASYNC_ENTITY 
XML_ERROR_BAD_CHAR_REF 
XML_ERROR_BINARY_ENTITY_REF 
XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF 
XML_ERROR_MISPLACED_XML_PI 
XML_ERROR_UNKNOWN_ENCODING 
XML_ERROR_INCORRECT_ENCODING 
XML_ERROR_UNCLOSED_CDATA_SECTION 
XML_ERROR_EXTERNAL_ENTITY_HANDLING 
XML_ERROR_NOT_STANDALONE 
XML_ERROR_UNEXPECTED_STATE 
XML_ERROR_ENTITY_DECLARED_IN_PE 
XML_ERROR_FEATURE_REQUIRES_XML_DTD 
XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING 
XML_ERROR_UNBOUND_PREFIX 
XML_ERROR_UNDECLARING_PREFIX 
XML_ERROR_INCOMPLETE_PE 
XML_ERROR_XML_DECL 
XML_ERROR_TEXT_DECL 
XML_ERROR_PUBLICID 
XML_ERROR_SUSPENDED 
XML_ERROR_NOT_SUSPENDED 
XML_ERROR_ABORTED 
XML_ERROR_FINISHED 
XML_ERROR_SUSPEND_PE 
XML_ERROR_RESERVED_PREFIX_XML 
XML_ERROR_RESERVED_PREFIX_XMLNS 
XML_ERROR_RESERVED_NAMESPACE_URI 
XML_ERROR_NONE 
XML_ERROR_NO_MEMORY 
XML_ERROR_SYNTAX 
XML_ERROR_NO_ELEMENTS 
XML_ERROR_INVALID_TOKEN 
XML_ERROR_UNCLOSED_TOKEN 
XML_ERROR_PARTIAL_CHAR 
XML_ERROR_TAG_MISMATCH 
XML_ERROR_DUPLICATE_ATTRIBUTE 
XML_ERROR_JUNK_AFTER_DOC_ELEMENT 
XML_ERROR_PARAM_ENTITY_REF 
XML_ERROR_UNDEFINED_ENTITY 
XML_ERROR_RECURSIVE_ENTITY_REF 
XML_ERROR_ASYNC_ENTITY 
XML_ERROR_BAD_CHAR_REF 
XML_ERROR_BINARY_ENTITY_REF 
XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF 
XML_ERROR_MISPLACED_XML_PI 
XML_ERROR_UNKNOWN_ENCODING 
XML_ERROR_INCORRECT_ENCODING 
XML_ERROR_UNCLOSED_CDATA_SECTION 
XML_ERROR_EXTERNAL_ENTITY_HANDLING 
XML_ERROR_NOT_STANDALONE 
XML_ERROR_UNEXPECTED_STATE 
XML_ERROR_ENTITY_DECLARED_IN_PE 
XML_ERROR_FEATURE_REQUIRES_XML_DTD 
XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING 
XML_ERROR_UNBOUND_PREFIX 
XML_ERROR_UNDECLARING_PREFIX 
XML_ERROR_INCOMPLETE_PE 
XML_ERROR_XML_DECL 
XML_ERROR_TEXT_DECL 
XML_ERROR_PUBLICID 
XML_ERROR_SUSPENDED 
XML_ERROR_NOT_SUSPENDED 
XML_ERROR_ABORTED 
XML_ERROR_FINISHED 
XML_ERROR_SUSPEND_PE 
XML_ERROR_RESERVED_PREFIX_XML 
XML_ERROR_RESERVED_PREFIX_XMLNS 
XML_ERROR_RESERVED_NAMESPACE_URI 

Definition at line 54 of file include/expat.h.

54 {
82 /* Added in 1.95.7. */
84 /* Added in 1.95.8. */
95 /* Added in 2.0. */
99};
@ XML_ERROR_UNCLOSED_TOKEN
Definition: include/expat.h:60
@ XML_ERROR_ASYNC_ENTITY
Definition: include/expat.h:68
@ XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF
Definition: include/expat.h:71
@ XML_ERROR_ABORTED
Definition: include/expat.h:92
@ XML_ERROR_XML_DECL
Definition: include/expat.h:87
@ XML_ERROR_NO_ELEMENTS
Definition: include/expat.h:58
@ XML_ERROR_NOT_STANDALONE
Definition: include/expat.h:77
@ XML_ERROR_INCOMPLETE_PE
Definition: include/expat.h:86
@ XML_ERROR_TEXT_DECL
Definition: include/expat.h:88
@ XML_ERROR_RECURSIVE_ENTITY_REF
Definition: include/expat.h:67
@ XML_ERROR_PARTIAL_CHAR
Definition: include/expat.h:61
@ XML_ERROR_SUSPENDED
Definition: include/expat.h:90
@ XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING
Definition: include/expat.h:81
@ XML_ERROR_ENTITY_DECLARED_IN_PE
Definition: include/expat.h:79
@ XML_ERROR_DUPLICATE_ATTRIBUTE
Definition: include/expat.h:63
@ XML_ERROR_EXTERNAL_ENTITY_HANDLING
Definition: include/expat.h:76
@ XML_ERROR_INCORRECT_ENCODING
Definition: include/expat.h:74
@ XML_ERROR_NO_MEMORY
Definition: include/expat.h:56
@ XML_ERROR_MISPLACED_XML_PI
Definition: include/expat.h:72
@ XML_ERROR_NONE
Definition: include/expat.h:55
@ XML_ERROR_PARAM_ENTITY_REF
Definition: include/expat.h:65
@ XML_ERROR_FEATURE_REQUIRES_XML_DTD
Definition: include/expat.h:80
@ XML_ERROR_RESERVED_PREFIX_XML
Definition: include/expat.h:96
@ XML_ERROR_UNEXPECTED_STATE
Definition: include/expat.h:78
@ XML_ERROR_TAG_MISMATCH
Definition: include/expat.h:62
@ XML_ERROR_FINISHED
Definition: include/expat.h:93
@ XML_ERROR_JUNK_AFTER_DOC_ELEMENT
Definition: include/expat.h:64
@ XML_ERROR_NOT_SUSPENDED
Definition: include/expat.h:91
@ XML_ERROR_UNCLOSED_CDATA_SECTION
Definition: include/expat.h:75
@ XML_ERROR_RESERVED_NAMESPACE_URI
Definition: include/expat.h:98
@ XML_ERROR_BAD_CHAR_REF
Definition: include/expat.h:69
@ XML_ERROR_UNDEFINED_ENTITY
Definition: include/expat.h:66
@ XML_ERROR_UNBOUND_PREFIX
Definition: include/expat.h:83
@ XML_ERROR_PUBLICID
Definition: include/expat.h:89
@ XML_ERROR_UNDECLARING_PREFIX
Definition: include/expat.h:85
@ XML_ERROR_INVALID_TOKEN
Definition: include/expat.h:59
@ XML_ERROR_BINARY_ENTITY_REF
Definition: include/expat.h:70
@ XML_ERROR_UNKNOWN_ENCODING
Definition: include/expat.h:73
@ XML_ERROR_SUSPEND_PE
Definition: include/expat.h:94
@ XML_ERROR_SYNTAX
Definition: include/expat.h:57
@ XML_ERROR_RESERVED_PREFIX_XMLNS
Definition: include/expat.h:97

◆ XML_FeatureEnum

Enumerator
XML_FEATURE_END 
XML_FEATURE_UNICODE 
XML_FEATURE_UNICODE_WCHAR_T 
XML_FEATURE_DTD 
XML_FEATURE_CONTEXT_BYTES 
XML_FEATURE_MIN_SIZE 
XML_FEATURE_SIZEOF_XML_CHAR 
XML_FEATURE_SIZEOF_XML_LCHAR 
XML_FEATURE_NS 
XML_FEATURE_LARGE_SIZE 
XML_FEATURE_END 
XML_FEATURE_UNICODE 
XML_FEATURE_UNICODE_WCHAR_T 
XML_FEATURE_DTD 
XML_FEATURE_CONTEXT_BYTES 
XML_FEATURE_MIN_SIZE 
XML_FEATURE_SIZEOF_XML_CHAR 
XML_FEATURE_SIZEOF_XML_LCHAR 
XML_FEATURE_NS 
XML_FEATURE_LARGE_SIZE 

Definition at line 977 of file include/expat.h.

977 {
978 XML_FEATURE_END = 0,
988 /* Additional features must be added to the end of this enum. */
989};
@ XML_FEATURE_DTD
@ XML_FEATURE_SIZEOF_XML_LCHAR
@ XML_FEATURE_NS
@ XML_FEATURE_UNICODE
@ XML_FEATURE_SIZEOF_XML_CHAR
@ XML_FEATURE_MIN_SIZE
@ XML_FEATURE_END
@ XML_FEATURE_UNICODE_WCHAR_T
@ XML_FEATURE_CONTEXT_BYTES
@ XML_FEATURE_LARGE_SIZE

◆ XML_ParamEntityParsing

Enumerator
XML_PARAM_ENTITY_PARSING_NEVER 
XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE 
XML_PARAM_ENTITY_PARSING_ALWAYS 
XML_PARAM_ENTITY_PARSING_NEVER 
XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE 
XML_PARAM_ENTITY_PARSING_ALWAYS 

Definition at line 853 of file include/expat.h.

853 {
857};
@ XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE
@ XML_PARAM_ENTITY_PARSING_ALWAYS
@ XML_PARAM_ENTITY_PARSING_NEVER

◆ XML_Parsing

Enumerator
XML_INITIALIZED 
XML_PARSING 
XML_FINISHED 
XML_SUSPENDED 
XML_INITIALIZED 
XML_PARSING 
XML_FINISHED 
XML_SUSPENDED 

Definition at line 812 of file include/expat.h.

812 {
817};
@ XML_PARSING
@ XML_SUSPENDED
@ XML_FINISHED
@ XML_INITIALIZED

◆ XML_Status

enum XML_Status
Enumerator
XML_STATUS_ERROR 
XML_STATUS_ERROR 
XML_STATUS_OK 
XML_STATUS_OK 
XML_STATUS_SUSPENDED 
XML_STATUS_ERROR 
XML_STATUS_ERROR 
XML_STATUS_OK 
XML_STATUS_OK 
XML_STATUS_SUSPENDED 

Definition at line 45 of file include/expat.h.

45 {
47#define XML_STATUS_ERROR XML_STATUS_ERROR
48 XML_STATUS_OK = 1,
49#define XML_STATUS_OK XML_STATUS_OK
51#define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
52};
#define XML_STATUS_ERROR
Definition: include/expat.h:47
#define XML_STATUS_SUSPENDED
#define XML_STATUS_OK
Definition: include/expat.h:49

Function Documentation

◆ XML_DefaultCurrent()

XML_DefaultCurrent ( XML_Parser  parser)

Definition at line 1834 of file xmlparse.cc.

1835{
1836 if (defaultHandler) {
1838 reportDefault(parser,
1840 openInternalEntities->internalEventPtr,
1841 openInternalEntities->internalEventEndPtr);
1842 else
1843 reportDefault(parser, encoding, eventPtr, eventEndPtr);
1844 }
1845}
#define eventPtr
Definition: xmlparse.cc:602
#define internalEncoding
Definition: xmlparse.cc:590
#define openInternalEntities
Definition: xmlparse.cc:606
#define defaultHandler
Definition: xmlparse.cc:566
#define eventEndPtr
Definition: xmlparse.cc:603

◆ XML_ErrorString()

XML_ErrorString ( enum XML_Error  code)

Definition at line 1848 of file xmlparse.cc.

1849{
1850 static const XML_LChar* const message[] = {
1851 0,
1852 XML_L("out of memory"),
1853 XML_L("syntax error"),
1854 XML_L("no element found"),
1855 XML_L("not well-formed (invalid token)"),
1856 XML_L("unclosed token"),
1857 XML_L("partial character"),
1858 XML_L("mismatched tag"),
1859 XML_L("duplicate attribute"),
1860 XML_L("junk after document element"),
1861 XML_L("illegal parameter entity reference"),
1862 XML_L("undefined entity"),
1863 XML_L("recursive entity reference"),
1864 XML_L("asynchronous entity"),
1865 XML_L("reference to invalid character number"),
1866 XML_L("reference to binary entity"),
1867 XML_L("reference to external entity in attribute"),
1868 XML_L("XML or text declaration not at start of entity"),
1869 XML_L("unknown encoding"),
1870 XML_L("encoding specified in XML declaration is incorrect"),
1871 XML_L("unclosed CDATA section"),
1872 XML_L("error in processing external entity reference"),
1873 XML_L("document is not standalone"),
1874 XML_L("unexpected parser state - please send a bug report"),
1875 XML_L("entity declared in parameter entity"),
1876 XML_L("requested feature requires XML_DTD support in Expat"),
1877 XML_L("cannot change setting once parsing has begun"),
1878 XML_L("unbound prefix"),
1879 XML_L("must not undeclare prefix"),
1880 XML_L("incomplete markup in parameter entity"),
1881 XML_L("XML declaration not well-formed"),
1882 XML_L("text declaration not well-formed"),
1883 XML_L("illegal character(s) in public id"),
1884 XML_L("parser suspended"),
1885 XML_L("parser not suspended"),
1886 XML_L("parsing aborted"),
1887 XML_L("parsing finished"),
1888 XML_L("cannot suspend in external parameter entity"),
1889 XML_L("reserved prefix (xml) must not be undeclared or bound to another namespace name"),
1890 XML_L("reserved prefix (xmlns) must not be declared or undeclared"),
1891 XML_L("prefix must not be bound to one of the reserved namespace names")
1892 };
1893 if (code > 0 && unsigned(code) < sizeof(message)/sizeof(message[0]))
1894 return message[code];
1895 return NULL;
1896}
char XML_LChar
#define XML_L(x)
Definition: xmlparse.cc:69

Referenced by xData_parseEndOfXML().

◆ XML_ExpatVersion()

XML_ExpatVersion ( void  )

Definition at line 1899 of file xmlparse.cc.

1899 {
1900
1901 /* V1 is used to string-ize the version number. However, it would
1902 string-ize the actual version macro *names* unless we get them
1903 substituted before being passed to V1. CPP is defined to expand
1904 a macro, then rescan for more expansions. Thus, we use V2 to expand
1905 the version macros, then CPP will expand the resulting V1() macro
1906 with the correct numerals. */
1907 /* ### I'm assuming cpp is portable in this respect... */
1908
1909#define V1(a,b,c) XML_L(#a)XML_L(".")XML_L(#b)XML_L(".")XML_L(#c)
1910#define V2(a,b,c) XML_L("expat_")V1(a,b,c)
1911
1913
1914#undef V1
1915#undef V2
1916}
#define XML_MAJOR_VERSION
#define XML_MINOR_VERSION
#define XML_MICRO_VERSION
#define V2(a, b, c)

◆ XML_ExpatVersionInfo()

XML_ExpatVersionInfo ( void  )

Definition at line 1919 of file xmlparse.cc.

1920{
1921 XML_Expat_Version version;
1922
1923 version.major = XML_MAJOR_VERSION;
1924 version.minor = XML_MINOR_VERSION;
1925 version.micro = XML_MICRO_VERSION;
1926
1927 return version;
1928}

◆ XML_ExternalEntityParserCreate()

XML_ExternalEntityParserCreate ( XML_Parser  parser,
const XML_Char context,
const XML_Char encoding 
)

Definition at line 939 of file xmlparse.cc.

942{
943 XML_Parser parser = oldParser;
944 DTD *newDtd = NULL;
945 DTD *oldDtd = _dtd;
946 XML_StartElementHandler oldStartElementHandler = startElementHandler;
947 XML_EndElementHandler oldEndElementHandler = endElementHandler;
948 XML_CharacterDataHandler oldCharacterDataHandler = characterDataHandler;
949 XML_ProcessingInstructionHandler oldProcessingInstructionHandler
951 XML_CommentHandler oldCommentHandler = commentHandler;
952 XML_StartCdataSectionHandler oldStartCdataSectionHandler
954 XML_EndCdataSectionHandler oldEndCdataSectionHandler
956 XML_DefaultHandler oldDefaultHandler = defaultHandler;
957 XML_UnparsedEntityDeclHandler oldUnparsedEntityDeclHandler
959 XML_NotationDeclHandler oldNotationDeclHandler = notationDeclHandler;
960 XML_StartNamespaceDeclHandler oldStartNamespaceDeclHandler
962 XML_EndNamespaceDeclHandler oldEndNamespaceDeclHandler
964 XML_NotStandaloneHandler oldNotStandaloneHandler = notStandaloneHandler;
965 XML_ExternalEntityRefHandler oldExternalEntityRefHandler
967 XML_SkippedEntityHandler oldSkippedEntityHandler = skippedEntityHandler;
968 XML_UnknownEncodingHandler oldUnknownEncodingHandler
970 XML_ElementDeclHandler oldElementDeclHandler = elementDeclHandler;
971 XML_AttlistDeclHandler oldAttlistDeclHandler = attlistDeclHandler;
972 XML_EntityDeclHandler oldEntityDeclHandler = entityDeclHandler;
973 XML_XmlDeclHandler oldXmlDeclHandler = xmlDeclHandler;
974 ELEMENT_TYPE * oldDeclElementType = declElementType;
975
976 void *oldUserData = userData;
977 void *oldHandlerArg = handlerArg;
978 XML_Bool oldDefaultExpandInternalEntities = defaultExpandInternalEntities;
979 XML_Parser oldExternalEntityRefHandlerArg = externalEntityRefHandlerArg;
980#ifdef XML_DTD
981 enum XML_ParamEntityParsing oldParamEntityParsing = paramEntityParsing;
982 int oldInEntityValue = prologState.inEntityValue;
983#endif
984 XML_Bool oldns_triplets = ns_triplets;
985
986#ifdef XML_DTD
987 if (!context)
988 newDtd = oldDtd;
989#endif /* XML_DTD */
990
991 /* Note that the magical uses of the pre-processor to make field
992 access look more like C++ require that `parser' be overwritten
993 here. This makes this function more painful to follow than it
994 would be otherwise.
995 */
996 if (ns) {
997 XML_Char tmp[2];
998 *tmp = namespaceSeparator;
999 parser = parserCreate(encodingName, &parser->m_mem, tmp, newDtd);
1000 }
1001 else {
1002 parser = parserCreate(encodingName, &parser->m_mem, NULL, newDtd);
1003 }
1004
1005 if (!parser)
1006 return NULL;
1007
1008 startElementHandler = oldStartElementHandler;
1009 endElementHandler = oldEndElementHandler;
1010 characterDataHandler = oldCharacterDataHandler;
1011 processingInstructionHandler = oldProcessingInstructionHandler;
1012 commentHandler = oldCommentHandler;
1013 startCdataSectionHandler = oldStartCdataSectionHandler;
1014 endCdataSectionHandler = oldEndCdataSectionHandler;
1015 defaultHandler = oldDefaultHandler;
1016 unparsedEntityDeclHandler = oldUnparsedEntityDeclHandler;
1017 notationDeclHandler = oldNotationDeclHandler;
1018 startNamespaceDeclHandler = oldStartNamespaceDeclHandler;
1019 endNamespaceDeclHandler = oldEndNamespaceDeclHandler;
1020 notStandaloneHandler = oldNotStandaloneHandler;
1021 externalEntityRefHandler = oldExternalEntityRefHandler;
1022 skippedEntityHandler = oldSkippedEntityHandler;
1023 unknownEncodingHandler = oldUnknownEncodingHandler;
1024 elementDeclHandler = oldElementDeclHandler;
1025 attlistDeclHandler = oldAttlistDeclHandler;
1026 entityDeclHandler = oldEntityDeclHandler;
1027 xmlDeclHandler = oldXmlDeclHandler;
1028 declElementType = oldDeclElementType;
1029 userData = oldUserData;
1030 if (oldUserData == oldHandlerArg)
1032 else
1033 handlerArg = parser;
1034 if (oldExternalEntityRefHandlerArg != oldParser)
1035 externalEntityRefHandlerArg = oldExternalEntityRefHandlerArg;
1036 defaultExpandInternalEntities = oldDefaultExpandInternalEntities;
1037 ns_triplets = oldns_triplets;
1038 parentParser = oldParser;
1039#ifdef XML_DTD
1040 paramEntityParsing = oldParamEntityParsing;
1041 prologState.inEntityValue = oldInEntityValue;
1042 if (context) {
1043#endif /* XML_DTD */
1044 if (!dtdCopy(_dtd, oldDtd, &parser->m_mem)
1045 || !setContext(parser, context)) {
1046 XML_ParserFree(parser);
1047 return NULL;
1048 }
1049 processor = externalEntityInitProcessor;
1050#ifdef XML_DTD
1051 }
1052 else {
1053 /* The DTD instance referenced by _dtd is shared between the document's
1054 root parser and external PE parsers, therefore one does not need to
1055 call setContext. In addition, one also *must* not call setContext,
1056 because this would overwrite existing prefix->binding pointers in
1057 _dtd with ones that get destroyed with the external PE parser.
1058 This would leave those prefixes with dangling pointers.
1059 */
1060 isParamEntity = XML_TRUE;
1061 XmlPrologStateInitExternalEntity(&prologState);
1062 processor = externalParEntInitProcessor;
1063 }
1064#endif /* XML_DTD */
1065 return parser;
1066}
char XML_Char
void(XMLCALL * XML_CommentHandler)(void *userData, const XML_Char *data)
void(XMLCALL * XML_EndElementHandler)(void *userData, const XML_Char *name)
void(XMLCALL * XML_EndNamespaceDeclHandler)(void *userData, const XML_Char *prefix)
void(XMLCALL * XML_SkippedEntityHandler)(void *userData, const XML_Char *entityName, int is_parameter_entity)
int(XMLCALL * XML_ExternalEntityRefHandler)(XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId)
void(XMLCALL * XML_EndCdataSectionHandler)(void *userData)
int(XMLCALL * XML_UnknownEncodingHandler)(void *encodingHandlerData, const XML_Char *name, XML_Encoding *info)
void(XMLCALL * XML_StartElementHandler)(void *userData, const XML_Char *name, const XML_Char **atts)
void(XMLCALL * XML_ProcessingInstructionHandler)(void *userData, const XML_Char *target, const XML_Char *data)
void(XMLCALL * XML_StartNamespaceDeclHandler)(void *userData, const XML_Char *prefix, const XML_Char *uri)
unsigned char XML_Bool
Definition: include/expat.h:28
void(XMLCALL * XML_XmlDeclHandler)(void *userData, const XML_Char *version, const XML_Char *encoding, int standalone)
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_ParamEntityParsing
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)
#define XML_TRUE
Definition: include/expat.h:29
void(XMLCALL * XML_CharacterDataHandler)(void *userData, const XML_Char *s, int len)
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)
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)
void(XMLCALL * XML_ElementDeclHandler)(void *userData, const XML_Char *name, XML_Content *model)
Definition: xmlparse.cc:260
const XML_Memory_Handling_Suite m_mem
Definition: xmlparse.cc:458
#define externalEntityRefHandlerArg
Definition: xmlparse.cc:578
#define defaultExpandInternalEntities
Definition: xmlparse.cc:608
#define endCdataSectionHandler
Definition: xmlparse.cc:565
#define processingInstructionHandler
Definition: xmlparse.cc:560
#define skippedEntityHandler
Definition: xmlparse.cc:582
#define elementDeclHandler
Definition: xmlparse.cc:584
#define declElementType
Definition: xmlparse.cc:628
#define notationDeclHandler
Definition: xmlparse.cc:571
#define unknownEncodingHandler
Definition: xmlparse.cc:583
#define commentHandler
Definition: xmlparse.cc:562
#define userData
Definition: xmlparse.cc:555
#define xmlDeclHandler
Definition: xmlparse.cc:587
#define startCdataSectionHandler
Definition: xmlparse.cc:563
#define externalEntityRefHandler
Definition: xmlparse.cc:576
#define endElementHandler
Definition: xmlparse.cc:558
#define ns_triplets
Definition: xmlparse.cc:598
#define namespaceSeparator
Definition: xmlparse.cc:647
#define startNamespaceDeclHandler
Definition: xmlparse.cc:572
#define startElementHandler
Definition: xmlparse.cc:557
#define parentParser
Definition: xmlparse.cc:648
#define handlerArg
Definition: xmlparse.cc:556
#define entityDeclHandler
Definition: xmlparse.cc:586
#define notStandaloneHandler
Definition: xmlparse.cc:575
#define attlistDeclHandler
Definition: xmlparse.cc:585
#define ns
Definition: xmlparse.cc:597
#define _dtd
Definition: xmlparse.cc:619
#define endNamespaceDeclHandler
Definition: xmlparse.cc:574
#define unparsedEntityDeclHandler
Definition: xmlparse.cc:569
#define processor
Definition: xmlparse.cc:600
#define characterDataHandler
Definition: xmlparse.cc:559
#define prologState
Definition: xmlparse.cc:599
void XMLCALL XML_ParserFree(XML_Parser parser)
Definition: xmlparse.cc:1082

◆ XML_FreeContentModel()

XML_FreeContentModel ( XML_Parser  parser,
XML_Content model 
)

Definition at line 1810 of file xmlparse.cc.

1811{
1812 FREE(model);
1813}
#define FREE(p)
Definition: xmlparse.cc:553

◆ XML_GetBase()

XML_GetBase ( XML_Parser  parser)

Definition at line 1196 of file xmlparse.cc.

1197{
1198 return curBase;
1199}
#define curBase
Definition: xmlparse.cc:620

◆ XML_GetBuffer()

XML_GetBuffer ( XML_Parser  parser,
int  len 
)

Definition at line 1601 of file xmlparse.cc.

1602{
1603 switch (ps_parsing) {
1604 case XML_SUSPENDED:
1606 return NULL;
1607 case XML_FINISHED:
1609 return NULL;
1610 default: ;
1611 }
1612
1613 if (len > bufferLim - bufferEnd) {
1614 /* FIXME avoid integer overflow */
1615 int neededSize = len + (int)(bufferEnd - bufferPtr);
1616#ifdef XML_CONTEXT_BYTES
1617 int keep = (int)(bufferPtr - buffer);
1618
1619 if (keep > XML_CONTEXT_BYTES)
1620 keep = XML_CONTEXT_BYTES;
1621 neededSize += keep;
1622#endif /* defined XML_CONTEXT_BYTES */
1623 if (neededSize <= bufferLim - buffer) {
1624#ifdef XML_CONTEXT_BYTES
1625 if (keep < bufferPtr - buffer) {
1626 int offset = (int)(bufferPtr - buffer) - keep;
1627 memmove(buffer, &buffer[offset], bufferEnd - bufferPtr + keep);
1628 bufferEnd -= offset;
1629 bufferPtr -= offset;
1630 }
1631#else
1632 memmove(buffer, bufferPtr, bufferEnd - bufferPtr);
1634 bufferPtr = buffer;
1635#endif /* not defined XML_CONTEXT_BYTES */
1636 }
1637 else {
1638 char *newBuf;
1639 int bufferSize = (int)(bufferLim - bufferPtr);
1640 if (bufferSize == 0)
1641 bufferSize = INIT_BUFFER_SIZE;
1642 do {
1643 bufferSize *= 2;
1644 } while (bufferSize < neededSize);
1645 newBuf = (char *)MALLOC(bufferSize);
1646 if (newBuf == 0) {
1648 return NULL;
1649 }
1650 bufferLim = newBuf + bufferSize;
1651#ifdef XML_CONTEXT_BYTES
1652 if (bufferPtr) {
1653 int keep = (int)(bufferPtr - buffer);
1654 if (keep > XML_CONTEXT_BYTES)
1655 keep = XML_CONTEXT_BYTES;
1656 memcpy(newBuf, &bufferPtr[-keep], bufferEnd - bufferPtr + keep);
1657 FREE(buffer);
1658 buffer = newBuf;
1659 bufferEnd = buffer + (bufferEnd - bufferPtr) + keep;
1660 bufferPtr = buffer + keep;
1661 }
1662 else {
1663 bufferEnd = newBuf + (bufferEnd - bufferPtr);
1664 bufferPtr = buffer = newBuf;
1665 }
1666#else
1667 if (bufferPtr) {
1668 memcpy(newBuf, bufferPtr, bufferEnd - bufferPtr);
1669 FREE(buffer);
1670 }
1671 bufferEnd = newBuf + (bufferEnd - bufferPtr);
1672 bufferPtr = buffer = newBuf;
1673#endif /* not defined XML_CONTEXT_BYTES */
1674 }
1675 }
1676 return bufferEnd;
1677}
#define XML_CONTEXT_BYTES
Definition: amigaconfig.h:24
#define INIT_BUFFER_SIZE
Definition: xmlparse.cc:138
#define bufferEnd
Definition: xmlparse.cc:613
#define bufferLim
Definition: xmlparse.cc:616
#define ps_parsing
Definition: xmlparse.cc:649
#define buffer
Definition: xmlparse.cc:611
#define MALLOC(s)
Definition: xmlparse.cc:551
#define errorCode
Definition: xmlparse.cc:601
#define bufferPtr
Definition: xmlparse.cc:612

◆ XML_GetCurrentByteCount()

XML_GetCurrentByteCount ( XML_Parser  parser)

Definition at line 1769 of file xmlparse.cc.

1770{
1771 if (eventEndPtr && eventPtr)
1772 return (int)(eventEndPtr - eventPtr);
1773 return 0;
1774}

◆ XML_GetErrorCode()

XML_GetErrorCode ( XML_Parser  parser)

Definition at line 1755 of file xmlparse.cc.

1756{
1757 return errorCode;
1758}

Referenced by xData_parseEndOfXML().

◆ XML_GetFeatureList()

XML_GetFeatureList ( void  )

Definition at line 1931 of file xmlparse.cc.

1932{
1933 static const XML_Feature features[] = {
1934 {XML_FEATURE_SIZEOF_XML_CHAR, XML_L("sizeof(XML_Char)"),
1935 sizeof(XML_Char)},
1936 {XML_FEATURE_SIZEOF_XML_LCHAR, XML_L("sizeof(XML_LChar)"),
1937 sizeof(XML_LChar)},
1938#ifdef XML_UNICODE
1939 {XML_FEATURE_UNICODE, XML_L("XML_UNICODE"), 0},
1940#endif
1941#ifdef XML_UNICODE_WCHAR_T
1942 {XML_FEATURE_UNICODE_WCHAR_T, XML_L("XML_UNICODE_WCHAR_T"), 0},
1943#endif
1944#ifdef XML_DTD
1945 {XML_FEATURE_DTD, XML_L("XML_DTD"), 0},
1946#endif
1947#ifdef XML_CONTEXT_BYTES
1948 {XML_FEATURE_CONTEXT_BYTES, XML_L("XML_CONTEXT_BYTES"),
1950#endif
1951#ifdef XML_MIN_SIZE
1952 {XML_FEATURE_MIN_SIZE, XML_L("XML_MIN_SIZE"), 0},
1953#endif
1954#ifdef XML_NS
1955 {XML_FEATURE_NS, XML_L("XML_NS"), 0},
1956#endif
1957#ifdef XML_LARGE_SIZE
1958 {XML_FEATURE_LARGE_SIZE, XML_L("XML_LARGE_SIZE"), 0},
1959#endif
1960 {XML_FEATURE_END, NULL, 0}
1961 };
1962
1963 return features;
1964}
#define XML_Char
Definition: xData.h:57

◆ XML_GetIdAttributeIndex()

XML_GetIdAttributeIndex ( XML_Parser  parser)

Definition at line 1208 of file xmlparse.cc.

1209{
1210 return idAttIndex;
1211}
#define idAttIndex
Definition: xmlparse.cc:639

◆ XML_GetInputContext()

XML_GetInputContext ( XML_Parser  parser,
int *  offset,
int *  size 
)

Definition at line 1777 of file xmlparse.cc.

1778{
1779#ifdef XML_CONTEXT_BYTES
1780 if (eventPtr && buffer) {
1781 *offset = (int)(eventPtr - buffer);
1782 *size = (int)(bufferEnd - buffer);
1783 return buffer;
1784 }
1785#endif /* defined XML_CONTEXT_BYTES */
1786 return (char *) 0;
1787}

◆ XML_GetParsingStatus()

XML_GetParsingStatus ( XML_Parser  parser,
XML_ParsingStatus status 
)

Definition at line 1748 of file xmlparse.cc.

1749{
1750 assert(status != NULL);
1751 *status = parser->m_parsingStatus;
1752}
XML_ParsingStatus m_parsingStatus
Definition: xmlparse.cc:543

◆ XML_GetSpecifiedAttributeCount()

XML_GetSpecifiedAttributeCount ( XML_Parser  parser)

Definition at line 1202 of file xmlparse.cc.

1203{
1204 return nSpecifiedAtts;
1205}
#define nSpecifiedAtts
Definition: xmlparse.cc:638

◆ XML_MemFree()

XML_MemFree ( XML_Parser  parser,
void *  ptr 
)

Definition at line 1828 of file xmlparse.cc.

1829{
1830 FREE(ptr);
1831}

◆ XML_MemMalloc()

XML_MemMalloc ( XML_Parser  parser,
size_t  size 
)

Definition at line 1816 of file xmlparse.cc.

1817{
1818 return MALLOC(size);
1819}

◆ XML_MemRealloc()

XML_MemRealloc ( XML_Parser  parser,
void *  ptr,
size_t  size 
)

Definition at line 1822 of file xmlparse.cc.

1823{
1824 return REALLOC(ptr, size);
1825}
#define REALLOC(p, s)
Definition: xmlparse.cc:552

◆ XML_Parse()

XML_Parse ( XML_Parser  parser,
const char *  s,
int  len,
int  isFinal 
)

Definition at line 1430 of file xmlparse.cc.

1431{
1432 switch (ps_parsing) {
1433 case XML_SUSPENDED:
1435 return XML_STATUS_ERROR;
1436 case XML_FINISHED:
1438 return XML_STATUS_ERROR;
1439 default:
1441 }
1442
1443 if (len == 0) {
1444 ps_finalBuffer = (XML_Bool)isFinal;
1445 if (!isFinal)
1446 return XML_STATUS_OK;
1449
1450 /* If data are left over from last buffer, and we now know that these
1451 data are the final chunk of input, then we have to check them again
1452 to detect errors based on that fact.
1453 */
1455
1456 if (errorCode == XML_ERROR_NONE) {
1457 switch (ps_parsing) {
1458 case XML_SUSPENDED:
1461 return XML_STATUS_SUSPENDED;
1462 case XML_INITIALIZED:
1463 case XML_PARSING:
1465 /* fall through */
1466 default:
1467 return XML_STATUS_OK;
1468 }
1469 }
1471 processor = errorProcessor;
1472 return XML_STATUS_ERROR;
1473 }
1474#ifndef XML_CONTEXT_BYTES
1475 else if (bufferPtr == bufferEnd) {
1476 const char *end;
1477 int nLeftOver;
1478 enum XML_Error result;
1479 parseEndByteIndex += len;
1480 positionPtr = s;
1481 ps_finalBuffer = (XML_Bool)isFinal;
1482
1483 errorCode = processor(parser, s, parseEndPtr = s + len, &end);
1484
1485 if (errorCode != XML_ERROR_NONE) {
1487 processor = errorProcessor;
1488 return XML_STATUS_ERROR;
1489 }
1490 else {
1491 switch (ps_parsing) {
1492 case XML_SUSPENDED:
1493 result = XML_STATUS_SUSPENDED;
1494 break;
1495 case XML_INITIALIZED:
1496 case XML_PARSING:
1497 result = XML_STATUS_OK;
1498 if (isFinal) {
1500 return result;
1501 }
1502 }
1503 }
1504
1506 nLeftOver = s + len - end;
1507 if (nLeftOver) {
1508 if (buffer == NULL || nLeftOver > bufferLim - buffer) {
1509 /* FIXME avoid integer overflow */
1510 char *temp;
1511 temp = (buffer == NULL
1512 ? (char *)MALLOC(len * 2)
1513 : (char *)REALLOC(buffer, len * 2));
1514 if (temp == NULL) {
1516 return XML_STATUS_ERROR;
1517 }
1518 buffer = temp;
1519 if (!buffer) {
1521 eventPtr = eventEndPtr = NULL;
1522 processor = errorProcessor;
1523 return XML_STATUS_ERROR;
1524 }
1525 bufferLim = buffer + len * 2;
1526 }
1527 memcpy(buffer, end, nLeftOver);
1528 }
1529 bufferPtr = buffer;
1530 bufferEnd = buffer + nLeftOver;
1535 return result;
1536 }
1537#endif /* not defined XML_CONTEXT_BYTES */
1538 else {
1539 void *buff = XML_GetBuffer(parser, len);
1540 if (buff == NULL)
1541 return XML_STATUS_ERROR;
1542 else {
1543 memcpy(buff, s, len);
1544 return XML_ParseBuffer(parser, len, isFinal);
1545 }
1546 }
1547}
XML_Error
Definition: include/expat.h:54
#define ps_finalBuffer
Definition: xmlparse.cc:650
#define parseEndPtr
Definition: xmlparse.cc:615
void *XMLCALL XML_GetBuffer(XML_Parser parser, int len)
Definition: xmlparse.cc:1601
#define parseEndByteIndex
Definition: xmlparse.cc:614
#define positionPtr
Definition: xmlparse.cc:604
enum XML_Status XMLCALL XML_ParseBuffer(XML_Parser parser, int len, int isFinal)
Definition: xmlparse.cc:1550
#define XmlUpdatePosition(enc, ptr, end, pos)
Definition: xmltok.h:247

Referenced by xData_parse(), and xData_parseEndOfXML().

◆ XML_ParseBuffer()

XML_ParseBuffer ( XML_Parser  parser,
int  len,
int  isFinal 
)

Definition at line 1550 of file xmlparse.cc.

1551{
1552 const char *start;
1553 enum XML_Status result = XML_STATUS_OK;
1554
1555 switch (ps_parsing) {
1556 case XML_SUSPENDED:
1558 return XML_STATUS_ERROR;
1559 case XML_FINISHED:
1561 return XML_STATUS_ERROR;
1562 default:
1564 }
1565
1566 start = bufferPtr;
1567 positionPtr = start;
1568 bufferEnd += len;
1570 parseEndByteIndex += len;
1571 ps_finalBuffer = (XML_Bool)isFinal;
1572
1573 errorCode = processor(parser, start, parseEndPtr, &bufferPtr);
1574
1575 if (errorCode != XML_ERROR_NONE) {
1577 processor = errorProcessor;
1578 return XML_STATUS_ERROR;
1579 }
1580 else {
1581 switch (ps_parsing) {
1582 case XML_SUSPENDED:
1583 result = XML_STATUS_SUSPENDED;
1584 break;
1585 case XML_INITIALIZED:
1586 case XML_PARSING:
1587 if (isFinal) {
1589 return result;
1590 }
1591 default: ; /* should not happen */
1592 }
1593 }
1594
1597 return result;
1598}
XML_Status
Definition: include/expat.h:45

◆ XML_ParserCreate()

XML_ParserCreate ( const XML_Char encoding)

Definition at line 658 of file xmlparse.cc.

659{
660 return XML_ParserCreate_MM(encodingName, NULL, NULL);
661}
XML_Parser XMLCALL XML_ParserCreate_MM(const XML_Char *encodingName, const XML_Memory_Handling_Suite *memsuite, const XML_Char *nameSep)
Definition: xmlparse.cc:681

Referenced by xData_parseInitialize().

◆ XML_ParserCreate_MM()

XML_ParserCreate_MM ( const XML_Char encoding,
const XML_Memory_Handling_Suite memsuite,
const XML_Char namespaceSeparator 
)

Definition at line 681 of file xmlparse.cc.

684{
685 XML_Parser parser = parserCreate(encodingName, memsuite, nameSep, NULL);
686 if (parser != NULL && ns) {
687 /* implicit context only set for root parser, since child
688 parsers (i.e. external entity parsers) will inherit it
689 */
690 if (!setContext(parser, implicitContext)) {
691 XML_ParserFree(parser);
692 return NULL;
693 }
694 }
695 return parser;
696}

◆ XML_ParserCreateNS()

XML_ParserCreateNS ( const XML_Char encoding,
XML_Char  namespaceSeparator 
)

Definition at line 664 of file xmlparse.cc.

665{
666 XML_Char tmp[2];
667 *tmp = nsSep;
668 return XML_ParserCreate_MM(encodingName, NULL, tmp);
669}

◆ XML_ParserFree()

XML_ParserFree ( XML_Parser  parser)

Definition at line 1082 of file xmlparse.cc.

1083{
1084 TAG *tagList;
1085 OPEN_INTERNAL_ENTITY *entityList;
1086 if (parser == NULL)
1087 return;
1088 /* free tagStack and freeTagList */
1089 tagList = tagStack;
1090 for (;;) {
1091 TAG *p;
1092 if (tagList == NULL) {
1093 if (freeTagList == NULL)
1094 break;
1095 tagList = freeTagList;
1096 freeTagList = NULL;
1097 }
1098 p = tagList;
1099 tagList = tagList->parent;
1100 FREE(p->buf);
1101 destroyBindings(p->bindings, parser);
1102 FREE(p);
1103 }
1104 /* free openInternalEntities and freeInternalEntities */
1105 entityList = openInternalEntities;
1106 for (;;) {
1107 OPEN_INTERNAL_ENTITY *openEntity;
1108 if (entityList == NULL) {
1109 if (freeInternalEntities == NULL)
1110 break;
1111 entityList = freeInternalEntities;
1112 freeInternalEntities = NULL;
1113 }
1114 openEntity = entityList;
1115 entityList = entityList->next;
1116 FREE(openEntity);
1117 }
1118
1119 destroyBindings(freeBindingList, parser);
1120 destroyBindings(inheritedBindings, parser);
1121 poolDestroy(&tempPool);
1122 poolDestroy(&temp2Pool);
1123#ifdef XML_DTD
1124 /* external parameter entity parsers share the DTD structure
1125 parser->m_dtd with the root parser, so we must not destroy it
1126 */
1127 if (!isParamEntity && _dtd)
1128#else
1129 if (_dtd)
1130#endif /* XML_DTD */
1131 dtdDestroy(_dtd, (XML_Bool)!parentParser, &parser->m_mem);
1132 FREE((void *)atts);
1134 FREE(buffer);
1135 FREE(dataBuf);
1136 FREE(nsAtts);
1140 FREE(parser);
1141}
struct open_internal_entity * next
Definition: xmlparse.cc:292
Definition: xmlparse.cc:179
struct tag * parent
Definition: xmlparse.cc:180
BINDING * bindings
Definition: xmlparse.cc:186
char * buf
Definition: xmlparse.cc:184
#define tagStack
Definition: xmlparse.cc:635
#define dataBuf
Definition: xmlparse.cc:617
#define groupConnector
Definition: xmlparse.cc:645
#define freeBindingList
Definition: xmlparse.cc:633
#define temp2Pool
Definition: xmlparse.cc:644
#define inheritedBindings
Definition: xmlparse.cc:634
#define tempPool
Definition: xmlparse.cc:643
#define nsAtts
Definition: xmlparse.cc:640
#define unknownEncodingRelease
Definition: xmlparse.cc:595
#define unknownEncodingMem
Definition: xmlparse.cc:591
#define atts
Definition: xmlparse.cc:636
#define unknownEncodingData
Definition: xmlparse.cc:592
#define freeInternalEntities
Definition: xmlparse.cc:607
#define freeTagList
Definition: xmlparse.cc:632

Referenced by xData_parseEndOfXML().

◆ XML_ParserReset()

XML_ParserReset ( XML_Parser  parser,
const XML_Char encoding 
)

Definition at line 884 of file xmlparse.cc.

885{
886 TAG *tStk;
887 OPEN_INTERNAL_ENTITY *openEntityList;
888 if (parentParser)
889 return XML_FALSE;
890 /* move tagStack to freeTagList */
891 tStk = tagStack;
892 while (tStk) {
893 TAG *tag = tStk;
894 tStk = tStk->parent;
896 moveToFreeBindingList(parser, tag->bindings);
897 tag->bindings = NULL;
899 }
900 /* move openInternalEntities to freeInternalEntities */
901 openEntityList = openInternalEntities;
902 while (openEntityList) {
903 OPEN_INTERNAL_ENTITY *openEntity = openEntityList;
904 openEntityList = openEntity->next;
905 openEntity->next = freeInternalEntities;
906 freeInternalEntities = openEntity;
907 }
908 moveToFreeBindingList(parser, inheritedBindings);
912 poolClear(&tempPool);
913 poolClear(&temp2Pool);
914 parserInit(parser, encodingName);
915 dtdReset(_dtd, &parser->m_mem);
916 return setContext(parser, implicitContext);
917}
#define XML_FALSE
Definition: include/expat.h:30

◆ XML_ResumeParser()

XML_ResumeParser ( XML_Parser  parser)

Definition at line 1710 of file xmlparse.cc.

1711{
1712 enum XML_Status result = XML_STATUS_OK;
1713
1714 if (ps_parsing != XML_SUSPENDED) {
1716 return XML_STATUS_ERROR;
1717 }
1719
1721
1722 if (errorCode != XML_ERROR_NONE) {
1724 processor = errorProcessor;
1725 return XML_STATUS_ERROR;
1726 }
1727 else {
1728 switch (ps_parsing) {
1729 case XML_SUSPENDED:
1730 result = XML_STATUS_SUSPENDED;
1731 break;
1732 case XML_INITIALIZED:
1733 case XML_PARSING:
1734 if (ps_finalBuffer) {
1736 return result;
1737 }
1738 default: ;
1739 }
1740 }
1741
1744 return result;
1745}

◆ XML_SetAttlistDeclHandler()

XML_SetAttlistDeclHandler ( XML_Parser  parser,
XML_AttlistDeclHandler  attdecl 
)

Definition at line 1395 of file xmlparse.cc.

1397{
1398 attlistDeclHandler = attdecl;
1399}

◆ XML_SetBase()

XML_SetBase ( XML_Parser  parser,
const XML_Char base 
)

Definition at line 1182 of file xmlparse.cc.

1183{
1184 if (p) {
1185 p = poolCopyString(&_dtd->pool, p);
1186 if (!p)
1187 return XML_STATUS_ERROR;
1188 curBase = p;
1189 }
1190 else
1191 curBase = NULL;
1192 return XML_STATUS_OK;
1193}

◆ XML_SetCdataSectionHandler()

XML_SetCdataSectionHandler ( XML_Parser  parser,
XML_StartCdataSectionHandler  start,
XML_EndCdataSectionHandler  end 
)

Definition at line 1256 of file xmlparse.cc.

1259{
1262}

◆ XML_SetCharacterDataHandler()

XML_SetCharacterDataHandler ( XML_Parser  parser,
XML_CharacterDataHandler  handler 
)

Definition at line 1235 of file xmlparse.cc.

1237{
1238 characterDataHandler = handler;
1239}

Referenced by xData_parseInitialize().

◆ XML_SetCommentHandler()

XML_SetCommentHandler ( XML_Parser  parser,
XML_CommentHandler  handler 
)

Definition at line 1249 of file xmlparse.cc.

1251{
1252 commentHandler = handler;
1253}

◆ XML_SetDefaultHandler()

XML_SetDefaultHandler ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1277 of file xmlparse.cc.

1279{
1280 defaultHandler = handler;
1282}

◆ XML_SetDefaultHandlerExpand()

XML_SetDefaultHandlerExpand ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1285 of file xmlparse.cc.

1287{
1288 defaultHandler = handler;
1290}

◆ XML_SetDoctypeDeclHandler()

XML_SetDoctypeDeclHandler ( XML_Parser  parser,
XML_StartDoctypeDeclHandler  start,
XML_EndDoctypeDeclHandler  end 
)

Definition at line 1293 of file xmlparse.cc.

1296{
1299}
#define endDoctypeDeclHandler
Definition: xmlparse.cc:568
#define startDoctypeDeclHandler
Definition: xmlparse.cc:567

◆ XML_SetElementDeclHandler()

XML_SetElementDeclHandler ( XML_Parser  parser,
XML_ElementDeclHandler  eldecl 
)

Definition at line 1388 of file xmlparse.cc.

1390{
1391 elementDeclHandler = eldecl;
1392}

◆ XML_SetElementHandler()

XML_SetElementHandler ( XML_Parser  parser,
XML_StartElementHandler  start,
XML_EndElementHandler  end 
)

Definition at line 1214 of file xmlparse.cc.

1217{
1218 startElementHandler = start;
1219 endElementHandler = end;
1220}

Referenced by xData_parseInitialize().

◆ XML_SetEncoding()

XML_SetEncoding ( XML_Parser  parser,
const XML_Char encoding 
)

Definition at line 920 of file xmlparse.cc.

921{
922 /* Block after XML_Parse()/XML_ParseBuffer() has been called.
923 XXX There's no way for the caller to determine which of the
924 XXX possible error cases caused the XML_STATUS_ERROR return.
925 */
927 return XML_STATUS_ERROR;
928 if (encodingName == NULL)
930 else {
931 protocolEncodingName = poolCopyString(&tempPool, encodingName);
933 return XML_STATUS_ERROR;
934 }
935 return XML_STATUS_OK;
936}
#define protocolEncodingName
Definition: xmlparse.cc:596

◆ XML_SetEndCdataSectionHandler()

XML_SetEndCdataSectionHandler ( XML_Parser  parser,
XML_EndCdataSectionHandler  end 
)

Definition at line 1271 of file xmlparse.cc.

1272 {
1274}

◆ XML_SetEndDoctypeDeclHandler()

XML_SetEndDoctypeDeclHandler ( XML_Parser  parser,
XML_EndDoctypeDeclHandler  end 
)

Definition at line 1308 of file xmlparse.cc.

1309 {
1311}

◆ XML_SetEndElementHandler()

XML_SetEndElementHandler ( XML_Parser  parser,
XML_EndElementHandler  handler 
)

Definition at line 1229 of file xmlparse.cc.

1230 {
1231 endElementHandler = end;
1232}

◆ XML_SetEndNamespaceDeclHandler()

XML_SetEndNamespaceDeclHandler ( XML_Parser  parser,
XML_EndNamespaceDeclHandler  end 
)

Definition at line 1343 of file xmlparse.cc.

1344 {
1346}

◆ XML_SetEntityDeclHandler()

XML_SetEntityDeclHandler ( XML_Parser  parser,
XML_EntityDeclHandler  handler 
)

Definition at line 1402 of file xmlparse.cc.

1404{
1405 entityDeclHandler = handler;
1406}

◆ XML_SetExternalEntityRefHandler()

XML_SetExternalEntityRefHandler ( XML_Parser  parser,
XML_ExternalEntityRefHandler  handler 
)

Definition at line 1356 of file xmlparse.cc.

1358{
1359 externalEntityRefHandler = handler;
1360}

◆ XML_SetExternalEntityRefHandlerArg()

XML_SetExternalEntityRefHandlerArg ( XML_Parser  parser,
void *  arg 
)

Definition at line 1363 of file xmlparse.cc.

1364{
1365 if (arg)
1367 else
1369}
struct XML_ParserStruct * XML_Parser
Definition: include/expat.h:25

◆ XML_SetNamespaceDeclHandler()

XML_SetNamespaceDeclHandler ( XML_Parser  parser,
XML_StartNamespaceDeclHandler  start,
XML_EndNamespaceDeclHandler  end 
)

Definition at line 1328 of file xmlparse.cc.

1331{
1334}

◆ XML_SetNotationDeclHandler()

XML_SetNotationDeclHandler ( XML_Parser  parser,
XML_NotationDeclHandler  handler 
)

Definition at line 1321 of file xmlparse.cc.

1323{
1324 notationDeclHandler = handler;
1325}

◆ XML_SetNotStandaloneHandler()

XML_SetNotStandaloneHandler ( XML_Parser  parser,
XML_NotStandaloneHandler  handler 
)

Definition at line 1349 of file xmlparse.cc.

1351{
1352 notStandaloneHandler = handler;
1353}

◆ XML_SetParamEntityParsing()

XML_SetParamEntityParsing ( XML_Parser  parser,
enum XML_ParamEntityParsing  parsing 
)

Definition at line 1415 of file xmlparse.cc.

1417{
1418 /* block after XML_Parse()/XML_ParseBuffer() has been called */
1420 return 0;
1421#ifdef XML_DTD
1422 paramEntityParsing = peParsing;
1423 return 1;
1424#else
1425 return peParsing == XML_PARAM_ENTITY_PARSING_NEVER;
1426#endif
1427}

◆ XML_SetProcessingInstructionHandler()

XML_SetProcessingInstructionHandler ( XML_Parser  parser,
XML_ProcessingInstructionHandler  handler 
)

Definition at line 1242 of file xmlparse.cc.

1244{
1246}

◆ XML_SetReturnNSTriplet()

XML_SetReturnNSTriplet ( XML_Parser  parser,
int  do_nst 
)

Definition at line 1164 of file xmlparse.cc.

1165{
1166 /* block after XML_Parse()/XML_ParseBuffer() has been called */
1168 return;
1169 ns_triplets = do_nst ? XML_TRUE : XML_FALSE;
1170}

◆ XML_SetSkippedEntityHandler()

XML_SetSkippedEntityHandler ( XML_Parser  parser,
XML_SkippedEntityHandler  handler 
)

Definition at line 1372 of file xmlparse.cc.

1374{
1375 skippedEntityHandler = handler;
1376}

◆ XML_SetStartCdataSectionHandler()

XML_SetStartCdataSectionHandler ( XML_Parser  parser,
XML_StartCdataSectionHandler  start 
)

Definition at line 1265 of file xmlparse.cc.

1266 {
1268}

◆ XML_SetStartDoctypeDeclHandler()

XML_SetStartDoctypeDeclHandler ( XML_Parser  parser,
XML_StartDoctypeDeclHandler  start 
)

Definition at line 1302 of file xmlparse.cc.

1303 {
1305}

◆ XML_SetStartElementHandler()

XML_SetStartElementHandler ( XML_Parser  parser,
XML_StartElementHandler  handler 
)

Definition at line 1223 of file xmlparse.cc.

1224 {
1225 startElementHandler = start;
1226}

◆ XML_SetStartNamespaceDeclHandler()

XML_SetStartNamespaceDeclHandler ( XML_Parser  parser,
XML_StartNamespaceDeclHandler  start 
)

Definition at line 1337 of file xmlparse.cc.

1338 {
1340}

◆ XML_SetUnknownEncodingHandler()

XML_SetUnknownEncodingHandler ( XML_Parser  parser,
XML_UnknownEncodingHandler  handler,
void *  encodingHandlerData 
)

Definition at line 1379 of file xmlparse.cc.

1382{
1383 unknownEncodingHandler = handler;
1385}
#define unknownEncodingHandlerData
Definition: xmlparse.cc:593

◆ XML_SetUnparsedEntityDeclHandler()

XML_SetUnparsedEntityDeclHandler ( XML_Parser  parser,
XML_UnparsedEntityDeclHandler  handler 
)

Definition at line 1314 of file xmlparse.cc.

1316{
1317 unparsedEntityDeclHandler = handler;
1318}

◆ XML_SetUserData()

XML_SetUserData ( XML_Parser  parser,
void *  userData 
)

Definition at line 1173 of file xmlparse.cc.

1174{
1175 if (handlerArg == userData)
1176 handlerArg = userData = p;
1177 else
1178 userData = p;
1179}

Referenced by xData_parseInitialize().

◆ XML_SetXmlDeclHandler()

XML_SetXmlDeclHandler ( XML_Parser  parser,
XML_XmlDeclHandler  xmldecl 
)

Definition at line 1409 of file xmlparse.cc.

1410 {
1411 xmlDeclHandler = handler;
1412}

◆ XML_StopParser()

XML_StopParser ( XML_Parser  parser,
XML_Bool  resumable 
)

Definition at line 1680 of file xmlparse.cc.

1681{
1682 switch (ps_parsing) {
1683 case XML_SUSPENDED:
1684 if (resumable) {
1686 return XML_STATUS_ERROR;
1687 }
1689 break;
1690 case XML_FINISHED:
1692 return XML_STATUS_ERROR;
1693 default:
1694 if (resumable) {
1695#ifdef XML_DTD
1696 if (isParamEntity) {
1698 return XML_STATUS_ERROR;
1699 }
1700#endif
1702 }
1703 else
1705 }
1706 return XML_STATUS_OK;
1707}

◆ XML_UseForeignDTD()

XML_UseForeignDTD ( XML_Parser  parser,
XML_Bool  useDTD 
)

Definition at line 1150 of file xmlparse.cc.

1151{
1152#ifdef XML_DTD
1153 /* block after XML_Parse()/XML_ParseBuffer() has been called */
1156 useForeignDTD = useDTD;
1157 return XML_ERROR_NONE;
1158#else
1160#endif
1161}

◆ XML_UseParserAsHandlerArg()

XML_UseParserAsHandlerArg ( XML_Parser  parser)

Definition at line 1144 of file xmlparse.cc.

1145{
1146 handlerArg = parser;
1147}

◆ XMLPARSEAPI() [1/2]

XMLPARSEAPI ( XML_Index  )

◆ XMLPARSEAPI() [2/2]

XMLPARSEAPI ( XML_Size  )