10#ifndef __XML_PARSER_H__
11#define __XML_PARSER_H__
14#define XML_TREE_INTERNALS
16#undef XML_TREE_INTERNALS
39#define XML_DEFAULT_VERSION "1.0"
62 xmlParserInputBufferPtr
buf;
93 const struct _xmlNode*
node;
143#define XML_DETECT_IDS 2
152#define XML_COMPLETE_ATTRS 4
160#define XML_SKIP_IDS 8
465 xmlEnumerationPtr
tree);
503 xmlSAXLocatorPtr loc);
687#define XML_SAX2_MAGIC 0xDEEDBEAF
846#ifdef LIBXML_THREAD_ENABLED
848XMLPUBFUN const char *
const *__xmlParserVersion(
void);
852#define XML_GLOBALS_PARSER_CORE \
853 XML_OP(oldXMLWDcompatibility, int, XML_DEPRECATED) \
854 XML_OP(xmlDefaultSAXLocator, xmlSAXLocator, XML_DEPRECATED) \
855 XML_OP(xmlDoValidityCheckingDefaultValue, int, XML_DEPRECATED) \
856 XML_OP(xmlGetWarningsDefaultValue, int, XML_DEPRECATED) \
857 XML_OP(xmlKeepBlanksDefaultValue, int, XML_DEPRECATED) \
858 XML_OP(xmlLineNumbersDefaultValue, int, XML_DEPRECATED) \
859 XML_OP(xmlLoadExtDtdDefaultValue, int, XML_DEPRECATED) \
860 XML_OP(xmlParserDebugEntities, int, XML_DEPRECATED) \
861 XML_OP(xmlPedanticParserDefaultValue, int, XML_DEPRECATED) \
862 XML_OP(xmlSubstituteEntitiesDefaultValue, int, XML_DEPRECATED)
864#ifdef LIBXML_OUTPUT_ENABLED
865 #define XML_GLOBALS_PARSER_OUTPUT \
866 XML_OP(xmlIndentTreeOutput, int, XML_NO_ATTR) \
867 XML_OP(xmlTreeIndentString, const char *, XML_NO_ATTR) \
868 XML_OP(xmlSaveNoEmptyTags, int, XML_NO_ATTR)
870 #define XML_GLOBALS_PARSER_OUTPUT
873#ifdef LIBXML_SAX1_ENABLED
874 #define XML_GLOBALS_PARSER_SAX1 \
875 XML_OP(xmlDefaultSAXHandler, xmlSAXHandlerV1, XML_DEPRECATED)
877 #define XML_GLOBALS_PARSER_SAX1
880#define XML_GLOBALS_PARSER \
881 XML_GLOBALS_PARSER_CORE \
882 XML_GLOBALS_PARSER_OUTPUT \
883 XML_GLOBALS_PARSER_SAX1
885#define XML_OP XML_DECLARE_GLOBAL
889#if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
890 #define oldXMLWDcompatibility XML_GLOBAL_MACRO(oldXMLWDcompatibility)
891 #define xmlDefaultSAXHandler XML_GLOBAL_MACRO(xmlDefaultSAXHandler)
892 #define xmlDefaultSAXLocator XML_GLOBAL_MACRO(xmlDefaultSAXLocator)
893 #define xmlDoValidityCheckingDefaultValue \
894 XML_GLOBAL_MACRO(xmlDoValidityCheckingDefaultValue)
895 #define xmlGetWarningsDefaultValue \
896 XML_GLOBAL_MACRO(xmlGetWarningsDefaultValue)
897 #define xmlKeepBlanksDefaultValue XML_GLOBAL_MACRO(xmlKeepBlanksDefaultValue)
898 #define xmlLineNumbersDefaultValue \
899 XML_GLOBAL_MACRO(xmlLineNumbersDefaultValue)
900 #define xmlLoadExtDtdDefaultValue XML_GLOBAL_MACRO(xmlLoadExtDtdDefaultValue)
901 #define xmlParserDebugEntities XML_GLOBAL_MACRO(xmlParserDebugEntities)
902 #define xmlPedanticParserDefaultValue \
903 XML_GLOBAL_MACRO(xmlPedanticParserDefaultValue)
904 #define xmlSubstituteEntitiesDefaultValue \
905 XML_GLOBAL_MACRO(xmlSubstituteEntitiesDefaultValue)
906 #ifdef LIBXML_OUTPUT_ENABLED
907 #define xmlIndentTreeOutput XML_GLOBAL_MACRO(xmlIndentTreeOutput)
908 #define xmlTreeIndentString XML_GLOBAL_MACRO(xmlTreeIndentString)
909 #define xmlSaveNoEmptyTags XML_GLOBAL_MACRO(xmlSaveNoEmptyTags)
943#ifdef LIBXML_SAX1_ENABLED
947 xmlParseFile (
const char *
filename);
949 xmlParseMemory (
const char *
buffer,
979#ifdef LIBXML_SAX1_ENABLED
988 xmlRecoverMemory (
const char *
buffer,
992 xmlRecoverFile (
const char *
filename);
1002#ifdef LIBXML_SAX1_ENABLED
1005 xmlSAXUserParseFile (xmlSAXHandlerPtr sax,
1010 xmlSAXUserParseMemory (xmlSAXHandlerPtr sax,
1016 xmlSAXParseDoc (xmlSAXHandlerPtr sax,
1021 xmlSAXParseMemory (xmlSAXHandlerPtr sax,
1027 xmlSAXParseMemoryWithData (xmlSAXHandlerPtr sax,
1034 xmlSAXParseFile (xmlSAXHandlerPtr sax,
1039 xmlSAXParseFileWithData (xmlSAXHandlerPtr sax,
1045 xmlSAXParseEntity (xmlSAXHandlerPtr sax,
1049 xmlParseEntity (
const char *
filename);
1052#ifdef LIBXML_VALID_ENABLED
1055 xmlSAXParseDTD (xmlSAXHandlerPtr sax,
1059 xmlParseDTD (
const xmlChar *ExternalID,
1062 xmlIOParseDTD (xmlSAXHandlerPtr sax,
1063 xmlParserInputBufferPtr
input,
1066#ifdef LIBXML_SAX1_ENABLED
1068 xmlParseBalancedChunkMemory(xmlDocPtr doc,
1069 xmlSAXHandlerPtr sax,
1081#ifdef LIBXML_SAX1_ENABLED
1083 xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc,
1084 xmlSAXHandlerPtr sax,
1092 xmlParseExternalEntity (xmlDocPtr doc,
1093 xmlSAXHandlerPtr sax,
1120#ifdef LIBXML_SAX1_ENABLED
1123 xmlSetupParserForBuffer (xmlParserCtxtPtr ctxt,
1130#ifdef LIBXML_LEGACY_ENABLED
1136 xmlGetFeaturesList (
int *
len,
1140 xmlGetFeature (xmlParserCtxtPtr ctxt,
1145 xmlSetFeature (xmlParserCtxtPtr ctxt,
1150#ifdef LIBXML_PUSH_ENABLED
1155 xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax,
1161 xmlParseChunk (xmlParserCtxtPtr ctxt,
1181 xmlParserInputBufferPtr
input,
1189 const xmlNodePtr
node);
1196 const xmlNodePtr
node);
1212 xmlParserCtxtPtr ctxt);
1264 const char *encoding);
1274 const char *encoding,
1278 const char *encoding,
1284 const char *encoding,
1289 const char *encoding,
1296 const char *encoding,
1302 const char *encoding,
1307 const char *encoding,
1314 const char *encoding,
1320 const char *encoding,
1328 const char *encoding,
_In_ uint16_t _Out_ ULONG * atts
void CDECL terminate(void)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLint GLint GLsizei GLsizei GLsizei depth
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLenum GLenum input
int const JOCTET unsigned int datalen
INTERNETFEATURELIST feature
XMLPUBFUN int xmlParseDocument(xmlParserCtxtPtr ctxt)
@ XML_PARSER_PUBLIC_LITERAL
@ XML_PARSER_SYSTEM_LITERAL
@ XML_PARSER_ATTRIBUTE_VALUE
@ XML_PARSER_ENTITY_VALUE
@ XML_PARSER_CDATA_SECTION
void(* startElementNsSAX2Func)(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI, int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, const xmlChar **attributes)
void(*) typedef void(* errorSAXFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
void(* cdataBlockSAXFunc)(void *ctx, const xmlChar *value, int len)
XMLPUBFUN xmlDocPtr xmlReadFd(int fd, const char *URL, const char *encoding, int options)
XML_DEPRECATED XMLPUBFUN int xmlThrDefParserDebugEntities(int v)
XMLPUBFUN int xmlCtxtUseOptions(xmlParserCtxtPtr ctxt, int options)
void(*) typedef void(*) typedef void(* fatalErrorSAXFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
XMLPUBVAR const char *const xmlParserVersion
XML_DEPRECATED XMLPUBFUN int xmlThrDefDoValidityCheckingDefaultValue(int v)
XMLPUBFUN int xmlHasFeature(xmlFeature feature)
XMLPUBFUN xmlParserInputPtr xmlLoadExternalEntity(const char *URL, const char *ID, xmlParserCtxtPtr ctxt)
XML_DEPRECATED XMLPUBFUN void xmlCleanupGlobals(void)
void(* internalSubsetSAXFunc)(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XML_DEPRECATED XMLPUBFUN int xmlKeepBlanksDefault(int val)
XML_DEPRECATED XMLPUBFUN int xmlParserInputRead(xmlParserInputPtr in, int len)
XML_DEPRECATED XMLPUBFUN int xmlSubstituteEntitiesDefault(int val)
XML_GLOBALS_PARSER XMLPUBFUN void xmlInitParser(void)
XMLPUBFUN long xmlByteConsumed(xmlParserCtxtPtr ctxt)
XMLPUBFUN const xmlParserNodeInfo * xmlParserFindNodeInfo(const xmlParserCtxtPtr ctxt, const xmlNodePtr node)
XMLPUBFUN void xmlInitNodeInfoSeq(xmlParserNodeInfoSeqPtr seq)
XMLPUBFUN xmlDocPtr xmlCtxtReadDoc(xmlParserCtxtPtr ctxt, const xmlChar *cur, const char *URL, const char *encoding, int options)
XMLPUBFUN void xmlParserAddNodeInfo(xmlParserCtxtPtr ctxt, const xmlParserNodeInfoPtr info)
void(* startDocumentSAXFunc)(void *ctx)
XMLPUBFUN xmlDocPtr xmlCtxtReadFile(xmlParserCtxtPtr ctxt, const char *filename, const char *encoding, int options)
XMLPUBFUN xmlExternalEntityLoader xmlGetExternalEntityLoader(void)
XMLPUBFUN xmlParserCtxtPtr xmlNewSAXParserCtxt(const xmlSAXHandler *sax, void *userData)
void(* commentSAXFunc)(void *ctx, const xmlChar *value)
XMLPUBFUN xmlParserErrors xmlParseInNodeContext(xmlNodePtr node, const char *data, int datalen, int options, xmlNodePtr *lst)
XML_DEPRECATED XMLPUBFUN int xmlThrDefKeepBlanksDefaultValue(int v)
XMLPUBFUN unsigned long xmlParserFindNodeInfoIndex(const xmlParserNodeInfoSeqPtr seq, const xmlNodePtr node)
void(* attributeSAXFunc)(void *ctx, const xmlChar *name, const xmlChar *value)
XMLPUBFUN xmlDocPtr xmlReadMemory(const char *buffer, int size, const char *URL, const char *encoding, int options)
void(* unparsedEntityDeclSAXFunc)(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
void(* elementDeclSAXFunc)(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
xmlEntityPtr(* getParameterEntitySAXFunc)(void *ctx, const xmlChar *name)
void(* processingInstructionSAXFunc)(void *ctx, const xmlChar *target, const xmlChar *data)
XMLPUBFUN xmlDocPtr xmlCtxtReadIO(xmlParserCtxtPtr ctxt, xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, const char *URL, const char *encoding, int options)
XMLPUBFUN void xmlFreeParserCtxt(xmlParserCtxtPtr ctxt)
xmlEntityPtr(* getEntitySAXFunc)(void *ctx, const xmlChar *name)
xmlParserInputPtr(* resolveEntitySAXFunc)(void *ctx, const xmlChar *publicId, const xmlChar *systemId)
XML_DEPRECATED XMLPUBFUN int xmlPedanticParserDefault(int val)
XML_DEPRECATED XMLPUBFUN int xmlThrDefLoadExtDtdDefaultValue(int v)
XMLPUBFUN xmlDocPtr xmlCtxtReadMemory(xmlParserCtxtPtr ctxt, const char *buffer, int size, const char *URL, const char *encoding, int options)
XML_DEPRECATED XMLPUBFUN int xmlThrDefPedanticParserDefaultValue(int v)
void(* warningSAXFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
void(*) typedef void(*) typedef void(*) typedef int(* isStandaloneSAXFunc)(void *ctx)
void(* charactersSAXFunc)(void *ctx, const xmlChar *ch, int len)
#define XML_GLOBALS_PARSER
XMLPUBFUN int xmlParseExtParsedEnt(xmlParserCtxtPtr ctxt)
XML_DEPRECATED XMLPUBFUN void xmlInitGlobals(void)
void(* entityDeclSAXFunc)(void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
xmlSAXHandlerV1 * xmlSAXHandlerV1Ptr
XMLPUBFUN void xmlCtxtSetMaxAmplification(xmlParserCtxtPtr ctxt, unsigned maxAmpl)
int(* hasExternalSubsetSAXFunc)(void *ctx)
void(* setDocumentLocatorSAXFunc)(void *ctx, xmlSAXLocatorPtr loc)
void(* xmlParserInputDeallocate)(xmlChar *str)
XMLPUBFUN void xmlCleanupParser(void)
void(* attributeDeclSAXFunc)(void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
XMLPUBFUN void xmlClearParserCtxt(xmlParserCtxtPtr ctxt)
XMLPUBFUN void xmlClearNodeInfoSeq(xmlParserNodeInfoSeqPtr seq)
XMLPUBFUN xmlParserCtxtPtr xmlCreateDocParserCtxt(const xmlChar *cur)
XMLPUBFUN xmlDocPtr xmlReadIO(xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, const char *URL, const char *encoding, int options)
XMLPUBFUN xmlParserCtxtPtr xmlCreateIOParserCtxt(xmlSAXHandlerPtr sax, void *user_data, xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, xmlCharEncoding enc)
int(* hasInternalSubsetSAXFunc)(void *ctx)
void(* ignorableWhitespaceSAXFunc)(void *ctx, const xmlChar *ch, int len)
void(* endElementSAXFunc)(void *ctx, const xmlChar *name)
XMLPUBFUN int xmlInitParserCtxt(xmlParserCtxtPtr ctxt)
XML_DEPRECATED XMLPUBFUN int xmlThrDefGetWarningsDefaultValue(int v)
xmlParserNodeInfo * xmlParserNodeInfoPtr
XML_DEPRECATED XMLPUBFUN int xmlThrDefSubstituteEntitiesDefaultValue(int v)
XMLPUBFUN xmlParserCtxtPtr xmlNewParserCtxt(void)
void(* endDocumentSAXFunc)(void *ctx)
void(* startElementSAXFunc)(void *ctx, const xmlChar *name, const xmlChar **atts)
XMLPUBFUN int xmlCtxtResetPush(xmlParserCtxtPtr ctxt, const char *chunk, int size, const char *filename, const char *encoding)
XMLPUBFUN xmlDocPtr xmlCtxtReadFd(xmlParserCtxtPtr ctxt, int fd, const char *URL, const char *encoding, int options)
XMLPUBFUN xmlDocPtr xmlReadDoc(const xmlChar *cur, const char *URL, const char *encoding, int options)
XMLPUBFUN void xmlSetExternalEntityLoader(xmlExternalEntityLoader f)
XMLPUBFUN xmlParserInputPtr xmlNewIOInputStream(xmlParserCtxtPtr ctxt, xmlParserInputBufferPtr input, xmlCharEncoding enc)
XMLPUBFUN void xmlStopParser(xmlParserCtxtPtr ctxt)
XML_DEPRECATED XMLPUBFUN int xmlThrDefLineNumbersDefaultValue(int v)
xmlParserNodeInfoSeq * xmlParserNodeInfoSeqPtr
void(* endElementNsSAX2Func)(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI)
void(* notationDeclSAXFunc)(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
XMLPUBFUN void xmlCtxtReset(xmlParserCtxtPtr ctxt)
void(* referenceSAXFunc)(void *ctx, const xmlChar *name)
XMLPUBFUN xmlDocPtr xmlReadFile(const char *URL, const char *encoding, int options)
XMLPUBFUN int xmlParseCtxtExternalEntity(xmlParserCtxtPtr ctx, const xmlChar *URL, const xmlChar *ID, xmlNodePtr *lst)
XML_DEPRECATED XMLPUBFUN int xmlParserInputGrow(xmlParserInputPtr in, int len)
void(* externalSubsetSAXFunc)(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
xmlParserInputPtr(* xmlExternalEntityLoader)(const char *URL, const char *ID, xmlParserCtxtPtr context)
XML_DEPRECATED XMLPUBFUN int xmlLineNumbersDefault(int val)
xmlAttrHashBucket * attrHash
const xmlChar * intSubName
struct _xmlSAXHandler * sax
xmlParserNodeInfoSeq node_seq
const xmlChar * str_xml_ns
xmlParserInputState instate
const xmlChar * str_xmlns
xmlParserNodeInfo * nodeInfo
unsigned short nbWarnings
xmlHashTablePtr attsSpecial
unsigned long sizeentities
unsigned long sizeentcopy
xmlParserInputPtr * inputTab
xmlHashTablePtr attsDefault
xmlParserNodeInfo * nodeInfoTab
xmlParserNodeInfo * buffer
const struct _xmlNode * node
attributeDeclSAXFunc attributeDecl
hasExternalSubsetSAXFunc hasExternalSubset
ignorableWhitespaceSAXFunc ignorableWhitespace
startDocumentSAXFunc startDocument
charactersSAXFunc characters
endDocumentSAXFunc endDocument
processingInstructionSAXFunc processingInstruction
startElementSAXFunc startElement
elementDeclSAXFunc elementDecl
getParameterEntitySAXFunc getParameterEntity
internalSubsetSAXFunc internalSubset
notationDeclSAXFunc notationDecl
isStandaloneSAXFunc isStandalone
fatalErrorSAXFunc fatalError
getEntitySAXFunc getEntity
referenceSAXFunc reference
unparsedEntityDeclSAXFunc unparsedEntityDecl
resolveEntitySAXFunc resolveEntity
cdataBlockSAXFunc cdataBlock
endElementSAXFunc endElement
entityDeclSAXFunc entityDecl
externalSubsetSAXFunc externalSubset
setDocumentLocatorSAXFunc setDocumentLocator
hasInternalSubsetSAXFunc hasInternalSubset
unparsedEntityDeclSAXFunc unparsedEntityDecl
hasExternalSubsetSAXFunc hasExternalSubset
setDocumentLocatorSAXFunc setDocumentLocator
getEntitySAXFunc getEntity
attributeDeclSAXFunc attributeDecl
referenceSAXFunc reference
startElementNsSAX2Func startElementNs
externalSubsetSAXFunc externalSubset
internalSubsetSAXFunc internalSubset
endElementSAXFunc endElement
isStandaloneSAXFunc isStandalone
endDocumentSAXFunc endDocument
fatalErrorSAXFunc fatalError
hasInternalSubsetSAXFunc hasInternalSubset
notationDeclSAXFunc notationDecl
resolveEntitySAXFunc resolveEntity
getParameterEntitySAXFunc getParameterEntity
endElementNsSAX2Func endElementNs
cdataBlockSAXFunc cdataBlock
startElementSAXFunc startElement
xmlStructuredErrorFunc serror
entityDeclSAXFunc entityDecl
processingInstructionSAXFunc processingInstruction
charactersSAXFunc characters
startDocumentSAXFunc startDocument
elementDeclSAXFunc elementDecl
ignorableWhitespaceSAXFunc ignorableWhitespace
int(* getColumnNumber)(void *ctx)
int(* getLineNumber)(void *ctx)
Character const *const prefix
typedeftypedef void(*) typedef void(*) struct _xmlValidCtx xmlValidCtxt)
int(* xmlInputReadCallback)(void *context, char *buffer, int len)
int(* xmlInputCloseCallback)(void *context)
void(*) typedef void(* xmlStructuredErrorFunc)(void *userData, const xmlError *error)
#define LIBXML_ATTR_FORMAT(fmt, args)