Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include
File: expat.h
/*
[0] Fix | Delete
__ __ _
[1] Fix | Delete
___\ \/ /_ __ __ _| |_
[2] Fix | Delete
/ _ \\ /| '_ \ / _` | __|
[3] Fix | Delete
| __// \| |_) | (_| | |_
[4] Fix | Delete
\___/_/\_\ .__/ \__,_|\__|
[5] Fix | Delete
|_| XML parser
[6] Fix | Delete
[7] Fix | Delete
Copyright (c) 1997-2000 Thai Open Source Software Center Ltd
[8] Fix | Delete
Copyright (c) 2000-2017 Expat development team
[9] Fix | Delete
Licensed under the MIT license:
[10] Fix | Delete
[11] Fix | Delete
Permission is hereby granted, free of charge, to any person obtaining
[12] Fix | Delete
a copy of this software and associated documentation files (the
[13] Fix | Delete
"Software"), to deal in the Software without restriction, including
[14] Fix | Delete
without limitation the rights to use, copy, modify, merge, publish,
[15] Fix | Delete
distribute, sublicense, and/or sell copies of the Software, and to permit
[16] Fix | Delete
persons to whom the Software is furnished to do so, subject to the
[17] Fix | Delete
following conditions:
[18] Fix | Delete
[19] Fix | Delete
The above copyright notice and this permission notice shall be included
[20] Fix | Delete
in all copies or substantial portions of the Software.
[21] Fix | Delete
[22] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
[23] Fix | Delete
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
[24] Fix | Delete
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
[25] Fix | Delete
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
[26] Fix | Delete
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
[27] Fix | Delete
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
[28] Fix | Delete
USE OR OTHER DEALINGS IN THE SOFTWARE.
[29] Fix | Delete
*/
[30] Fix | Delete
[31] Fix | Delete
#ifndef Expat_INCLUDED
[32] Fix | Delete
#define Expat_INCLUDED 1
[33] Fix | Delete
[34] Fix | Delete
#ifdef __VMS
[35] Fix | Delete
/* 0 1 2 3 0 1 2 3
[36] Fix | Delete
1234567890123456789012345678901 1234567890123456789012345678901 */
[37] Fix | Delete
#define XML_SetProcessingInstructionHandler XML_SetProcessingInstrHandler
[38] Fix | Delete
#define XML_SetUnparsedEntityDeclHandler XML_SetUnparsedEntDeclHandler
[39] Fix | Delete
#define XML_SetStartNamespaceDeclHandler XML_SetStartNamespcDeclHandler
[40] Fix | Delete
#define XML_SetExternalEntityRefHandlerArg XML_SetExternalEntRefHandlerArg
[41] Fix | Delete
#endif
[42] Fix | Delete
[43] Fix | Delete
#include <stdlib.h>
[44] Fix | Delete
#include "expat_external.h"
[45] Fix | Delete
[46] Fix | Delete
#ifdef __cplusplus
[47] Fix | Delete
extern "C" {
[48] Fix | Delete
#endif
[49] Fix | Delete
[50] Fix | Delete
struct XML_ParserStruct;
[51] Fix | Delete
typedef struct XML_ParserStruct *XML_Parser;
[52] Fix | Delete
[53] Fix | Delete
typedef unsigned char XML_Bool;
[54] Fix | Delete
#define XML_TRUE ((XML_Bool) 1)
[55] Fix | Delete
#define XML_FALSE ((XML_Bool) 0)
[56] Fix | Delete
[57] Fix | Delete
/* The XML_Status enum gives the possible return values for several
[58] Fix | Delete
API functions. The preprocessor #defines are included so this
[59] Fix | Delete
stanza can be added to code that still needs to support older
[60] Fix | Delete
versions of Expat 1.95.x:
[61] Fix | Delete
[62] Fix | Delete
#ifndef XML_STATUS_OK
[63] Fix | Delete
#define XML_STATUS_OK 1
[64] Fix | Delete
#define XML_STATUS_ERROR 0
[65] Fix | Delete
#endif
[66] Fix | Delete
[67] Fix | Delete
Otherwise, the #define hackery is quite ugly and would have been
[68] Fix | Delete
dropped.
[69] Fix | Delete
*/
[70] Fix | Delete
enum XML_Status {
[71] Fix | Delete
XML_STATUS_ERROR = 0,
[72] Fix | Delete
#define XML_STATUS_ERROR XML_STATUS_ERROR
[73] Fix | Delete
XML_STATUS_OK = 1,
[74] Fix | Delete
#define XML_STATUS_OK XML_STATUS_OK
[75] Fix | Delete
XML_STATUS_SUSPENDED = 2
[76] Fix | Delete
#define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
[77] Fix | Delete
};
[78] Fix | Delete
[79] Fix | Delete
enum XML_Error {
[80] Fix | Delete
XML_ERROR_NONE,
[81] Fix | Delete
XML_ERROR_NO_MEMORY,
[82] Fix | Delete
XML_ERROR_SYNTAX,
[83] Fix | Delete
XML_ERROR_NO_ELEMENTS,
[84] Fix | Delete
XML_ERROR_INVALID_TOKEN,
[85] Fix | Delete
XML_ERROR_UNCLOSED_TOKEN,
[86] Fix | Delete
XML_ERROR_PARTIAL_CHAR,
[87] Fix | Delete
XML_ERROR_TAG_MISMATCH,
[88] Fix | Delete
XML_ERROR_DUPLICATE_ATTRIBUTE,
[89] Fix | Delete
XML_ERROR_JUNK_AFTER_DOC_ELEMENT,
[90] Fix | Delete
XML_ERROR_PARAM_ENTITY_REF,
[91] Fix | Delete
XML_ERROR_UNDEFINED_ENTITY,
[92] Fix | Delete
XML_ERROR_RECURSIVE_ENTITY_REF,
[93] Fix | Delete
XML_ERROR_ASYNC_ENTITY,
[94] Fix | Delete
XML_ERROR_BAD_CHAR_REF,
[95] Fix | Delete
XML_ERROR_BINARY_ENTITY_REF,
[96] Fix | Delete
XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF,
[97] Fix | Delete
XML_ERROR_MISPLACED_XML_PI,
[98] Fix | Delete
XML_ERROR_UNKNOWN_ENCODING,
[99] Fix | Delete
XML_ERROR_INCORRECT_ENCODING,
[100] Fix | Delete
XML_ERROR_UNCLOSED_CDATA_SECTION,
[101] Fix | Delete
XML_ERROR_EXTERNAL_ENTITY_HANDLING,
[102] Fix | Delete
XML_ERROR_NOT_STANDALONE,
[103] Fix | Delete
XML_ERROR_UNEXPECTED_STATE,
[104] Fix | Delete
XML_ERROR_ENTITY_DECLARED_IN_PE,
[105] Fix | Delete
XML_ERROR_FEATURE_REQUIRES_XML_DTD,
[106] Fix | Delete
XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING,
[107] Fix | Delete
/* Added in 1.95.7. */
[108] Fix | Delete
XML_ERROR_UNBOUND_PREFIX,
[109] Fix | Delete
/* Added in 1.95.8. */
[110] Fix | Delete
XML_ERROR_UNDECLARING_PREFIX,
[111] Fix | Delete
XML_ERROR_INCOMPLETE_PE,
[112] Fix | Delete
XML_ERROR_XML_DECL,
[113] Fix | Delete
XML_ERROR_TEXT_DECL,
[114] Fix | Delete
XML_ERROR_PUBLICID,
[115] Fix | Delete
XML_ERROR_SUSPENDED,
[116] Fix | Delete
XML_ERROR_NOT_SUSPENDED,
[117] Fix | Delete
XML_ERROR_ABORTED,
[118] Fix | Delete
XML_ERROR_FINISHED,
[119] Fix | Delete
XML_ERROR_SUSPEND_PE,
[120] Fix | Delete
/* Added in 2.0. */
[121] Fix | Delete
XML_ERROR_RESERVED_PREFIX_XML,
[122] Fix | Delete
XML_ERROR_RESERVED_PREFIX_XMLNS,
[123] Fix | Delete
XML_ERROR_RESERVED_NAMESPACE_URI,
[124] Fix | Delete
/* Added in 2.2.1. */
[125] Fix | Delete
XML_ERROR_INVALID_ARGUMENT
[126] Fix | Delete
};
[127] Fix | Delete
[128] Fix | Delete
enum XML_Content_Type {
[129] Fix | Delete
XML_CTYPE_EMPTY = 1,
[130] Fix | Delete
XML_CTYPE_ANY,
[131] Fix | Delete
XML_CTYPE_MIXED,
[132] Fix | Delete
XML_CTYPE_NAME,
[133] Fix | Delete
XML_CTYPE_CHOICE,
[134] Fix | Delete
XML_CTYPE_SEQ
[135] Fix | Delete
};
[136] Fix | Delete
[137] Fix | Delete
enum XML_Content_Quant {
[138] Fix | Delete
XML_CQUANT_NONE,
[139] Fix | Delete
XML_CQUANT_OPT,
[140] Fix | Delete
XML_CQUANT_REP,
[141] Fix | Delete
XML_CQUANT_PLUS
[142] Fix | Delete
};
[143] Fix | Delete
[144] Fix | Delete
/* If type == XML_CTYPE_EMPTY or XML_CTYPE_ANY, then quant will be
[145] Fix | Delete
XML_CQUANT_NONE, and the other fields will be zero or NULL.
[146] Fix | Delete
If type == XML_CTYPE_MIXED, then quant will be NONE or REP and
[147] Fix | Delete
numchildren will contain number of elements that may be mixed in
[148] Fix | Delete
and children point to an array of XML_Content cells that will be
[149] Fix | Delete
all of XML_CTYPE_NAME type with no quantification.
[150] Fix | Delete
[151] Fix | Delete
If type == XML_CTYPE_NAME, then the name points to the name, and
[152] Fix | Delete
the numchildren field will be zero and children will be NULL. The
[153] Fix | Delete
quant fields indicates any quantifiers placed on the name.
[154] Fix | Delete
[155] Fix | Delete
CHOICE and SEQ will have name NULL, the number of children in
[156] Fix | Delete
numchildren and children will point, recursively, to an array
[157] Fix | Delete
of XML_Content cells.
[158] Fix | Delete
[159] Fix | Delete
The EMPTY, ANY, and MIXED types will only occur at top level.
[160] Fix | Delete
*/
[161] Fix | Delete
[162] Fix | Delete
typedef struct XML_cp XML_Content;
[163] Fix | Delete
[164] Fix | Delete
struct XML_cp {
[165] Fix | Delete
enum XML_Content_Type type;
[166] Fix | Delete
enum XML_Content_Quant quant;
[167] Fix | Delete
XML_Char * name;
[168] Fix | Delete
unsigned int numchildren;
[169] Fix | Delete
XML_Content * children;
[170] Fix | Delete
};
[171] Fix | Delete
[172] Fix | Delete
[173] Fix | Delete
/* This is called for an element declaration. See above for
[174] Fix | Delete
description of the model argument. It's the caller's responsibility
[175] Fix | Delete
to free model when finished with it.
[176] Fix | Delete
*/
[177] Fix | Delete
typedef void (XMLCALL *XML_ElementDeclHandler) (void *userData,
[178] Fix | Delete
const XML_Char *name,
[179] Fix | Delete
XML_Content *model);
[180] Fix | Delete
[181] Fix | Delete
XMLPARSEAPI(void)
[182] Fix | Delete
XML_SetElementDeclHandler(XML_Parser parser,
[183] Fix | Delete
XML_ElementDeclHandler eldecl);
[184] Fix | Delete
[185] Fix | Delete
/* The Attlist declaration handler is called for *each* attribute. So
[186] Fix | Delete
a single Attlist declaration with multiple attributes declared will
[187] Fix | Delete
generate multiple calls to this handler. The "default" parameter
[188] Fix | Delete
may be NULL in the case of the "#IMPLIED" or "#REQUIRED"
[189] Fix | Delete
keyword. The "isrequired" parameter will be true and the default
[190] Fix | Delete
value will be NULL in the case of "#REQUIRED". If "isrequired" is
[191] Fix | Delete
true and default is non-NULL, then this is a "#FIXED" default.
[192] Fix | Delete
*/
[193] Fix | Delete
typedef void (XMLCALL *XML_AttlistDeclHandler) (
[194] Fix | Delete
void *userData,
[195] Fix | Delete
const XML_Char *elname,
[196] Fix | Delete
const XML_Char *attname,
[197] Fix | Delete
const XML_Char *att_type,
[198] Fix | Delete
const XML_Char *dflt,
[199] Fix | Delete
int isrequired);
[200] Fix | Delete
[201] Fix | Delete
XMLPARSEAPI(void)
[202] Fix | Delete
XML_SetAttlistDeclHandler(XML_Parser parser,
[203] Fix | Delete
XML_AttlistDeclHandler attdecl);
[204] Fix | Delete
[205] Fix | Delete
/* The XML declaration handler is called for *both* XML declarations
[206] Fix | Delete
and text declarations. The way to distinguish is that the version
[207] Fix | Delete
parameter will be NULL for text declarations. The encoding
[208] Fix | Delete
parameter may be NULL for XML declarations. The standalone
[209] Fix | Delete
parameter will be -1, 0, or 1 indicating respectively that there
[210] Fix | Delete
was no standalone parameter in the declaration, that it was given
[211] Fix | Delete
as no, or that it was given as yes.
[212] Fix | Delete
*/
[213] Fix | Delete
typedef void (XMLCALL *XML_XmlDeclHandler) (void *userData,
[214] Fix | Delete
const XML_Char *version,
[215] Fix | Delete
const XML_Char *encoding,
[216] Fix | Delete
int standalone);
[217] Fix | Delete
[218] Fix | Delete
XMLPARSEAPI(void)
[219] Fix | Delete
XML_SetXmlDeclHandler(XML_Parser parser,
[220] Fix | Delete
XML_XmlDeclHandler xmldecl);
[221] Fix | Delete
[222] Fix | Delete
[223] Fix | Delete
typedef struct {
[224] Fix | Delete
void *(*malloc_fcn)(size_t size);
[225] Fix | Delete
void *(*realloc_fcn)(void *ptr, size_t size);
[226] Fix | Delete
void (*free_fcn)(void *ptr);
[227] Fix | Delete
} XML_Memory_Handling_Suite;
[228] Fix | Delete
[229] Fix | Delete
/* Constructs a new parser; encoding is the encoding specified by the
[230] Fix | Delete
external protocol or NULL if there is none specified.
[231] Fix | Delete
*/
[232] Fix | Delete
XMLPARSEAPI(XML_Parser)
[233] Fix | Delete
XML_ParserCreate(const XML_Char *encoding);
[234] Fix | Delete
[235] Fix | Delete
/* Constructs a new parser and namespace processor. Element type
[236] Fix | Delete
names and attribute names that belong to a namespace will be
[237] Fix | Delete
expanded; unprefixed attribute names are never expanded; unprefixed
[238] Fix | Delete
element type names are expanded only if there is a default
[239] Fix | Delete
namespace. The expanded name is the concatenation of the namespace
[240] Fix | Delete
URI, the namespace separator character, and the local part of the
[241] Fix | Delete
name. If the namespace separator is '\0' then the namespace URI
[242] Fix | Delete
and the local part will be concatenated without any separator.
[243] Fix | Delete
It is a programming error to use the separator '\0' with namespace
[244] Fix | Delete
triplets (see XML_SetReturnNSTriplet).
[245] Fix | Delete
*/
[246] Fix | Delete
XMLPARSEAPI(XML_Parser)
[247] Fix | Delete
XML_ParserCreateNS(const XML_Char *encoding, XML_Char namespaceSeparator);
[248] Fix | Delete
[249] Fix | Delete
[250] Fix | Delete
/* Constructs a new parser using the memory management suite referred to
[251] Fix | Delete
by memsuite. If memsuite is NULL, then use the standard library memory
[252] Fix | Delete
suite. If namespaceSeparator is non-NULL it creates a parser with
[253] Fix | Delete
namespace processing as described above. The character pointed at
[254] Fix | Delete
will serve as the namespace separator.
[255] Fix | Delete
[256] Fix | Delete
All further memory operations used for the created parser will come from
[257] Fix | Delete
the given suite.
[258] Fix | Delete
*/
[259] Fix | Delete
XMLPARSEAPI(XML_Parser)
[260] Fix | Delete
XML_ParserCreate_MM(const XML_Char *encoding,
[261] Fix | Delete
const XML_Memory_Handling_Suite *memsuite,
[262] Fix | Delete
const XML_Char *namespaceSeparator);
[263] Fix | Delete
[264] Fix | Delete
/* Prepare a parser object to be re-used. This is particularly
[265] Fix | Delete
valuable when memory allocation overhead is disproportionatly high,
[266] Fix | Delete
such as when a large number of small documnents need to be parsed.
[267] Fix | Delete
All handlers are cleared from the parser, except for the
[268] Fix | Delete
unknownEncodingHandler. The parser's external state is re-initialized
[269] Fix | Delete
except for the values of ns and ns_triplets.
[270] Fix | Delete
[271] Fix | Delete
Added in Expat 1.95.3.
[272] Fix | Delete
*/
[273] Fix | Delete
XMLPARSEAPI(XML_Bool)
[274] Fix | Delete
XML_ParserReset(XML_Parser parser, const XML_Char *encoding);
[275] Fix | Delete
[276] Fix | Delete
/* atts is array of name/value pairs, terminated by 0;
[277] Fix | Delete
names and values are 0 terminated.
[278] Fix | Delete
*/
[279] Fix | Delete
typedef void (XMLCALL *XML_StartElementHandler) (void *userData,
[280] Fix | Delete
const XML_Char *name,
[281] Fix | Delete
const XML_Char **atts);
[282] Fix | Delete
[283] Fix | Delete
typedef void (XMLCALL *XML_EndElementHandler) (void *userData,
[284] Fix | Delete
const XML_Char *name);
[285] Fix | Delete
[286] Fix | Delete
[287] Fix | Delete
/* s is not 0 terminated. */
[288] Fix | Delete
typedef void (XMLCALL *XML_CharacterDataHandler) (void *userData,
[289] Fix | Delete
const XML_Char *s,
[290] Fix | Delete
int len);
[291] Fix | Delete
[292] Fix | Delete
/* target and data are 0 terminated */
[293] Fix | Delete
typedef void (XMLCALL *XML_ProcessingInstructionHandler) (
[294] Fix | Delete
void *userData,
[295] Fix | Delete
const XML_Char *target,
[296] Fix | Delete
const XML_Char *data);
[297] Fix | Delete
[298] Fix | Delete
/* data is 0 terminated */
[299] Fix | Delete
typedef void (XMLCALL *XML_CommentHandler) (void *userData,
[300] Fix | Delete
const XML_Char *data);
[301] Fix | Delete
[302] Fix | Delete
typedef void (XMLCALL *XML_StartCdataSectionHandler) (void *userData);
[303] Fix | Delete
typedef void (XMLCALL *XML_EndCdataSectionHandler) (void *userData);
[304] Fix | Delete
[305] Fix | Delete
/* This is called for any characters in the XML document for which
[306] Fix | Delete
there is no applicable handler. This includes both characters that
[307] Fix | Delete
are part of markup which is of a kind that is not reported
[308] Fix | Delete
(comments, markup declarations), or characters that are part of a
[309] Fix | Delete
construct which could be reported but for which no handler has been
[310] Fix | Delete
supplied. The characters are passed exactly as they were in the XML
[311] Fix | Delete
document except that they will be encoded in UTF-8 or UTF-16.
[312] Fix | Delete
Line boundaries are not normalized. Note that a byte order mark
[313] Fix | Delete
character is not passed to the default handler. There are no
[314] Fix | Delete
guarantees about how characters are divided between calls to the
[315] Fix | Delete
default handler: for example, a comment might be split between
[316] Fix | Delete
multiple calls.
[317] Fix | Delete
*/
[318] Fix | Delete
typedef void (XMLCALL *XML_DefaultHandler) (void *userData,
[319] Fix | Delete
const XML_Char *s,
[320] Fix | Delete
int len);
[321] Fix | Delete
[322] Fix | Delete
/* This is called for the start of the DOCTYPE declaration, before
[323] Fix | Delete
any DTD or internal subset is parsed.
[324] Fix | Delete
*/
[325] Fix | Delete
typedef void (XMLCALL *XML_StartDoctypeDeclHandler) (
[326] Fix | Delete
void *userData,
[327] Fix | Delete
const XML_Char *doctypeName,
[328] Fix | Delete
const XML_Char *sysid,
[329] Fix | Delete
const XML_Char *pubid,
[330] Fix | Delete
int has_internal_subset);
[331] Fix | Delete
[332] Fix | Delete
/* This is called for the start of the DOCTYPE declaration when the
[333] Fix | Delete
closing > is encountered, but after processing any external
[334] Fix | Delete
subset.
[335] Fix | Delete
*/
[336] Fix | Delete
typedef void (XMLCALL *XML_EndDoctypeDeclHandler)(void *userData);
[337] Fix | Delete
[338] Fix | Delete
/* This is called for entity declarations. The is_parameter_entity
[339] Fix | Delete
argument will be non-zero if the entity is a parameter entity, zero
[340] Fix | Delete
otherwise.
[341] Fix | Delete
[342] Fix | Delete
For internal entities (<!ENTITY foo "bar">), value will
[343] Fix | Delete
be non-NULL and systemId, publicID, and notationName will be NULL.
[344] Fix | Delete
The value string is NOT nul-terminated; the length is provided in
[345] Fix | Delete
the value_length argument. Since it is legal to have zero-length
[346] Fix | Delete
values, do not use this argument to test for internal entities.
[347] Fix | Delete
[348] Fix | Delete
For external entities, value will be NULL and systemId will be
[349] Fix | Delete
non-NULL. The publicId argument will be NULL unless a public
[350] Fix | Delete
identifier was provided. The notationName argument will have a
[351] Fix | Delete
non-NULL value only for unparsed entity declarations.
[352] Fix | Delete
[353] Fix | Delete
Note that is_parameter_entity can't be changed to XML_Bool, since
[354] Fix | Delete
that would break binary compatibility.
[355] Fix | Delete
*/
[356] Fix | Delete
typedef void (XMLCALL *XML_EntityDeclHandler) (
[357] Fix | Delete
void *userData,
[358] Fix | Delete
const XML_Char *entityName,
[359] Fix | Delete
int is_parameter_entity,
[360] Fix | Delete
const XML_Char *value,
[361] Fix | Delete
int value_length,
[362] Fix | Delete
const XML_Char *base,
[363] Fix | Delete
const XML_Char *systemId,
[364] Fix | Delete
const XML_Char *publicId,
[365] Fix | Delete
const XML_Char *notationName);
[366] Fix | Delete
[367] Fix | Delete
XMLPARSEAPI(void)
[368] Fix | Delete
XML_SetEntityDeclHandler(XML_Parser parser,
[369] Fix | Delete
XML_EntityDeclHandler handler);
[370] Fix | Delete
[371] Fix | Delete
/* OBSOLETE -- OBSOLETE -- OBSOLETE
[372] Fix | Delete
This handler has been superseded by the EntityDeclHandler above.
[373] Fix | Delete
It is provided here for backward compatibility.
[374] Fix | Delete
[375] Fix | Delete
This is called for a declaration of an unparsed (NDATA) entity.
[376] Fix | Delete
The base argument is whatever was set by XML_SetBase. The
[377] Fix | Delete
entityName, systemId and notationName arguments will never be
[378] Fix | Delete
NULL. The other arguments may be.
[379] Fix | Delete
*/
[380] Fix | Delete
typedef void (XMLCALL *XML_UnparsedEntityDeclHandler) (
[381] Fix | Delete
void *userData,
[382] Fix | Delete
const XML_Char *entityName,
[383] Fix | Delete
const XML_Char *base,
[384] Fix | Delete
const XML_Char *systemId,
[385] Fix | Delete
const XML_Char *publicId,
[386] Fix | Delete
const XML_Char *notationName);
[387] Fix | Delete
[388] Fix | Delete
/* This is called for a declaration of notation. The base argument is
[389] Fix | Delete
whatever was set by XML_SetBase. The notationName will never be
[390] Fix | Delete
NULL. The other arguments can be.
[391] Fix | Delete
*/
[392] Fix | Delete
typedef void (XMLCALL *XML_NotationDeclHandler) (
[393] Fix | Delete
void *userData,
[394] Fix | Delete
const XML_Char *notationName,
[395] Fix | Delete
const XML_Char *base,
[396] Fix | Delete
const XML_Char *systemId,
[397] Fix | Delete
const XML_Char *publicId);
[398] Fix | Delete
[399] Fix | Delete
/* When namespace processing is enabled, these are called once for
[400] Fix | Delete
each namespace declaration. The call to the start and end element
[401] Fix | Delete
handlers occur between the calls to the start and end namespace
[402] Fix | Delete
declaration handlers. For an xmlns attribute, prefix will be
[403] Fix | Delete
NULL. For an xmlns="" attribute, uri will be NULL.
[404] Fix | Delete
*/
[405] Fix | Delete
typedef void (XMLCALL *XML_StartNamespaceDeclHandler) (
[406] Fix | Delete
void *userData,
[407] Fix | Delete
const XML_Char *prefix,
[408] Fix | Delete
const XML_Char *uri);
[409] Fix | Delete
[410] Fix | Delete
typedef void (XMLCALL *XML_EndNamespaceDeclHandler) (
[411] Fix | Delete
void *userData,
[412] Fix | Delete
const XML_Char *prefix);
[413] Fix | Delete
[414] Fix | Delete
/* This is called if the document is not standalone, that is, it has an
[415] Fix | Delete
external subset or a reference to a parameter entity, but does not
[416] Fix | Delete
have standalone="yes". If this handler returns XML_STATUS_ERROR,
[417] Fix | Delete
then processing will not continue, and the parser will return a
[418] Fix | Delete
XML_ERROR_NOT_STANDALONE error.
[419] Fix | Delete
If parameter entity parsing is enabled, then in addition to the
[420] Fix | Delete
conditions above this handler will only be called if the referenced
[421] Fix | Delete
entity was actually read.
[422] Fix | Delete
*/
[423] Fix | Delete
typedef int (XMLCALL *XML_NotStandaloneHandler) (void *userData);
[424] Fix | Delete
[425] Fix | Delete
/* This is called for a reference to an external parsed general
[426] Fix | Delete
entity. The referenced entity is not automatically parsed. The
[427] Fix | Delete
application can parse it immediately or later using
[428] Fix | Delete
XML_ExternalEntityParserCreate.
[429] Fix | Delete
[430] Fix | Delete
The parser argument is the parser parsing the entity containing the
[431] Fix | Delete
reference; it can be passed as the parser argument to
[432] Fix | Delete
XML_ExternalEntityParserCreate. The systemId argument is the
[433] Fix | Delete
system identifier as specified in the entity declaration; it will
[434] Fix | Delete
not be NULL.
[435] Fix | Delete
[436] Fix | Delete
The base argument is the system identifier that should be used as
[437] Fix | Delete
the base for resolving systemId if systemId was relative; this is
[438] Fix | Delete
set by XML_SetBase; it may be NULL.
[439] Fix | Delete
[440] Fix | Delete
The publicId argument is the public identifier as specified in the
[441] Fix | Delete
entity declaration, or NULL if none was specified; the whitespace
[442] Fix | Delete
in the public identifier will have been normalized as required by
[443] Fix | Delete
the XML spec.
[444] Fix | Delete
[445] Fix | Delete
The context argument specifies the parsing context in the format
[446] Fix | Delete
expected by the context argument to XML_ExternalEntityParserCreate;
[447] Fix | Delete
context is valid only until the handler returns, so if the
[448] Fix | Delete
referenced entity is to be parsed later, it must be copied.
[449] Fix | Delete
context is NULL only when the entity is a parameter entity.
[450] Fix | Delete
[451] Fix | Delete
The handler should return XML_STATUS_ERROR if processing should not
[452] Fix | Delete
continue because of a fatal error in the handling of the external
[453] Fix | Delete
entity. In this case the calling parser will return an
[454] Fix | Delete
XML_ERROR_EXTERNAL_ENTITY_HANDLING error.
[455] Fix | Delete
[456] Fix | Delete
Note that unlike other handlers the first argument is the parser,
[457] Fix | Delete
not userData.
[458] Fix | Delete
*/
[459] Fix | Delete
typedef int (XMLCALL *XML_ExternalEntityRefHandler) (
[460] Fix | Delete
XML_Parser parser,
[461] Fix | Delete
const XML_Char *context,
[462] Fix | Delete
const XML_Char *base,
[463] Fix | Delete
const XML_Char *systemId,
[464] Fix | Delete
const XML_Char *publicId);
[465] Fix | Delete
[466] Fix | Delete
/* This is called in two situations:
[467] Fix | Delete
1) An entity reference is encountered for which no declaration
[468] Fix | Delete
has been read *and* this is not an error.
[469] Fix | Delete
2) An internal entity reference is read, but not expanded, because
[470] Fix | Delete
XML_SetDefaultHandler has been called.
[471] Fix | Delete
Note: skipped parameter entities in declarations and skipped general
[472] Fix | Delete
entities in attribute values cannot be reported, because
[473] Fix | Delete
the event would be out of sync with the reporting of the
[474] Fix | Delete
declarations or attribute values
[475] Fix | Delete
*/
[476] Fix | Delete
typedef void (XMLCALL *XML_SkippedEntityHandler) (
[477] Fix | Delete
void *userData,
[478] Fix | Delete
const XML_Char *entityName,
[479] Fix | Delete
int is_parameter_entity);
[480] Fix | Delete
[481] Fix | Delete
/* This structure is filled in by the XML_UnknownEncodingHandler to
[482] Fix | Delete
provide information to the parser about encodings that are unknown
[483] Fix | Delete
to the parser.
[484] Fix | Delete
[485] Fix | Delete
The map[b] member gives information about byte sequences whose
[486] Fix | Delete
first byte is b.
[487] Fix | Delete
[488] Fix | Delete
If map[b] is c where c is >= 0, then b by itself encodes the
[489] Fix | Delete
Unicode scalar value c.
[490] Fix | Delete
[491] Fix | Delete
If map[b] is -1, then the byte sequence is malformed.
[492] Fix | Delete
[493] Fix | Delete
If map[b] is -n, where n >= 2, then b is the first byte of an
[494] Fix | Delete
n-byte sequence that encodes a single Unicode scalar value.
[495] Fix | Delete
[496] Fix | Delete
The data member will be passed as the first argument to the convert
[497] Fix | Delete
function.
[498] Fix | Delete
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function