| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | #ifndef __XML_PARSER_H__ |
| | #define __XML_PARSER_H__ |
| |
|
| | #include <libxml/xmlversion.h> |
| | #define XML_TREE_INTERNALS |
| | #include <libxml/tree.h> |
| | #undef XML_TREE_INTERNALS |
| | #include <libxml/dict.h> |
| | #include <libxml/hash.h> |
| | #include <libxml/valid.h> |
| | #include <libxml/entities.h> |
| | #include <libxml/xmlerror.h> |
| | #include <libxml/xmlstring.h> |
| | #include <libxml/xmlmemory.h> |
| | #include <libxml/encoding.h> |
| | #include <libxml/xmlIO.h> |
| | |
| | #include <libxml/SAX2.h> |
| | #include <libxml/threads.h> |
| |
|
| | #ifdef __cplusplus |
| | extern "C" { |
| | #endif |
| |
|
| | |
| | |
| | |
| | |
| | |
| | #define XML_DEFAULT_VERSION "1.0" |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (* xmlParserInputDeallocate)(xmlChar *str); |
| |
|
| | struct _xmlParserInput { |
| | |
| | xmlParserInputBufferPtr buf; |
| |
|
| | const char *filename; |
| | const char *directory; |
| | const xmlChar *base; |
| | const xmlChar *cur; |
| | const xmlChar *end; |
| | int length; |
| | int line; |
| | int col; |
| | unsigned long consumed; |
| | xmlParserInputDeallocate free; |
| | const xmlChar *encoding; |
| | const xmlChar *version; |
| | int flags; |
| | int id; |
| | unsigned long parentConsumed; |
| | xmlEntityPtr entity; |
| | }; |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef struct _xmlParserNodeInfo xmlParserNodeInfo; |
| | typedef xmlParserNodeInfo *xmlParserNodeInfoPtr; |
| |
|
| | struct _xmlParserNodeInfo { |
| | const struct _xmlNode* node; |
| | |
| | unsigned long begin_pos; |
| | unsigned long begin_line; |
| | unsigned long end_pos; |
| | unsigned long end_line; |
| | }; |
| |
|
| | typedef struct _xmlParserNodeInfoSeq xmlParserNodeInfoSeq; |
| | typedef xmlParserNodeInfoSeq *xmlParserNodeInfoSeqPtr; |
| | struct _xmlParserNodeInfoSeq { |
| | unsigned long maximum; |
| | unsigned long length; |
| | xmlParserNodeInfo* buffer; |
| | }; |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef enum { |
| | XML_PARSER_EOF = -1, |
| | XML_PARSER_START = 0, |
| | XML_PARSER_MISC, |
| | XML_PARSER_PI, |
| | XML_PARSER_DTD, |
| | XML_PARSER_PROLOG, |
| | XML_PARSER_COMMENT, |
| | XML_PARSER_START_TAG, |
| | XML_PARSER_CONTENT, |
| | XML_PARSER_CDATA_SECTION, |
| | XML_PARSER_END_TAG, |
| | XML_PARSER_ENTITY_DECL, |
| | XML_PARSER_ENTITY_VALUE, |
| | XML_PARSER_ATTRIBUTE_VALUE, |
| | XML_PARSER_SYSTEM_LITERAL, |
| | XML_PARSER_EPILOG, |
| | XML_PARSER_IGNORE, |
| | XML_PARSER_PUBLIC_LITERAL, |
| | XML_PARSER_XML_DECL |
| | } xmlParserInputState; |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | #define XML_DETECT_IDS 2 |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | #define XML_COMPLETE_ATTRS 4 |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | #define XML_SKIP_IDS 8 |
| |
|
| | |
| | |
| | |
| | |
| | |
| | typedef enum { |
| | XML_PARSE_UNKNOWN = 0, |
| | XML_PARSE_DOM = 1, |
| | XML_PARSE_SAX = 2, |
| | XML_PARSE_PUSH_DOM = 3, |
| | XML_PARSE_PUSH_SAX = 4, |
| | XML_PARSE_READER = 5 |
| | } xmlParserMode; |
| |
|
| | typedef struct _xmlStartTag xmlStartTag; |
| | typedef struct _xmlParserNsData xmlParserNsData; |
| | typedef struct _xmlAttrHashBucket xmlAttrHashBucket; |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | struct _xmlParserCtxt { |
| | struct _xmlSAXHandler *sax; |
| | void *userData; |
| | xmlDocPtr myDoc; |
| | int wellFormed; |
| | int replaceEntities; |
| | const xmlChar *version; |
| | const xmlChar *encoding; |
| | int standalone; |
| | int html; |
| | |
| | |
| | |
| |
|
| | |
| | xmlParserInputPtr input; |
| | int inputNr; |
| | int inputMax; |
| | xmlParserInputPtr *inputTab; |
| |
|
| | |
| | xmlNodePtr node; |
| | int nodeNr; |
| | int nodeMax; |
| | xmlNodePtr *nodeTab; |
| |
|
| | int record_info; |
| | xmlParserNodeInfoSeq node_seq; |
| |
|
| | int errNo; |
| |
|
| | int hasExternalSubset; |
| | int hasPErefs; |
| | int external; |
| |
|
| | int valid; |
| | int validate; |
| | xmlValidCtxt vctxt; |
| |
|
| | xmlParserInputState instate; |
| | int token; |
| |
|
| | char *directory; |
| |
|
| | |
| | const xmlChar *name; |
| | int nameNr; |
| | int nameMax; |
| | const xmlChar * *nameTab; |
| |
|
| | long nbChars; |
| | long checkIndex; |
| | int keepBlanks; |
| | int disableSAX; |
| | int inSubset; |
| | const xmlChar * intSubName; |
| | xmlChar * extSubURI; |
| | xmlChar * extSubSystem; |
| |
|
| | |
| | int * space; |
| | int spaceNr; |
| | int spaceMax; |
| | int * spaceTab; |
| |
|
| | int depth; |
| | xmlParserInputPtr entity; |
| | int charset; |
| | int nodelen; |
| | int nodemem; |
| | int pedantic; |
| | void *_private; |
| |
|
| | int loadsubset; |
| | int linenumbers; |
| | void *catalogs; |
| | int recovery; |
| | int progressive; |
| | xmlDictPtr dict; |
| | const xmlChar * *atts; |
| | int maxatts; |
| | int docdict; |
| |
|
| | |
| | |
| | |
| | const xmlChar *str_xml; |
| | const xmlChar *str_xmlns; |
| | const xmlChar *str_xml_ns; |
| |
|
| | |
| | |
| | |
| | int sax2; |
| | int nsNr; |
| | int nsMax; |
| | const xmlChar * *nsTab; |
| | unsigned *attallocs; |
| | xmlStartTag *pushTab; |
| | xmlHashTablePtr attsDefault; |
| | xmlHashTablePtr attsSpecial; |
| | int nsWellFormed; |
| | int options; |
| |
|
| | |
| | |
| | |
| | int dictNames; |
| | int freeElemsNr; |
| | xmlNodePtr freeElems; |
| | int freeAttrsNr; |
| | xmlAttrPtr freeAttrs; |
| |
|
| | |
| | |
| | |
| | xmlError lastError; |
| | xmlParserMode parseMode; |
| | unsigned long nbentities; |
| | unsigned long sizeentities; |
| |
|
| | |
| | xmlParserNodeInfo *nodeInfo; |
| | int nodeInfoNr; |
| | int nodeInfoMax; |
| | xmlParserNodeInfo *nodeInfoTab; |
| |
|
| | int input_id; |
| | unsigned long sizeentcopy; |
| |
|
| | int endCheckState; |
| | unsigned short nbErrors; |
| | unsigned short nbWarnings; |
| | unsigned maxAmpl; |
| |
|
| | xmlParserNsData *nsdb; |
| | unsigned attrHashMax; |
| | xmlAttrHashBucket *attrHash; |
| | }; |
| |
|
| | |
| | |
| | |
| | |
| | |
| | struct _xmlSAXLocator { |
| | const xmlChar *(*getPublicId)(void *ctx); |
| | const xmlChar *(*getSystemId)(void *ctx); |
| | int (*getLineNumber)(void *ctx); |
| | int (*getColumnNumber)(void *ctx); |
| | }; |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef xmlParserInputPtr (*resolveEntitySAXFunc) (void *ctx, |
| | const xmlChar *publicId, |
| | const xmlChar *systemId); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*internalSubsetSAXFunc) (void *ctx, |
| | const xmlChar *name, |
| | const xmlChar *ExternalID, |
| | const xmlChar *SystemID); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*externalSubsetSAXFunc) (void *ctx, |
| | const xmlChar *name, |
| | const xmlChar *ExternalID, |
| | const xmlChar *SystemID); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef xmlEntityPtr (*getEntitySAXFunc) (void *ctx, |
| | const xmlChar *name); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef xmlEntityPtr (*getParameterEntitySAXFunc) (void *ctx, |
| | const xmlChar *name); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*entityDeclSAXFunc) (void *ctx, |
| | const xmlChar *name, |
| | int type, |
| | const xmlChar *publicId, |
| | const xmlChar *systemId, |
| | xmlChar *content); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*notationDeclSAXFunc)(void *ctx, |
| | const xmlChar *name, |
| | const xmlChar *publicId, |
| | const xmlChar *systemId); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*attributeDeclSAXFunc)(void *ctx, |
| | const xmlChar *elem, |
| | const xmlChar *fullname, |
| | int type, |
| | int def, |
| | const xmlChar *defaultValue, |
| | xmlEnumerationPtr tree); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*elementDeclSAXFunc)(void *ctx, |
| | const xmlChar *name, |
| | int type, |
| | xmlElementContentPtr content); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*unparsedEntityDeclSAXFunc)(void *ctx, |
| | const xmlChar *name, |
| | const xmlChar *publicId, |
| | const xmlChar *systemId, |
| | const xmlChar *notationName); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*setDocumentLocatorSAXFunc) (void *ctx, |
| | xmlSAXLocatorPtr loc); |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*startDocumentSAXFunc) (void *ctx); |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*endDocumentSAXFunc) (void *ctx); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*startElementSAXFunc) (void *ctx, |
| | const xmlChar *name, |
| | const xmlChar **atts); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*endElementSAXFunc) (void *ctx, |
| | const xmlChar *name); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*attributeSAXFunc) (void *ctx, |
| | const xmlChar *name, |
| | const xmlChar *value); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*referenceSAXFunc) (void *ctx, |
| | const xmlChar *name); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*charactersSAXFunc) (void *ctx, |
| | const xmlChar *ch, |
| | int len); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*ignorableWhitespaceSAXFunc) (void *ctx, |
| | const xmlChar *ch, |
| | int len); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*processingInstructionSAXFunc) (void *ctx, |
| | const xmlChar *target, |
| | const xmlChar *data); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*commentSAXFunc) (void *ctx, |
| | const xmlChar *value); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*cdataBlockSAXFunc) ( |
| | void *ctx, |
| | const xmlChar *value, |
| | int len); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*warningSAXFunc) (void *ctx, |
| | const char *msg, ...) LIBXML_ATTR_FORMAT(2,3); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*errorSAXFunc) (void *ctx, |
| | const char *msg, ...) LIBXML_ATTR_FORMAT(2,3); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef void (*fatalErrorSAXFunc) (void *ctx, |
| | const char *msg, ...) LIBXML_ATTR_FORMAT(2,3); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef int (*isStandaloneSAXFunc) (void *ctx); |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef int (*hasInternalSubsetSAXFunc) (void *ctx); |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef int (*hasExternalSubsetSAXFunc) (void *ctx); |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | #define XML_SAX2_MAGIC 0xDEEDBEAF |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | typedef 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); |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | typedef void (*endElementNsSAX2Func) (void *ctx, |
| | const xmlChar *localname, |
| | const xmlChar *prefix, |
| | const xmlChar *URI); |
| |
|
| |
|
| | struct _xmlSAXHandler { |
| | internalSubsetSAXFunc internalSubset; |
| | isStandaloneSAXFunc isStandalone; |
| | hasInternalSubsetSAXFunc hasInternalSubset; |
| | hasExternalSubsetSAXFunc hasExternalSubset; |
| | resolveEntitySAXFunc resolveEntity; |
| | getEntitySAXFunc getEntity; |
| | entityDeclSAXFunc entityDecl; |
| | notationDeclSAXFunc notationDecl; |
| | attributeDeclSAXFunc attributeDecl; |
| | elementDeclSAXFunc elementDecl; |
| | unparsedEntityDeclSAXFunc unparsedEntityDecl; |
| | setDocumentLocatorSAXFunc setDocumentLocator; |
| | startDocumentSAXFunc startDocument; |
| | endDocumentSAXFunc endDocument; |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | startElementSAXFunc startElement; |
| | endElementSAXFunc endElement; |
| | referenceSAXFunc reference; |
| | charactersSAXFunc characters; |
| | ignorableWhitespaceSAXFunc ignorableWhitespace; |
| | processingInstructionSAXFunc processingInstruction; |
| | commentSAXFunc comment; |
| | warningSAXFunc warning; |
| | errorSAXFunc error; |
| | fatalErrorSAXFunc fatalError; |
| | getParameterEntitySAXFunc getParameterEntity; |
| | cdataBlockSAXFunc cdataBlock; |
| | externalSubsetSAXFunc externalSubset; |
| | |
| | |
| | |
| | |
| | unsigned int initialized; |
| | |
| | |
| | |
| | void *_private; |
| | startElementNsSAX2Func startElementNs; |
| | endElementNsSAX2Func endElementNs; |
| | xmlStructuredErrorFunc serror; |
| | }; |
| |
|
| | |
| | |
| | |
| | typedef struct _xmlSAXHandlerV1 xmlSAXHandlerV1; |
| | typedef xmlSAXHandlerV1 *xmlSAXHandlerV1Ptr; |
| | struct _xmlSAXHandlerV1 { |
| | internalSubsetSAXFunc internalSubset; |
| | isStandaloneSAXFunc isStandalone; |
| | hasInternalSubsetSAXFunc hasInternalSubset; |
| | hasExternalSubsetSAXFunc hasExternalSubset; |
| | resolveEntitySAXFunc resolveEntity; |
| | getEntitySAXFunc getEntity; |
| | entityDeclSAXFunc entityDecl; |
| | notationDeclSAXFunc notationDecl; |
| | attributeDeclSAXFunc attributeDecl; |
| | elementDeclSAXFunc elementDecl; |
| | unparsedEntityDeclSAXFunc unparsedEntityDecl; |
| | setDocumentLocatorSAXFunc setDocumentLocator; |
| | startDocumentSAXFunc startDocument; |
| | endDocumentSAXFunc endDocument; |
| | startElementSAXFunc startElement; |
| | endElementSAXFunc endElement; |
| | referenceSAXFunc reference; |
| | charactersSAXFunc characters; |
| | ignorableWhitespaceSAXFunc ignorableWhitespace; |
| | processingInstructionSAXFunc processingInstruction; |
| | commentSAXFunc comment; |
| | warningSAXFunc warning; |
| | errorSAXFunc error; |
| | fatalErrorSAXFunc fatalError; |
| | getParameterEntitySAXFunc getParameterEntity; |
| | cdataBlockSAXFunc cdataBlock; |
| | externalSubsetSAXFunc externalSubset; |
| | unsigned int initialized; |
| | }; |
| |
|
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef xmlParserInputPtr (*xmlExternalEntityLoader) (const char *URL, |
| | const char *ID, |
| | xmlParserCtxtPtr context); |
| |
|
| | |
| | |
| | |
| |
|
| | XMLPUBVAR const char *const xmlParserVersion; |
| | #ifdef LIBXML_THREAD_ENABLED |
| | |
| | XMLPUBFUN const char *const *__xmlParserVersion(void); |
| | #endif |
| |
|
| | |
| | #define XML_GLOBALS_PARSER_CORE \ |
| | XML_OP(oldXMLWDcompatibility, int, XML_DEPRECATED) \ |
| | XML_OP(xmlDefaultSAXLocator, xmlSAXLocator, XML_DEPRECATED) \ |
| | XML_OP(xmlDoValidityCheckingDefaultValue, int, XML_DEPRECATED) \ |
| | XML_OP(xmlGetWarningsDefaultValue, int, XML_DEPRECATED) \ |
| | XML_OP(xmlKeepBlanksDefaultValue, int, XML_DEPRECATED) \ |
| | XML_OP(xmlLineNumbersDefaultValue, int, XML_DEPRECATED) \ |
| | XML_OP(xmlLoadExtDtdDefaultValue, int, XML_DEPRECATED) \ |
| | XML_OP(xmlParserDebugEntities, int, XML_DEPRECATED) \ |
| | XML_OP(xmlPedanticParserDefaultValue, int, XML_DEPRECATED) \ |
| | XML_OP(xmlSubstituteEntitiesDefaultValue, int, XML_DEPRECATED) |
| |
|
| | #ifdef LIBXML_OUTPUT_ENABLED |
| | #define XML_GLOBALS_PARSER_OUTPUT \ |
| | XML_OP(xmlIndentTreeOutput, int, XML_NO_ATTR) \ |
| | XML_OP(xmlTreeIndentString, const char *, XML_NO_ATTR) \ |
| | XML_OP(xmlSaveNoEmptyTags, int, XML_NO_ATTR) |
| | #else |
| | #define XML_GLOBALS_PARSER_OUTPUT |
| | #endif |
| |
|
| | #ifdef LIBXML_SAX1_ENABLED |
| | #define XML_GLOBALS_PARSER_SAX1 \ |
| | XML_OP(xmlDefaultSAXHandler, xmlSAXHandlerV1, XML_DEPRECATED) |
| | #else |
| | #define XML_GLOBALS_PARSER_SAX1 |
| | #endif |
| |
|
| | #define XML_GLOBALS_PARSER \ |
| | XML_GLOBALS_PARSER_CORE \ |
| | XML_GLOBALS_PARSER_OUTPUT \ |
| | XML_GLOBALS_PARSER_SAX1 |
| |
|
| | #define XML_OP XML_DECLARE_GLOBAL |
| | XML_GLOBALS_PARSER |
| | #undef XML_OP |
| |
|
| | #if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION) |
| | #define oldXMLWDcompatibility XML_GLOBAL_MACRO(oldXMLWDcompatibility) |
| | #define xmlDefaultSAXHandler XML_GLOBAL_MACRO(xmlDefaultSAXHandler) |
| | #define xmlDefaultSAXLocator XML_GLOBAL_MACRO(xmlDefaultSAXLocator) |
| | #define xmlDoValidityCheckingDefaultValue \ |
| | XML_GLOBAL_MACRO(xmlDoValidityCheckingDefaultValue) |
| | #define xmlGetWarningsDefaultValue \ |
| | XML_GLOBAL_MACRO(xmlGetWarningsDefaultValue) |
| | #define xmlKeepBlanksDefaultValue XML_GLOBAL_MACRO(xmlKeepBlanksDefaultValue) |
| | #define xmlLineNumbersDefaultValue \ |
| | XML_GLOBAL_MACRO(xmlLineNumbersDefaultValue) |
| | #define xmlLoadExtDtdDefaultValue XML_GLOBAL_MACRO(xmlLoadExtDtdDefaultValue) |
| | #define xmlParserDebugEntities XML_GLOBAL_MACRO(xmlParserDebugEntities) |
| | #define xmlPedanticParserDefaultValue \ |
| | XML_GLOBAL_MACRO(xmlPedanticParserDefaultValue) |
| | #define xmlSubstituteEntitiesDefaultValue \ |
| | XML_GLOBAL_MACRO(xmlSubstituteEntitiesDefaultValue) |
| | #ifdef LIBXML_OUTPUT_ENABLED |
| | #define xmlIndentTreeOutput XML_GLOBAL_MACRO(xmlIndentTreeOutput) |
| | #define xmlTreeIndentString XML_GLOBAL_MACRO(xmlTreeIndentString) |
| | #define xmlSaveNoEmptyTags XML_GLOBAL_MACRO(xmlSaveNoEmptyTags) |
| | #endif |
| | #endif |
| | |
| |
|
| | |
| | |
| | |
| | XMLPUBFUN void |
| | xmlInitParser (void); |
| | XMLPUBFUN void |
| | xmlCleanupParser (void); |
| | XML_DEPRECATED |
| | XMLPUBFUN void |
| | xmlInitGlobals (void); |
| | XML_DEPRECATED |
| | XMLPUBFUN void |
| | xmlCleanupGlobals (void); |
| |
|
| | |
| | |
| | |
| | XML_DEPRECATED |
| | XMLPUBFUN int |
| | xmlParserInputRead (xmlParserInputPtr in, |
| | int len); |
| | XML_DEPRECATED |
| | XMLPUBFUN int |
| | xmlParserInputGrow (xmlParserInputPtr in, |
| | int len); |
| |
|
| | |
| | |
| | |
| | #ifdef LIBXML_SAX1_ENABLED |
| | XMLPUBFUN xmlDocPtr |
| | xmlParseDoc (const xmlChar *cur); |
| | XMLPUBFUN xmlDocPtr |
| | xmlParseFile (const char *filename); |
| | XMLPUBFUN xmlDocPtr |
| | xmlParseMemory (const char *buffer, |
| | int size); |
| | #endif |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlSubstituteEntitiesDefault(int val); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlThrDefSubstituteEntitiesDefaultValue(int v); |
| | XMLPUBFUN int |
| | xmlKeepBlanksDefault (int val); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlThrDefKeepBlanksDefaultValue(int v); |
| | XMLPUBFUN void |
| | xmlStopParser (xmlParserCtxtPtr ctxt); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlPedanticParserDefault(int val); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlThrDefPedanticParserDefaultValue(int v); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlLineNumbersDefault (int val); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlThrDefLineNumbersDefaultValue(int v); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlThrDefDoValidityCheckingDefaultValue(int v); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlThrDefGetWarningsDefaultValue(int v); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlThrDefLoadExtDtdDefaultValue(int v); |
| | XML_DEPRECATED XMLPUBFUN int |
| | xmlThrDefParserDebugEntities(int v); |
| |
|
| | #ifdef LIBXML_SAX1_ENABLED |
| | |
| | |
| | |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlRecoverDoc (const xmlChar *cur); |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlRecoverMemory (const char *buffer, |
| | int size); |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlRecoverFile (const char *filename); |
| | #endif |
| |
|
| | |
| | |
| | |
| | XMLPUBFUN int |
| | xmlParseDocument (xmlParserCtxtPtr ctxt); |
| | XMLPUBFUN int |
| | xmlParseExtParsedEnt (xmlParserCtxtPtr ctxt); |
| | #ifdef LIBXML_SAX1_ENABLED |
| | XML_DEPRECATED |
| | XMLPUBFUN int |
| | xmlSAXUserParseFile (xmlSAXHandlerPtr sax, |
| | void *user_data, |
| | const char *filename); |
| | XML_DEPRECATED |
| | XMLPUBFUN int |
| | xmlSAXUserParseMemory (xmlSAXHandlerPtr sax, |
| | void *user_data, |
| | const char *buffer, |
| | int size); |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlSAXParseDoc (xmlSAXHandlerPtr sax, |
| | const xmlChar *cur, |
| | int recovery); |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlSAXParseMemory (xmlSAXHandlerPtr sax, |
| | const char *buffer, |
| | int size, |
| | int recovery); |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlSAXParseMemoryWithData (xmlSAXHandlerPtr sax, |
| | const char *buffer, |
| | int size, |
| | int recovery, |
| | void *data); |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlSAXParseFile (xmlSAXHandlerPtr sax, |
| | const char *filename, |
| | int recovery); |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlSAXParseFileWithData (xmlSAXHandlerPtr sax, |
| | const char *filename, |
| | int recovery, |
| | void *data); |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlSAXParseEntity (xmlSAXHandlerPtr sax, |
| | const char *filename); |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDocPtr |
| | xmlParseEntity (const char *filename); |
| | #endif |
| |
|
| | #ifdef LIBXML_VALID_ENABLED |
| | XML_DEPRECATED |
| | XMLPUBFUN xmlDtdPtr |
| | xmlSAXParseDTD (xmlSAXHandlerPtr sax, |
| | const xmlChar *ExternalID, |
| | const xmlChar *SystemID); |
| | XMLPUBFUN xmlDtdPtr |
| | xmlParseDTD (const xmlChar *ExternalID, |
| | const xmlChar *SystemID); |
| | XMLPUBFUN xmlDtdPtr |
| | xmlIOParseDTD (xmlSAXHandlerPtr sax, |
| | xmlParserInputBufferPtr input, |
| | xmlCharEncoding enc); |
| | #endif |
| | #ifdef LIBXML_SAX1_ENABLED |
| | XMLPUBFUN int |
| | xmlParseBalancedChunkMemory(xmlDocPtr doc, |
| | xmlSAXHandlerPtr sax, |
| | void *user_data, |
| | int depth, |
| | const xmlChar *string, |
| | xmlNodePtr *lst); |
| | #endif |
| | XMLPUBFUN xmlParserErrors |
| | xmlParseInNodeContext (xmlNodePtr node, |
| | const char *data, |
| | int datalen, |
| | int options, |
| | xmlNodePtr *lst); |
| | #ifdef LIBXML_SAX1_ENABLED |
| | XMLPUBFUN int |
| | xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, |
| | xmlSAXHandlerPtr sax, |
| | void *user_data, |
| | int depth, |
| | const xmlChar *string, |
| | xmlNodePtr *lst, |
| | int recover); |
| | XML_DEPRECATED |
| | XMLPUBFUN int |
| | xmlParseExternalEntity (xmlDocPtr doc, |
| | xmlSAXHandlerPtr sax, |
| | void *user_data, |
| | int depth, |
| | const xmlChar *URL, |
| | const xmlChar *ID, |
| | xmlNodePtr *lst); |
| | #endif |
| | XMLPUBFUN int |
| | xmlParseCtxtExternalEntity(xmlParserCtxtPtr ctx, |
| | const xmlChar *URL, |
| | const xmlChar *ID, |
| | xmlNodePtr *lst); |
| |
|
| | |
| | |
| | |
| | XMLPUBFUN xmlParserCtxtPtr |
| | xmlNewParserCtxt (void); |
| | XMLPUBFUN xmlParserCtxtPtr |
| | xmlNewSAXParserCtxt (const xmlSAXHandler *sax, |
| | void *userData); |
| | XMLPUBFUN int |
| | xmlInitParserCtxt (xmlParserCtxtPtr ctxt); |
| | XMLPUBFUN void |
| | xmlClearParserCtxt (xmlParserCtxtPtr ctxt); |
| | XMLPUBFUN void |
| | xmlFreeParserCtxt (xmlParserCtxtPtr ctxt); |
| | #ifdef LIBXML_SAX1_ENABLED |
| | XML_DEPRECATED |
| | XMLPUBFUN void |
| | xmlSetupParserForBuffer (xmlParserCtxtPtr ctxt, |
| | const xmlChar* buffer, |
| | const char *filename); |
| | #endif |
| | XMLPUBFUN xmlParserCtxtPtr |
| | xmlCreateDocParserCtxt (const xmlChar *cur); |
| |
|
| | #ifdef LIBXML_LEGACY_ENABLED |
| | |
| | |
| | |
| | XML_DEPRECATED |
| | XMLPUBFUN int |
| | xmlGetFeaturesList (int *len, |
| | const char **result); |
| | XML_DEPRECATED |
| | XMLPUBFUN int |
| | xmlGetFeature (xmlParserCtxtPtr ctxt, |
| | const char *name, |
| | void *result); |
| | XML_DEPRECATED |
| | XMLPUBFUN int |
| | xmlSetFeature (xmlParserCtxtPtr ctxt, |
| | const char *name, |
| | void *value); |
| | #endif |
| |
|
| | #ifdef LIBXML_PUSH_ENABLED |
| | |
| | |
| | |
| | XMLPUBFUN xmlParserCtxtPtr |
| | xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, |
| | void *user_data, |
| | const char *chunk, |
| | int size, |
| | const char *filename); |
| | XMLPUBFUN int |
| | xmlParseChunk (xmlParserCtxtPtr ctxt, |
| | const char *chunk, |
| | int size, |
| | int terminate); |
| | #endif |
| |
|
| | |
| | |
| | |
| |
|
| | XMLPUBFUN xmlParserCtxtPtr |
| | xmlCreateIOParserCtxt (xmlSAXHandlerPtr sax, |
| | void *user_data, |
| | xmlInputReadCallback ioread, |
| | xmlInputCloseCallback ioclose, |
| | void *ioctx, |
| | xmlCharEncoding enc); |
| |
|
| | XMLPUBFUN xmlParserInputPtr |
| | xmlNewIOInputStream (xmlParserCtxtPtr ctxt, |
| | xmlParserInputBufferPtr input, |
| | xmlCharEncoding enc); |
| |
|
| | |
| | |
| | |
| | XMLPUBFUN const xmlParserNodeInfo* |
| | xmlParserFindNodeInfo (const xmlParserCtxtPtr ctxt, |
| | const xmlNodePtr node); |
| | XMLPUBFUN void |
| | xmlInitNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); |
| | XMLPUBFUN void |
| | xmlClearNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); |
| | XMLPUBFUN unsigned long |
| | xmlParserFindNodeInfoIndex(const xmlParserNodeInfoSeqPtr seq, |
| | const xmlNodePtr node); |
| | XMLPUBFUN void |
| | xmlParserAddNodeInfo (xmlParserCtxtPtr ctxt, |
| | const xmlParserNodeInfoPtr info); |
| |
|
| | |
| | |
| | |
| |
|
| | XMLPUBFUN void |
| | xmlSetExternalEntityLoader(xmlExternalEntityLoader f); |
| | XMLPUBFUN xmlExternalEntityLoader |
| | xmlGetExternalEntityLoader(void); |
| | XMLPUBFUN xmlParserInputPtr |
| | xmlLoadExternalEntity (const char *URL, |
| | const char *ID, |
| | xmlParserCtxtPtr ctxt); |
| |
|
| | |
| | |
| | |
| | XMLPUBFUN long |
| | xmlByteConsumed (xmlParserCtxtPtr ctxt); |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef enum { |
| | XML_PARSE_RECOVER = 1<<0, |
| | XML_PARSE_NOENT = 1<<1, |
| | XML_PARSE_DTDLOAD = 1<<2, |
| | XML_PARSE_DTDATTR = 1<<3, |
| | XML_PARSE_DTDVALID = 1<<4, |
| | XML_PARSE_NOERROR = 1<<5, |
| | XML_PARSE_NOWARNING = 1<<6, |
| | XML_PARSE_PEDANTIC = 1<<7, |
| | XML_PARSE_NOBLANKS = 1<<8, |
| | XML_PARSE_SAX1 = 1<<9, |
| | XML_PARSE_XINCLUDE = 1<<10, |
| | XML_PARSE_NONET = 1<<11, |
| | XML_PARSE_NODICT = 1<<12, |
| | XML_PARSE_NSCLEAN = 1<<13, |
| | XML_PARSE_NOCDATA = 1<<14, |
| | XML_PARSE_NOXINCNODE= 1<<15, |
| | XML_PARSE_COMPACT = 1<<16, |
| | |
| | |
| | XML_PARSE_OLD10 = 1<<17, |
| | XML_PARSE_NOBASEFIX = 1<<18, |
| | XML_PARSE_HUGE = 1<<19, |
| | XML_PARSE_OLDSAX = 1<<20, |
| | XML_PARSE_IGNORE_ENC= 1<<21, |
| | XML_PARSE_BIG_LINES = 1<<22 |
| | } xmlParserOption; |
| |
|
| | XMLPUBFUN void |
| | xmlCtxtReset (xmlParserCtxtPtr ctxt); |
| | XMLPUBFUN int |
| | xmlCtxtResetPush (xmlParserCtxtPtr ctxt, |
| | const char *chunk, |
| | int size, |
| | const char *filename, |
| | const char *encoding); |
| | XMLPUBFUN int |
| | xmlCtxtUseOptions (xmlParserCtxtPtr ctxt, |
| | int options); |
| | XMLPUBFUN void |
| | xmlCtxtSetMaxAmplification(xmlParserCtxtPtr ctxt, |
| | unsigned maxAmpl); |
| | XMLPUBFUN xmlDocPtr |
| | xmlReadDoc (const xmlChar *cur, |
| | const char *URL, |
| | const char *encoding, |
| | int options); |
| | XMLPUBFUN xmlDocPtr |
| | xmlReadFile (const char *URL, |
| | const char *encoding, |
| | int options); |
| | XMLPUBFUN xmlDocPtr |
| | xmlReadMemory (const char *buffer, |
| | int size, |
| | const char *URL, |
| | const char *encoding, |
| | int options); |
| | XMLPUBFUN xmlDocPtr |
| | xmlReadFd (int fd, |
| | const char *URL, |
| | const char *encoding, |
| | int options); |
| | XMLPUBFUN xmlDocPtr |
| | xmlReadIO (xmlInputReadCallback ioread, |
| | xmlInputCloseCallback ioclose, |
| | void *ioctx, |
| | const char *URL, |
| | const char *encoding, |
| | int options); |
| | XMLPUBFUN xmlDocPtr |
| | xmlCtxtReadDoc (xmlParserCtxtPtr ctxt, |
| | const xmlChar *cur, |
| | const char *URL, |
| | const char *encoding, |
| | int options); |
| | XMLPUBFUN xmlDocPtr |
| | xmlCtxtReadFile (xmlParserCtxtPtr ctxt, |
| | const char *filename, |
| | const char *encoding, |
| | int options); |
| | XMLPUBFUN xmlDocPtr |
| | xmlCtxtReadMemory (xmlParserCtxtPtr ctxt, |
| | const char *buffer, |
| | int size, |
| | const char *URL, |
| | const char *encoding, |
| | int options); |
| | XMLPUBFUN xmlDocPtr |
| | xmlCtxtReadFd (xmlParserCtxtPtr ctxt, |
| | int fd, |
| | const char *URL, |
| | const char *encoding, |
| | int options); |
| | XMLPUBFUN xmlDocPtr |
| | xmlCtxtReadIO (xmlParserCtxtPtr ctxt, |
| | xmlInputReadCallback ioread, |
| | xmlInputCloseCallback ioclose, |
| | void *ioctx, |
| | const char *URL, |
| | const char *encoding, |
| | int options); |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef enum { |
| | XML_WITH_THREAD = 1, |
| | XML_WITH_TREE = 2, |
| | XML_WITH_OUTPUT = 3, |
| | XML_WITH_PUSH = 4, |
| | XML_WITH_READER = 5, |
| | XML_WITH_PATTERN = 6, |
| | XML_WITH_WRITER = 7, |
| | XML_WITH_SAX1 = 8, |
| | XML_WITH_FTP = 9, |
| | XML_WITH_HTTP = 10, |
| | XML_WITH_VALID = 11, |
| | XML_WITH_HTML = 12, |
| | XML_WITH_LEGACY = 13, |
| | XML_WITH_C14N = 14, |
| | XML_WITH_CATALOG = 15, |
| | XML_WITH_XPATH = 16, |
| | XML_WITH_XPTR = 17, |
| | XML_WITH_XINCLUDE = 18, |
| | XML_WITH_ICONV = 19, |
| | XML_WITH_ISO8859X = 20, |
| | XML_WITH_UNICODE = 21, |
| | XML_WITH_REGEXP = 22, |
| | XML_WITH_AUTOMATA = 23, |
| | XML_WITH_EXPR = 24, |
| | XML_WITH_SCHEMAS = 25, |
| | XML_WITH_SCHEMATRON = 26, |
| | XML_WITH_MODULES = 27, |
| | XML_WITH_DEBUG = 28, |
| | XML_WITH_DEBUG_MEM = 29, |
| | XML_WITH_DEBUG_RUN = 30, |
| | XML_WITH_ZLIB = 31, |
| | XML_WITH_ICU = 32, |
| | XML_WITH_LZMA = 33, |
| | XML_WITH_NONE = 99999 |
| | } xmlFeature; |
| |
|
| | XMLPUBFUN int |
| | xmlHasFeature (xmlFeature feature); |
| |
|
| | #ifdef __cplusplus |
| | } |
| | #endif |
| | #endif |
| |
|