| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Summary: the core parser module | 2 * Summary: the core parser module |
| 3 * Description: Interfaces, constants and types related to the XML parser | 3 * Description: Interfaces, constants and types related to the XML parser |
| 4 * | 4 * |
| 5 * Copy: See Copyright for the status of this software. | 5 * Copy: See Copyright for the status of this software. |
| 6 * | 6 * |
| 7 * Author: Daniel Veillard | 7 * Author: Daniel Veillard |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef __XML_PARSER_H__ | 10 #ifndef __XML_PARSER_H__ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const xmlChar *encoding; /* the encoding string for entity */ | 73 const xmlChar *encoding; /* the encoding string for entity */ |
| 74 const xmlChar *version; /* the version string for entity */ | 74 const xmlChar *version; /* the version string for entity */ |
| 75 int standalone; /* Was that entity marked standalone */ | 75 int standalone; /* Was that entity marked standalone */ |
| 76 int id; /* an unique identifier for the entity */ | 76 int id; /* an unique identifier for the entity */ |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * xmlParserNodeInfo: | 80 * xmlParserNodeInfo: |
| 81 * | 81 * |
| 82 * The parser can be asked to collect Node informations, i.e. at what | 82 * The parser can be asked to collect Node informations, i.e. at what |
| 83 * place in the file they were detected. | 83 * place in the file they were detected. |
| 84 * NOTE: This is off by default and not very well tested. | 84 * NOTE: This is off by default and not very well tested. |
| 85 */ | 85 */ |
| 86 typedef struct _xmlParserNodeInfo xmlParserNodeInfo; | 86 typedef struct _xmlParserNodeInfo xmlParserNodeInfo; |
| 87 typedef xmlParserNodeInfo *xmlParserNodeInfoPtr; | 87 typedef xmlParserNodeInfo *xmlParserNodeInfoPtr; |
| 88 | 88 |
| 89 struct _xmlParserNodeInfo { | 89 struct _xmlParserNodeInfo { |
| 90 const struct _xmlNode* node; | 90 const struct _xmlNode* node; |
| 91 /* Position & line # that text that created the node begins & ends on */ | 91 /* Position & line # that text that created the node begins & ends on */ |
| 92 unsigned long begin_pos; | 92 unsigned long begin_pos; |
| 93 unsigned long begin_line; | 93 unsigned long begin_line; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 118 XML_PARSER_PROLOG, /* Misc* after internal subset */ | 118 XML_PARSER_PROLOG, /* Misc* after internal subset */ |
| 119 XML_PARSER_COMMENT, /* within a comment */ | 119 XML_PARSER_COMMENT, /* within a comment */ |
| 120 XML_PARSER_START_TAG, /* within a start tag */ | 120 XML_PARSER_START_TAG, /* within a start tag */ |
| 121 XML_PARSER_CONTENT, /* within the content */ | 121 XML_PARSER_CONTENT, /* within the content */ |
| 122 XML_PARSER_CDATA_SECTION, /* within a CDATA section */ | 122 XML_PARSER_CDATA_SECTION, /* within a CDATA section */ |
| 123 XML_PARSER_END_TAG, /* within a closing tag */ | 123 XML_PARSER_END_TAG, /* within a closing tag */ |
| 124 XML_PARSER_ENTITY_DECL, /* within an entity declaration */ | 124 XML_PARSER_ENTITY_DECL, /* within an entity declaration */ |
| 125 XML_PARSER_ENTITY_VALUE, /* within an entity value in a decl */ | 125 XML_PARSER_ENTITY_VALUE, /* within an entity value in a decl */ |
| 126 XML_PARSER_ATTRIBUTE_VALUE, /* within an attribute value */ | 126 XML_PARSER_ATTRIBUTE_VALUE, /* within an attribute value */ |
| 127 XML_PARSER_SYSTEM_LITERAL, /* within a SYSTEM value */ | 127 XML_PARSER_SYSTEM_LITERAL, /* within a SYSTEM value */ |
| 128 XML_PARSER_EPILOG, »» /* the Misc* after the last end tag */ | 128 XML_PARSER_EPILOG,» » /* the Misc* after the last end tag */ |
| 129 XML_PARSER_IGNORE, /* within an IGNORED section */ | 129 XML_PARSER_IGNORE, /* within an IGNORED section */ |
| 130 XML_PARSER_PUBLIC_LITERAL » /* within a PUBLIC value */ | 130 XML_PARSER_PUBLIC_LITERAL» /* within a PUBLIC value */ |
| 131 } xmlParserInputState; | 131 } xmlParserInputState; |
| 132 | 132 |
| 133 /** | 133 /** |
| 134 * XML_DETECT_IDS: | 134 * XML_DETECT_IDS: |
| 135 * | 135 * |
| 136 * Bit in the loadsubset context field to tell to do ID/REFs lookups. | 136 * Bit in the loadsubset context field to tell to do ID/REFs lookups. |
| 137 * Use it to initialize xmlLoadExtDtdDefaultValue. | 137 * Use it to initialize xmlLoadExtDtdDefaultValue. |
| 138 */ | 138 */ |
| 139 #define XML_DETECT_IDS 2 | 139 #define XML_DETECT_IDS 2 |
| 140 | 140 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 int hasExternalSubset; /* reference and external subset */ | 215 int hasExternalSubset; /* reference and external subset */ |
| 216 int hasPErefs; /* the internal subset has PE refs */ | 216 int hasPErefs; /* the internal subset has PE refs */ |
| 217 int external; /* are we parsing an external entity */ | 217 int external; /* are we parsing an external entity */ |
| 218 | 218 |
| 219 int valid; /* is the document valid */ | 219 int valid; /* is the document valid */ |
| 220 int validate; /* shall we try to validate ? */ | 220 int validate; /* shall we try to validate ? */ |
| 221 xmlValidCtxt vctxt; /* The validity context */ | 221 xmlValidCtxt vctxt; /* The validity context */ |
| 222 | 222 |
| 223 xmlParserInputState instate; /* current type of input */ | 223 xmlParserInputState instate; /* current type of input */ |
| 224 int token; /* next char look-ahead */ | 224 int token; /* next char look-ahead */ |
| 225 | 225 |
| 226 char *directory; /* the data directory */ | 226 char *directory; /* the data directory */ |
| 227 | 227 |
| 228 /* Node name stack */ | 228 /* Node name stack */ |
| 229 const xmlChar *name; /* Current parsed Node */ | 229 const xmlChar *name; /* Current parsed Node */ |
| 230 int nameNr; /* Depth of the parsing stack */ | 230 int nameNr; /* Depth of the parsing stack */ |
| 231 int nameMax; /* Max depth of the parsing stack */ | 231 int nameMax; /* Max depth of the parsing stack */ |
| 232 const xmlChar * *nameTab; /* array of nodes */ | 232 const xmlChar * *nameTab; /* array of nodes */ |
| 233 | 233 |
| 234 long nbChars; /* number of xmlChar processed */ | 234 long nbChars; /* number of xmlChar processed */ |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 xmlError lastError; | 301 xmlError lastError; |
| 302 xmlParserMode parseMode; /* the parser mode */ | 302 xmlParserMode parseMode; /* the parser mode */ |
| 303 unsigned long nbentities; /* number of entities references */ | 303 unsigned long nbentities; /* number of entities references */ |
| 304 unsigned long sizeentities; /* size of parsed entities */ | 304 unsigned long sizeentities; /* size of parsed entities */ |
| 305 | 305 |
| 306 /* for use by HTML non-recursive parser */ | 306 /* for use by HTML non-recursive parser */ |
| 307 xmlParserNodeInfo *nodeInfo; /* Current NodeInfo */ | 307 xmlParserNodeInfo *nodeInfo; /* Current NodeInfo */ |
| 308 int nodeInfoNr; /* Depth of the parsing stack */ | 308 int nodeInfoNr; /* Depth of the parsing stack */ |
| 309 int nodeInfoMax; /* Max depth of the parsing stack */ | 309 int nodeInfoMax; /* Max depth of the parsing stack */ |
| 310 xmlParserNodeInfo *nodeInfoTab; /* array of nodeInfos */ | 310 xmlParserNodeInfo *nodeInfoTab; /* array of nodeInfos */ |
| 311 |
| 312 int input_id; /* we need to label inputs */ |
| 313 unsigned long sizeentcopy; /* volume of entity copy */ |
| 311 }; | 314 }; |
| 312 | 315 |
| 313 /** | 316 /** |
| 314 * xmlSAXLocator: | 317 * xmlSAXLocator: |
| 315 * | 318 * |
| 316 * A SAX Locator. | 319 * A SAX Locator. |
| 317 */ | 320 */ |
| 318 struct _xmlSAXLocator { | 321 struct _xmlSAXLocator { |
| 319 const xmlChar *(*getPublicId)(void *ctx); | 322 const xmlChar *(*getPublicId)(void *ctx); |
| 320 const xmlChar *(*getSystemId)(void *ctx); | 323 const xmlChar *(*getSystemId)(void *ctx); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 * | 394 * |
| 392 * Get a parameter entity by name. | 395 * Get a parameter entity by name. |
| 393 * | 396 * |
| 394 * Returns the xmlEntityPtr if found. | 397 * Returns the xmlEntityPtr if found. |
| 395 */ | 398 */ |
| 396 typedef xmlEntityPtr (*getParameterEntitySAXFunc) (void *ctx, | 399 typedef xmlEntityPtr (*getParameterEntitySAXFunc) (void *ctx, |
| 397 const xmlChar *name); | 400 const xmlChar *name); |
| 398 /** | 401 /** |
| 399 * entityDeclSAXFunc: | 402 * entityDeclSAXFunc: |
| 400 * @ctx: the user data (XML parser context) | 403 * @ctx: the user data (XML parser context) |
| 401 * @name: the entity name | 404 * @name: the entity name |
| 402 * @type: the entity type | 405 * @type: the entity type |
| 403 * @publicId: The public ID of the entity | 406 * @publicId: The public ID of the entity |
| 404 * @systemId: The system ID of the entity | 407 * @systemId: The system ID of the entity |
| 405 * @content: the entity value (without processing). | 408 * @content: the entity value (without processing). |
| 406 * | 409 * |
| 407 * An entity definition has been parsed. | 410 * An entity definition has been parsed. |
| 408 */ | 411 */ |
| 409 typedef void (*entityDeclSAXFunc) (void *ctx, | 412 typedef void (*entityDeclSAXFunc) (void *ctx, |
| 410 const xmlChar *name, | 413 const xmlChar *name, |
| 411 int type, | 414 int type, |
| 412 const xmlChar *publicId, | 415 const xmlChar *publicId, |
| 413 const xmlChar *systemId, | 416 const xmlChar *systemId, |
| 414 xmlChar *content); | 417 xmlChar *content); |
| 415 /** | 418 /** |
| 416 * notationDeclSAXFunc: | 419 * notationDeclSAXFunc: |
| 417 * @ctx: the user data (XML parser context) | 420 * @ctx: the user data (XML parser context) |
| 418 * @name: The name of the notation | 421 * @name: The name of the notation |
| 419 * @publicId: The public ID of the entity | 422 * @publicId: The public ID of the entity |
| 420 * @systemId: The system ID of the entity | 423 * @systemId: The system ID of the entity |
| 421 * | 424 * |
| 422 * What to do when a notation declaration has been parsed. | 425 * What to do when a notation declaration has been parsed. |
| 423 */ | 426 */ |
| 424 typedef void (*notationDeclSAXFunc)(void *ctx, | 427 typedef void (*notationDeclSAXFunc)(void *ctx, |
| 425 const xmlChar *name, | 428 const xmlChar *name, |
| 426 const xmlChar *publicId, | 429 const xmlChar *publicId, |
| 427 const xmlChar *systemId); | 430 const xmlChar *systemId); |
| 428 /** | 431 /** |
| 429 * attributeDeclSAXFunc: | 432 * attributeDeclSAXFunc: |
| 430 * @ctx: the user data (XML parser context) | 433 * @ctx: the user data (XML parser context) |
| 431 * @elem: the name of the element | 434 * @elem: the name of the element |
| 432 * @fullname: the attribute name | 435 * @fullname: the attribute name |
| 433 * @type: the attribute type | 436 * @type: the attribute type |
| 434 * @def: the type of default value | 437 * @def: the type of default value |
| 435 * @defaultValue: the attribute default value | 438 * @defaultValue: the attribute default value |
| 436 * @tree: the tree of enumerated value set | 439 * @tree: the tree of enumerated value set |
| 437 * | 440 * |
| 438 * An attribute definition has been parsed. | 441 * An attribute definition has been parsed. |
| 439 */ | 442 */ |
| 440 typedef void (*attributeDeclSAXFunc)(void *ctx, | 443 typedef void (*attributeDeclSAXFunc)(void *ctx, |
| 441 const xmlChar *elem, | 444 const xmlChar *elem, |
| 442 const xmlChar *fullname, | 445 const xmlChar *fullname, |
| 443 int type, | 446 int type, |
| 444 int def, | 447 int def, |
| 445 const xmlChar *defaultValue, | 448 const xmlChar *defaultValue, |
| 446 xmlEnumerationPtr tree); | 449 xmlEnumerationPtr tree); |
| 447 /** | 450 /** |
| 448 * elementDeclSAXFunc: | 451 * elementDeclSAXFunc: |
| 449 * @ctx: the user data (XML parser context) | 452 * @ctx: the user data (XML parser context) |
| 450 * @name: the element name | 453 * @name: the element name |
| 451 * @type: the element type | 454 * @type: the element type |
| 452 * @content: the element value tree | 455 * @content: the element value tree |
| 453 * | 456 * |
| 454 * An element definition has been parsed. | 457 * An element definition has been parsed. |
| 455 */ | 458 */ |
| 456 typedef void (*elementDeclSAXFunc)(void *ctx, | 459 typedef void (*elementDeclSAXFunc)(void *ctx, |
| 457 const xmlChar *name, | 460 const xmlChar *name, |
| 458 int type, | 461 int type, |
| 459 xmlElementContentPtr content); | 462 xmlElementContentPtr content); |
| 460 /** | 463 /** |
| 461 * unparsedEntityDeclSAXFunc: | 464 * unparsedEntityDeclSAXFunc: |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 * the element. | 531 * the element. |
| 529 */ | 532 */ |
| 530 typedef void (*attributeSAXFunc) (void *ctx, | 533 typedef void (*attributeSAXFunc) (void *ctx, |
| 531 const xmlChar *name, | 534 const xmlChar *name, |
| 532 const xmlChar *value); | 535 const xmlChar *value); |
| 533 /** | 536 /** |
| 534 * referenceSAXFunc: | 537 * referenceSAXFunc: |
| 535 * @ctx: the user data (XML parser context) | 538 * @ctx: the user data (XML parser context) |
| 536 * @name: The entity name | 539 * @name: The entity name |
| 537 * | 540 * |
| 538 * Called when an entity reference is detected. | 541 * Called when an entity reference is detected. |
| 539 */ | 542 */ |
| 540 typedef void (*referenceSAXFunc) (void *ctx, | 543 typedef void (*referenceSAXFunc) (void *ctx, |
| 541 const xmlChar *name); | 544 const xmlChar *name); |
| 542 /** | 545 /** |
| 543 * charactersSAXFunc: | 546 * charactersSAXFunc: |
| 544 * @ctx: the user data (XML parser context) | 547 * @ctx: the user data (XML parser context) |
| 545 * @ch: a xmlChar string | 548 * @ch: a xmlChar string |
| 546 * @len: the number of xmlChar | 549 * @len: the number of xmlChar |
| 547 * | 550 * |
| 548 * Receiving some chars from the parser. | 551 * Receiving some chars from the parser. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 */ | 595 */ |
| 593 typedef void (*cdataBlockSAXFunc) ( | 596 typedef void (*cdataBlockSAXFunc) ( |
| 594 void *ctx, | 597 void *ctx, |
| 595 const xmlChar *value, | 598 const xmlChar *value, |
| 596 int len); | 599 int len); |
| 597 /** | 600 /** |
| 598 * warningSAXFunc: | 601 * warningSAXFunc: |
| 599 * @ctx: an XML parser context | 602 * @ctx: an XML parser context |
| 600 * @msg: the message to display/transmit | 603 * @msg: the message to display/transmit |
| 601 * @...: extra parameters for the message display | 604 * @...: extra parameters for the message display |
| 602 * | 605 * |
| 603 * Display and format a warning messages, callback. | 606 * Display and format a warning messages, callback. |
| 604 */ | 607 */ |
| 605 typedef void (XMLCDECL *warningSAXFunc) (void *ctx, | 608 typedef void (XMLCDECL *warningSAXFunc) (void *ctx, |
| 606 const char *msg, ...) LIBXML_ATTR_FORMAT(2,3); | 609 const char *msg, ...) LIBXML_ATTR_FORMAT(2,3); |
| 607 /** | 610 /** |
| 608 * errorSAXFunc: | 611 * errorSAXFunc: |
| 609 * @ctx: an XML parser context | 612 * @ctx: an XML parser context |
| 610 * @msg: the message to display/transmit | 613 * @msg: the message to display/transmit |
| 611 * @...: extra parameters for the message display | 614 * @...: extra parameters for the message display |
| 612 * | 615 * |
| 613 * Display and format an error messages, callback. | 616 * Display and format an error messages, callback. |
| 614 */ | 617 */ |
| 615 typedef void (XMLCDECL *errorSAXFunc) (void *ctx, | 618 typedef void (XMLCDECL *errorSAXFunc) (void *ctx, |
| 616 const char *msg, ...) LIBXML_ATTR_FORMAT(2,3); | 619 const char *msg, ...) LIBXML_ATTR_FORMAT(2,3); |
| 617 /** | 620 /** |
| 618 * fatalErrorSAXFunc: | 621 * fatalErrorSAXFunc: |
| 619 * @ctx: an XML parser context | 622 * @ctx: an XML parser context |
| 620 * @msg: the message to display/transmit | 623 * @msg: the message to display/transmit |
| 621 * @...: extra parameters for the message display | 624 * @...: extra parameters for the message display |
| 622 * | 625 * |
| 623 * Display and format fatal error messages, callback. | 626 * Display and format fatal error messages, callback. |
| 624 * Note: so far fatalError() SAX callbacks are not used, error() | 627 * Note: so far fatalError() SAX callbacks are not used, error() |
| 625 * get all the callbacks for errors. | 628 * get all the callbacks for errors. |
| 626 */ | 629 */ |
| 627 typedef void (XMLCDECL *fatalErrorSAXFunc) (void *ctx, | 630 typedef void (XMLCDECL *fatalErrorSAXFunc) (void *ctx, |
| 628 const char *msg, ...) LIBXML_ATTR_FORMAT(2,3); | 631 const char *msg, ...) LIBXML_ATTR_FORMAT(2,3); |
| 629 /** | 632 /** |
| 630 * isStandaloneSAXFunc: | 633 * isStandaloneSAXFunc: |
| 631 * @ctx: the user data (XML parser context) | 634 * @ctx: the user data (XML parser context) |
| 632 * | 635 * |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 | 691 |
| 689 typedef void (*startElementNsSAX2Func) (void *ctx, | 692 typedef void (*startElementNsSAX2Func) (void *ctx, |
| 690 const xmlChar *localname, | 693 const xmlChar *localname, |
| 691 const xmlChar *prefix, | 694 const xmlChar *prefix, |
| 692 const xmlChar *URI, | 695 const xmlChar *URI, |
| 693 int nb_namespaces, | 696 int nb_namespaces, |
| 694 const xmlChar **namespaces, | 697 const xmlChar **namespaces, |
| 695 int nb_attributes, | 698 int nb_attributes, |
| 696 int nb_defaulted, | 699 int nb_defaulted, |
| 697 const xmlChar **attributes); | 700 const xmlChar **attributes); |
| 698 | 701 |
| 699 /** | 702 /** |
| 700 * endElementNsSAX2Func: | 703 * endElementNsSAX2Func: |
| 701 * @ctx: the user data (XML parser context) | 704 * @ctx: the user data (XML parser context) |
| 702 * @localname: the local name of the element | 705 * @localname: the local name of the element |
| 703 * @prefix: the element namespace prefix if available | 706 * @prefix: the element namespace prefix if available |
| 704 * @URI: the element namespace name if available | 707 * @URI: the element namespace name if available |
| 705 * | 708 * |
| 706 * SAX2 callback when an element end has been detected by the parser. | 709 * SAX2 callback when an element end has been detected by the parser. |
| 707 * It provides the namespace informations for the element. | 710 * It provides the namespace informations for the element. |
| 708 */ | 711 */ |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 cdataBlockSAXFunc cdataBlock; | 786 cdataBlockSAXFunc cdataBlock; |
| 784 externalSubsetSAXFunc externalSubset; | 787 externalSubsetSAXFunc externalSubset; |
| 785 unsigned int initialized; | 788 unsigned int initialized; |
| 786 }; | 789 }; |
| 787 | 790 |
| 788 | 791 |
| 789 /** | 792 /** |
| 790 * xmlExternalEntityLoader: | 793 * xmlExternalEntityLoader: |
| 791 * @URL: The System ID of the resource requested | 794 * @URL: The System ID of the resource requested |
| 792 * @ID: The Public ID of the resource requested | 795 * @ID: The Public ID of the resource requested |
| 793 * @context: the XML parser context | 796 * @context: the XML parser context |
| 794 * | 797 * |
| 795 * External entity loaders types. | 798 * External entity loaders types. |
| 796 * | 799 * |
| 797 * Returns the entity input parser. | 800 * Returns the entity input parser. |
| 798 */ | 801 */ |
| 799 typedef xmlParserInputPtr (*xmlExternalEntityLoader) (const char *URL, | 802 typedef xmlParserInputPtr (*xmlExternalEntityLoader) (const char *URL, |
| 800 const char *ID, | 803 const char *ID, |
| 801 xmlParserCtxtPtr context); | 804 xmlParserCtxtPtr context); |
| 802 | 805 |
| 803 #ifdef __cplusplus | 806 #ifdef __cplusplus |
| 804 } | 807 } |
| 805 #endif | 808 #endif |
| 806 | 809 |
| 807 #include <libxml/encoding.h> | 810 #include <libxml/encoding.h> |
| 808 #include <libxml/xmlIO.h> | 811 #include <libxml/xmlIO.h> |
| 809 #include <libxml/globals.h> | 812 #include <libxml/globals.h> |
| 810 | 813 |
| 811 #ifdef __cplusplus | 814 #ifdef __cplusplus |
| 812 extern "C" { | 815 extern "C" { |
| 813 #endif | 816 #endif |
| 814 | 817 |
| 815 | 818 |
| 816 /* | 819 /* |
| 817 * Init/Cleanup | 820 * Init/Cleanup |
| 818 */ | 821 */ |
| 819 XMLPUBFUN void XMLCALL» » | 822 XMLPUBFUN void XMLCALL |
| 820 xmlInitParser (void); | 823 xmlInitParser (void); |
| 821 XMLPUBFUN void XMLCALL» » | 824 XMLPUBFUN void XMLCALL |
| 822 xmlCleanupParser (void); | 825 xmlCleanupParser (void); |
| 823 | 826 |
| 824 /* | 827 /* |
| 825 * Input functions | 828 * Input functions |
| 826 */ | 829 */ |
| 827 XMLPUBFUN int XMLCALL» » | 830 XMLPUBFUN int XMLCALL |
| 828 xmlParserInputRead (xmlParserInputPtr in, | 831 xmlParserInputRead (xmlParserInputPtr in, |
| 829 int len); | 832 int len); |
| 830 XMLPUBFUN int XMLCALL» » | 833 XMLPUBFUN int XMLCALL |
| 831 xmlParserInputGrow (xmlParserInputPtr in, | 834 xmlParserInputGrow (xmlParserInputPtr in, |
| 832 int len); | 835 int len); |
| 833 | 836 |
| 834 /* | 837 /* |
| 835 * Basic parsing Interfaces | 838 * Basic parsing Interfaces |
| 836 */ | 839 */ |
| 837 #ifdef LIBXML_SAX1_ENABLED | 840 #ifdef LIBXML_SAX1_ENABLED |
| 838 XMLPUBFUN xmlDocPtr XMLCALL» | 841 XMLPUBFUN xmlDocPtr XMLCALL |
| 839 xmlParseDoc (const xmlChar *cur); | 842 xmlParseDoc (const xmlChar *cur); |
| 840 XMLPUBFUN xmlDocPtr XMLCALL» | 843 XMLPUBFUN xmlDocPtr XMLCALL |
| 841 xmlParseFile (const char *filename); | 844 xmlParseFile (const char *filename); |
| 842 XMLPUBFUN xmlDocPtr XMLCALL» | 845 XMLPUBFUN xmlDocPtr XMLCALL |
| 843 xmlParseMemory (const char *buffer, | 846 xmlParseMemory (const char *buffer, |
| 844 int size); | 847 int size); |
| 845 #endif /* LIBXML_SAX1_ENABLED */ | 848 #endif /* LIBXML_SAX1_ENABLED */ |
| 846 XMLPUBFUN int XMLCALL» » | 849 XMLPUBFUN int XMLCALL |
| 847 xmlSubstituteEntitiesDefault(int val); | 850 xmlSubstituteEntitiesDefault(int val); |
| 848 XMLPUBFUN int XMLCALL» » | 851 XMLPUBFUN int XMLCALL |
| 849 xmlKeepBlanksDefault (int val); | 852 xmlKeepBlanksDefault (int val); |
| 850 XMLPUBFUN void XMLCALL» » | 853 XMLPUBFUN void XMLCALL |
| 851 xmlStopParser (xmlParserCtxtPtr ctxt); | 854 xmlStopParser (xmlParserCtxtPtr ctxt); |
| 852 XMLPUBFUN int XMLCALL» » | 855 XMLPUBFUN int XMLCALL |
| 853 xmlPedanticParserDefault(int val); | 856 xmlPedanticParserDefault(int val); |
| 854 XMLPUBFUN int XMLCALL» » | 857 XMLPUBFUN int XMLCALL |
| 855 xmlLineNumbersDefault (int val); | 858 xmlLineNumbersDefault (int val); |
| 856 | 859 |
| 857 #ifdef LIBXML_SAX1_ENABLED | 860 #ifdef LIBXML_SAX1_ENABLED |
| 858 /* | 861 /* |
| 859 * Recovery mode | 862 * Recovery mode |
| 860 */ | 863 */ |
| 861 XMLPUBFUN xmlDocPtr XMLCALL» | 864 XMLPUBFUN xmlDocPtr XMLCALL |
| 862 xmlRecoverDoc (const xmlChar *cur); | 865 xmlRecoverDoc (const xmlChar *cur); |
| 863 XMLPUBFUN xmlDocPtr XMLCALL» | 866 XMLPUBFUN xmlDocPtr XMLCALL |
| 864 xmlRecoverMemory (const char *buffer, | 867 xmlRecoverMemory (const char *buffer, |
| 865 int size); | 868 int size); |
| 866 XMLPUBFUN xmlDocPtr XMLCALL» | 869 XMLPUBFUN xmlDocPtr XMLCALL |
| 867 xmlRecoverFile (const char *filename); | 870 xmlRecoverFile (const char *filename); |
| 868 #endif /* LIBXML_SAX1_ENABLED */ | 871 #endif /* LIBXML_SAX1_ENABLED */ |
| 869 | 872 |
| 870 /* | 873 /* |
| 871 * Less common routines and SAX interfaces | 874 * Less common routines and SAX interfaces |
| 872 */ | 875 */ |
| 873 XMLPUBFUN int XMLCALL» » | 876 XMLPUBFUN int XMLCALL |
| 874 xmlParseDocument (xmlParserCtxtPtr ctxt); | 877 xmlParseDocument (xmlParserCtxtPtr ctxt); |
| 875 XMLPUBFUN int XMLCALL» » | 878 XMLPUBFUN int XMLCALL |
| 876 xmlParseExtParsedEnt (xmlParserCtxtPtr ctxt); | 879 xmlParseExtParsedEnt (xmlParserCtxtPtr ctxt); |
| 877 #ifdef LIBXML_SAX1_ENABLED | 880 #ifdef LIBXML_SAX1_ENABLED |
| 878 XMLPUBFUN int XMLCALL» » | 881 XMLPUBFUN int XMLCALL |
| 879 xmlSAXUserParseFile (xmlSAXHandlerPtr sax, | 882 xmlSAXUserParseFile (xmlSAXHandlerPtr sax, |
| 880 void *user_data, | 883 void *user_data, |
| 881 const char *filename); | 884 const char *filename); |
| 882 XMLPUBFUN int XMLCALL» » | 885 XMLPUBFUN int XMLCALL |
| 883 xmlSAXUserParseMemory (xmlSAXHandlerPtr sax, | 886 xmlSAXUserParseMemory (xmlSAXHandlerPtr sax, |
| 884 void *user_data, | 887 void *user_data, |
| 885 const char *buffer, | 888 const char *buffer, |
| 886 int size); | 889 int size); |
| 887 XMLPUBFUN xmlDocPtr XMLCALL» | 890 XMLPUBFUN xmlDocPtr XMLCALL |
| 888 xmlSAXParseDoc (xmlSAXHandlerPtr sax, | 891 xmlSAXParseDoc (xmlSAXHandlerPtr sax, |
| 889 const xmlChar *cur, | 892 const xmlChar *cur, |
| 890 int recovery); | 893 int recovery); |
| 891 XMLPUBFUN xmlDocPtr XMLCALL» | 894 XMLPUBFUN xmlDocPtr XMLCALL |
| 892 xmlSAXParseMemory (xmlSAXHandlerPtr sax, | 895 xmlSAXParseMemory (xmlSAXHandlerPtr sax, |
| 893 const char *buffer, | 896 const char *buffer, |
| 894 » int size, | 897 » » » » » int size, |
| 895 int recovery); | 898 int recovery); |
| 896 XMLPUBFUN xmlDocPtr XMLCALL» | 899 XMLPUBFUN xmlDocPtr XMLCALL |
| 897 xmlSAXParseMemoryWithData (xmlSAXHandlerPtr sax, | 900 xmlSAXParseMemoryWithData (xmlSAXHandlerPtr sax, |
| 898 const char *buffer, | 901 const char *buffer, |
| 899 » int size, | 902 » » » » » int size, |
| 900 int recovery, | 903 int recovery, |
| 901 void *data); | 904 void *data); |
| 902 XMLPUBFUN xmlDocPtr XMLCALL» | 905 XMLPUBFUN xmlDocPtr XMLCALL |
| 903 xmlSAXParseFile (xmlSAXHandlerPtr sax, | 906 xmlSAXParseFile (xmlSAXHandlerPtr sax, |
| 904 const char *filename, | 907 const char *filename, |
| 905 int recovery); | 908 int recovery); |
| 906 XMLPUBFUN xmlDocPtr XMLCALL» | 909 XMLPUBFUN xmlDocPtr XMLCALL |
| 907 xmlSAXParseFileWithData (xmlSAXHandlerPtr sax, | 910 xmlSAXParseFileWithData (xmlSAXHandlerPtr sax, |
| 908 const char *filename, | 911 const char *filename, |
| 909 int recovery, | 912 int recovery, |
| 910 void *data); | 913 void *data); |
| 911 XMLPUBFUN xmlDocPtr XMLCALL» | 914 XMLPUBFUN xmlDocPtr XMLCALL |
| 912 xmlSAXParseEntity (xmlSAXHandlerPtr sax, | 915 xmlSAXParseEntity (xmlSAXHandlerPtr sax, |
| 913 const char *filename); | 916 const char *filename); |
| 914 XMLPUBFUN xmlDocPtr XMLCALL» | 917 XMLPUBFUN xmlDocPtr XMLCALL |
| 915 xmlParseEntity (const char *filename); | 918 xmlParseEntity (const char *filename); |
| 916 #endif /* LIBXML_SAX1_ENABLED */ | 919 #endif /* LIBXML_SAX1_ENABLED */ |
| 917 | 920 |
| 918 #ifdef LIBXML_VALID_ENABLED | 921 #ifdef LIBXML_VALID_ENABLED |
| 919 XMLPUBFUN xmlDtdPtr XMLCALL» | 922 XMLPUBFUN xmlDtdPtr XMLCALL |
| 920 xmlSAXParseDTD (xmlSAXHandlerPtr sax, | 923 xmlSAXParseDTD (xmlSAXHandlerPtr sax, |
| 921 const xmlChar *ExternalID, | 924 const xmlChar *ExternalID, |
| 922 const xmlChar *SystemID); | 925 const xmlChar *SystemID); |
| 923 XMLPUBFUN xmlDtdPtr XMLCALL» | 926 XMLPUBFUN xmlDtdPtr XMLCALL |
| 924 xmlParseDTD (const xmlChar *ExternalID, | 927 xmlParseDTD (const xmlChar *ExternalID, |
| 925 const xmlChar *SystemID); | 928 const xmlChar *SystemID); |
| 926 XMLPUBFUN xmlDtdPtr XMLCALL» | 929 XMLPUBFUN xmlDtdPtr XMLCALL |
| 927 xmlIOParseDTD (xmlSAXHandlerPtr sax, | 930 xmlIOParseDTD (xmlSAXHandlerPtr sax, |
| 928 xmlParserInputBufferPtr input, | 931 xmlParserInputBufferPtr input, |
| 929 xmlCharEncoding enc); | 932 xmlCharEncoding enc); |
| 930 #endif /* LIBXML_VALID_ENABLE */ | 933 #endif /* LIBXML_VALID_ENABLE */ |
| 931 #ifdef LIBXML_SAX1_ENABLED | 934 #ifdef LIBXML_SAX1_ENABLED |
| 932 XMLPUBFUN int XMLCALL» | 935 XMLPUBFUN int XMLCALL |
| 933 xmlParseBalancedChunkMemory(xmlDocPtr doc, | 936 xmlParseBalancedChunkMemory(xmlDocPtr doc, |
| 934 xmlSAXHandlerPtr sax, | 937 xmlSAXHandlerPtr sax, |
| 935 void *user_data, | 938 void *user_data, |
| 936 int depth, | 939 int depth, |
| 937 const xmlChar *string, | 940 const xmlChar *string, |
| 938 xmlNodePtr *lst); | 941 xmlNodePtr *lst); |
| 939 #endif /* LIBXML_SAX1_ENABLED */ | 942 #endif /* LIBXML_SAX1_ENABLED */ |
| 940 XMLPUBFUN xmlParserErrors XMLCALL | 943 XMLPUBFUN xmlParserErrors XMLCALL |
| 941 xmlParseInNodeContext (xmlNodePtr node, | 944 xmlParseInNodeContext (xmlNodePtr node, |
| 942 const char *data, | 945 const char *data, |
| 943 int datalen, | 946 int datalen, |
| 944 int options, | 947 int options, |
| 945 xmlNodePtr *lst); | 948 xmlNodePtr *lst); |
| 946 #ifdef LIBXML_SAX1_ENABLED | 949 #ifdef LIBXML_SAX1_ENABLED |
| 947 XMLPUBFUN int XMLCALL | 950 XMLPUBFUN int XMLCALL |
| 948 xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, | 951 xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, |
| 949 xmlSAXHandlerPtr sax, | 952 xmlSAXHandlerPtr sax, |
| 950 void *user_data, | 953 void *user_data, |
| 951 int depth, | 954 int depth, |
| 952 const xmlChar *string, | 955 const xmlChar *string, |
| 953 xmlNodePtr *lst, | 956 xmlNodePtr *lst, |
| 954 int recover); | 957 int recover); |
| 955 XMLPUBFUN int XMLCALL» » | 958 XMLPUBFUN int XMLCALL |
| 956 xmlParseExternalEntity (xmlDocPtr doc, | 959 xmlParseExternalEntity (xmlDocPtr doc, |
| 957 xmlSAXHandlerPtr sax, | 960 xmlSAXHandlerPtr sax, |
| 958 void *user_data, | 961 void *user_data, |
| 959 int depth, | 962 int depth, |
| 960 const xmlChar *URL, | 963 const xmlChar *URL, |
| 961 const xmlChar *ID, | 964 const xmlChar *ID, |
| 962 xmlNodePtr *lst); | 965 xmlNodePtr *lst); |
| 963 #endif /* LIBXML_SAX1_ENABLED */ | 966 #endif /* LIBXML_SAX1_ENABLED */ |
| 964 XMLPUBFUN int XMLCALL» » | 967 XMLPUBFUN int XMLCALL |
| 965 xmlParseCtxtExternalEntity(xmlParserCtxtPtr ctx, | 968 xmlParseCtxtExternalEntity(xmlParserCtxtPtr ctx, |
| 966 const xmlChar *URL, | 969 const xmlChar *URL, |
| 967 const xmlChar *ID, | 970 const xmlChar *ID, |
| 968 xmlNodePtr *lst); | 971 xmlNodePtr *lst); |
| 969 | 972 |
| 970 /* | 973 /* |
| 971 * Parser contexts handling. | 974 * Parser contexts handling. |
| 972 */ | 975 */ |
| 973 XMLPUBFUN xmlParserCtxtPtr XMLCALL» | 976 XMLPUBFUN xmlParserCtxtPtr XMLCALL |
| 974 xmlNewParserCtxt (void); | 977 xmlNewParserCtxt (void); |
| 975 XMLPUBFUN int XMLCALL» » | 978 XMLPUBFUN int XMLCALL |
| 976 xmlInitParserCtxt (xmlParserCtxtPtr ctxt); | 979 xmlInitParserCtxt (xmlParserCtxtPtr ctxt); |
| 977 XMLPUBFUN void XMLCALL» » | 980 XMLPUBFUN void XMLCALL |
| 978 xmlClearParserCtxt (xmlParserCtxtPtr ctxt); | 981 xmlClearParserCtxt (xmlParserCtxtPtr ctxt); |
| 979 XMLPUBFUN void XMLCALL» » | 982 XMLPUBFUN void XMLCALL |
| 980 xmlFreeParserCtxt (xmlParserCtxtPtr ctxt); | 983 xmlFreeParserCtxt (xmlParserCtxtPtr ctxt); |
| 981 #ifdef LIBXML_SAX1_ENABLED | 984 #ifdef LIBXML_SAX1_ENABLED |
| 982 XMLPUBFUN void XMLCALL» » | 985 XMLPUBFUN void XMLCALL |
| 983 xmlSetupParserForBuffer (xmlParserCtxtPtr ctxt, | 986 xmlSetupParserForBuffer (xmlParserCtxtPtr ctxt, |
| 984 const xmlChar* buffer, | 987 const xmlChar* buffer, |
| 985 const char *filename); | 988 const char *filename); |
| 986 #endif /* LIBXML_SAX1_ENABLED */ | 989 #endif /* LIBXML_SAX1_ENABLED */ |
| 987 XMLPUBFUN xmlParserCtxtPtr XMLCALL | 990 XMLPUBFUN xmlParserCtxtPtr XMLCALL |
| 988 xmlCreateDocParserCtxt (const xmlChar *cur); | 991 xmlCreateDocParserCtxt (const xmlChar *cur); |
| 989 | 992 |
| 990 #ifdef LIBXML_LEGACY_ENABLED | 993 #ifdef LIBXML_LEGACY_ENABLED |
| 991 /* | 994 /* |
| 992 * Reading/setting optional parsing features. | 995 * Reading/setting optional parsing features. |
| 993 */ | 996 */ |
| 994 XMLPUBFUN int XMLCALL» » | 997 XMLPUBFUN int XMLCALL |
| 995 xmlGetFeaturesList (int *len, | 998 xmlGetFeaturesList (int *len, |
| 996 const char **result); | 999 const char **result); |
| 997 XMLPUBFUN int XMLCALL» » | 1000 XMLPUBFUN int XMLCALL |
| 998 xmlGetFeature (xmlParserCtxtPtr ctxt, | 1001 xmlGetFeature (xmlParserCtxtPtr ctxt, |
| 999 const char *name, | 1002 const char *name, |
| 1000 void *result); | 1003 void *result); |
| 1001 XMLPUBFUN int XMLCALL» » | 1004 XMLPUBFUN int XMLCALL |
| 1002 xmlSetFeature (xmlParserCtxtPtr ctxt, | 1005 xmlSetFeature (xmlParserCtxtPtr ctxt, |
| 1003 const char *name, | 1006 const char *name, |
| 1004 void *value); | 1007 void *value); |
| 1005 #endif /* LIBXML_LEGACY_ENABLED */ | 1008 #endif /* LIBXML_LEGACY_ENABLED */ |
| 1006 | 1009 |
| 1007 #ifdef LIBXML_PUSH_ENABLED | 1010 #ifdef LIBXML_PUSH_ENABLED |
| 1008 /* | 1011 /* |
| 1009 * Interfaces for the Push mode. | 1012 * Interfaces for the Push mode. |
| 1010 */ | 1013 */ |
| 1011 XMLPUBFUN xmlParserCtxtPtr XMLCALL | 1014 XMLPUBFUN xmlParserCtxtPtr XMLCALL |
| 1012 xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, | 1015 xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, |
| 1013 void *user_data, | 1016 void *user_data, |
| 1014 const char *chunk, | 1017 const char *chunk, |
| 1015 int size, | 1018 int size, |
| 1016 const char *filename); | 1019 const char *filename); |
| 1017 XMLPUBFUN int XMLCALL» » | 1020 XMLPUBFUN int XMLCALL |
| 1018 xmlParseChunk (xmlParserCtxtPtr ctxt, | 1021 xmlParseChunk (xmlParserCtxtPtr ctxt, |
| 1019 const char *chunk, | 1022 const char *chunk, |
| 1020 int size, | 1023 int size, |
| 1021 int terminate); | 1024 int terminate); |
| 1022 #endif /* LIBXML_PUSH_ENABLED */ | 1025 #endif /* LIBXML_PUSH_ENABLED */ |
| 1023 | 1026 |
| 1024 /* | 1027 /* |
| 1025 * Special I/O mode. | 1028 * Special I/O mode. |
| 1026 */ | 1029 */ |
| 1027 | 1030 |
| 1028 XMLPUBFUN xmlParserCtxtPtr XMLCALL | 1031 XMLPUBFUN xmlParserCtxtPtr XMLCALL |
| 1029 xmlCreateIOParserCtxt (xmlSAXHandlerPtr sax, | 1032 xmlCreateIOParserCtxt (xmlSAXHandlerPtr sax, |
| 1030 void *user_data, | 1033 void *user_data, |
| 1031 xmlInputReadCallback ioread, | 1034 xmlInputReadCallback ioread, |
| 1032 xmlInputCloseCallback ioclose, | 1035 xmlInputCloseCallback ioclose, |
| 1033 void *ioctx, | 1036 void *ioctx, |
| 1034 xmlCharEncoding enc); | 1037 xmlCharEncoding enc); |
| 1035 | 1038 |
| 1036 XMLPUBFUN xmlParserInputPtr XMLCALL | 1039 XMLPUBFUN xmlParserInputPtr XMLCALL |
| 1037 xmlNewIOInputStream (xmlParserCtxtPtr ctxt, | 1040 xmlNewIOInputStream (xmlParserCtxtPtr ctxt, |
| 1038 xmlParserInputBufferPtr input, | 1041 xmlParserInputBufferPtr input, |
| 1039 xmlCharEncoding enc); | 1042 xmlCharEncoding enc); |
| 1040 | 1043 |
| 1041 /* | 1044 /* |
| 1042 * Node infos. | 1045 * Node infos. |
| 1043 */ | 1046 */ |
| 1044 XMLPUBFUN const xmlParserNodeInfo* XMLCALL | 1047 XMLPUBFUN const xmlParserNodeInfo* XMLCALL |
| 1045 xmlParserFindNodeInfo (const xmlParserCtxtPtr ctxt, | 1048 xmlParserFindNodeInfo (const xmlParserCtxtPtr ctxt, |
| 1046 const xmlNodePtr node); | 1049 const xmlNodePtr node); |
| 1047 XMLPUBFUN void XMLCALL» » | 1050 XMLPUBFUN void XMLCALL |
| 1048 xmlInitNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); | 1051 xmlInitNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); |
| 1049 XMLPUBFUN void XMLCALL» » | 1052 XMLPUBFUN void XMLCALL |
| 1050 xmlClearNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); | 1053 xmlClearNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); |
| 1051 XMLPUBFUN unsigned long XMLCALL | 1054 XMLPUBFUN unsigned long XMLCALL |
| 1052 xmlParserFindNodeInfoIndex(const xmlParserNodeInfoSeqPtr seq, | 1055 xmlParserFindNodeInfoIndex(const xmlParserNodeInfoSeqPtr seq, |
| 1053 const xmlNodePtr node); | 1056 const xmlNodePtr node); |
| 1054 XMLPUBFUN void XMLCALL» » | 1057 XMLPUBFUN void XMLCALL |
| 1055 xmlParserAddNodeInfo (xmlParserCtxtPtr ctxt, | 1058 xmlParserAddNodeInfo (xmlParserCtxtPtr ctxt, |
| 1056 const xmlParserNodeInfoPtr info); | 1059 const xmlParserNodeInfoPtr info); |
| 1057 | 1060 |
| 1058 /* | 1061 /* |
| 1059 * External entities handling actually implemented in xmlIO. | 1062 * External entities handling actually implemented in xmlIO. |
| 1060 */ | 1063 */ |
| 1061 | 1064 |
| 1062 XMLPUBFUN void XMLCALL» » | 1065 XMLPUBFUN void XMLCALL |
| 1063 xmlSetExternalEntityLoader(xmlExternalEntityLoader f); | 1066 xmlSetExternalEntityLoader(xmlExternalEntityLoader f); |
| 1064 XMLPUBFUN xmlExternalEntityLoader XMLCALL | 1067 XMLPUBFUN xmlExternalEntityLoader XMLCALL |
| 1065 xmlGetExternalEntityLoader(void); | 1068 xmlGetExternalEntityLoader(void); |
| 1066 XMLPUBFUN xmlParserInputPtr XMLCALL | 1069 XMLPUBFUN xmlParserInputPtr XMLCALL |
| 1067 xmlLoadExternalEntity (const char *URL, | 1070 xmlLoadExternalEntity (const char *URL, |
| 1068 const char *ID, | 1071 const char *ID, |
| 1069 xmlParserCtxtPtr ctxt); | 1072 xmlParserCtxtPtr ctxt); |
| 1070 | 1073 |
| 1071 /* | 1074 /* |
| 1072 * Index lookup, actually implemented in the encoding module | 1075 * Index lookup, actually implemented in the encoding module |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1098 XML_PARSE_NONET = 1<<11,/* Forbid network access */ | 1101 XML_PARSE_NONET = 1<<11,/* Forbid network access */ |
| 1099 XML_PARSE_NODICT = 1<<12,/* Do not reuse the context dictionnary */ | 1102 XML_PARSE_NODICT = 1<<12,/* Do not reuse the context dictionnary */ |
| 1100 XML_PARSE_NSCLEAN = 1<<13,/* remove redundant namespaces declarations */ | 1103 XML_PARSE_NSCLEAN = 1<<13,/* remove redundant namespaces declarations */ |
| 1101 XML_PARSE_NOCDATA = 1<<14,/* merge CDATA as text nodes */ | 1104 XML_PARSE_NOCDATA = 1<<14,/* merge CDATA as text nodes */ |
| 1102 XML_PARSE_NOXINCNODE= 1<<15,/* do not generate XINCLUDE START/END nodes */ | 1105 XML_PARSE_NOXINCNODE= 1<<15,/* do not generate XINCLUDE START/END nodes */ |
| 1103 XML_PARSE_COMPACT = 1<<16,/* compact small text nodes; no modification of | 1106 XML_PARSE_COMPACT = 1<<16,/* compact small text nodes; no modification of |
| 1104 the tree allowed afterwards (will possibly | 1107 the tree allowed afterwards (will possibly |
| 1105 crash if you try to modify the tree) */ | 1108 crash if you try to modify the tree) */ |
| 1106 XML_PARSE_OLD10 = 1<<17,/* parse using XML-1.0 before update 5 */ | 1109 XML_PARSE_OLD10 = 1<<17,/* parse using XML-1.0 before update 5 */ |
| 1107 XML_PARSE_NOBASEFIX = 1<<18,/* do not fixup XINCLUDE xml:base uris */ | 1110 XML_PARSE_NOBASEFIX = 1<<18,/* do not fixup XINCLUDE xml:base uris */ |
| 1108 XML_PARSE_HUGE = 1<<19, /* relax any hardcoded limit from the parser */ | 1111 XML_PARSE_HUGE = 1<<19,/* relax any hardcoded limit from the parser */ |
| 1109 XML_PARSE_OLDSAX = 1<<20 /* parse using SAX2 interface from before 2.7.0
*/ | 1112 XML_PARSE_OLDSAX = 1<<20,/* parse using SAX2 interface before 2.7.0 */ |
| 1113 XML_PARSE_IGNORE_ENC= 1<<21,/* ignore internal document encoding hint */ |
| 1114 XML_PARSE_BIG_LINES = 1<<22 /* Store big lines numbers in text PSVI field */ |
| 1110 } xmlParserOption; | 1115 } xmlParserOption; |
| 1111 | 1116 |
| 1112 XMLPUBFUN void XMLCALL | 1117 XMLPUBFUN void XMLCALL |
| 1113 xmlCtxtReset (xmlParserCtxtPtr ctxt); | 1118 xmlCtxtReset (xmlParserCtxtPtr ctxt); |
| 1114 XMLPUBFUN int XMLCALL | 1119 XMLPUBFUN int XMLCALL |
| 1115 xmlCtxtResetPush (xmlParserCtxtPtr ctxt, | 1120 xmlCtxtResetPush (xmlParserCtxtPtr ctxt, |
| 1116 const char *chunk, | 1121 const char *chunk, |
| 1117 int size, | 1122 int size, |
| 1118 const char *filename, | 1123 const char *filename, |
| 1119 const char *encoding); | 1124 const char *encoding); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 XML_WITH_AUTOMATA = 23, | 1221 XML_WITH_AUTOMATA = 23, |
| 1217 XML_WITH_EXPR = 24, | 1222 XML_WITH_EXPR = 24, |
| 1218 XML_WITH_SCHEMAS = 25, | 1223 XML_WITH_SCHEMAS = 25, |
| 1219 XML_WITH_SCHEMATRON = 26, | 1224 XML_WITH_SCHEMATRON = 26, |
| 1220 XML_WITH_MODULES = 27, | 1225 XML_WITH_MODULES = 27, |
| 1221 XML_WITH_DEBUG = 28, | 1226 XML_WITH_DEBUG = 28, |
| 1222 XML_WITH_DEBUG_MEM = 29, | 1227 XML_WITH_DEBUG_MEM = 29, |
| 1223 XML_WITH_DEBUG_RUN = 30, | 1228 XML_WITH_DEBUG_RUN = 30, |
| 1224 XML_WITH_ZLIB = 31, | 1229 XML_WITH_ZLIB = 31, |
| 1225 XML_WITH_ICU = 32, | 1230 XML_WITH_ICU = 32, |
| 1231 XML_WITH_LZMA = 33, |
| 1226 XML_WITH_NONE = 99999 /* just to be sure of allocation size */ | 1232 XML_WITH_NONE = 99999 /* just to be sure of allocation size */ |
| 1227 } xmlFeature; | 1233 } xmlFeature; |
| 1228 | 1234 |
| 1229 XMLPUBFUN int XMLCALL | 1235 XMLPUBFUN int XMLCALL |
| 1230 xmlHasFeature (xmlFeature feature); | 1236 xmlHasFeature (xmlFeature feature); |
| 1231 | 1237 |
| 1232 #ifdef __cplusplus | 1238 #ifdef __cplusplus |
| 1233 } | 1239 } |
| 1234 #endif | 1240 #endif |
| 1235 #endif /* __XML_PARSER_H__ */ | 1241 #endif /* __XML_PARSER_H__ */ |
| 1236 | |
| OLD | NEW |