blob: 6065320eb1387299eeaccfdc22c52c879968c7d2 [file] [log] [blame]
Owen Taylor3473f882001-02-23 17:55:21 +00001/*
Daniel Veillard52d8ade2012-07-30 10:08:45 +08002 * Summary: internals routines and limits exported by the parser.
Daniel Veillardbe586972003-11-18 20:56:51 +00003 * Description: this module exports a number of internal parsing routines
4 * they are not really all intended for applications but
5 * can prove useful doing low level processing.
Owen Taylor3473f882001-02-23 17:55:21 +00006 *
Daniel Veillardbe586972003-11-18 20:56:51 +00007 * Copy: See Copyright for the status of this software.
Owen Taylor3473f882001-02-23 17:55:21 +00008 *
Daniel Veillardbe586972003-11-18 20:56:51 +00009 * Author: Daniel Veillard
Owen Taylor3473f882001-02-23 17:55:21 +000010 */
11
12#ifndef __XML_PARSER_INTERNALS_H__
13#define __XML_PARSER_INTERNALS_H__
14
Igor Zlatkovic76874e42003-08-25 09:05:12 +000015#include <libxml/xmlversion.h>
Owen Taylor3473f882001-02-23 17:55:21 +000016#include <libxml/parser.h>
Daniel Veillard56a4cb82001-03-24 17:00:36 +000017#include <libxml/HTMLparser.h>
William M. Brack68aca052003-10-11 15:22:13 +000018#include <libxml/chvalid.h>
Owen Taylor3473f882001-02-23 17:55:21 +000019
20#ifdef __cplusplus
21extern "C" {
22#endif
23
Daniel Veillard4aede2e2003-10-17 12:43:59 +000024/**
25 * xmlParserMaxDepth:
26 *
Daniel Veillard1fb2e0d2009-01-18 14:08:36 +000027 * arbitrary depth limit for the XML documents that we allow to
28 * process. This is not a limitation of the parser but a safety
29 * boundary feature, use XML_PARSE_HUGE option to override it.
Daniel Veillard4aede2e2003-10-17 12:43:59 +000030 */
31XMLPUBVAR unsigned int xmlParserMaxDepth;
32
Daniel Veillard1fb2e0d2009-01-18 14:08:36 +000033/**
Daniel Veillard97ff9b32009-01-18 21:43:30 +000034 * XML_MAX_TEXT_LENGTH:
Daniel Veillard1fb2e0d2009-01-18 14:08:36 +000035 *
36 * Maximum size allowed for a single text node when building a tree.
37 * This is not a limitation of the parser but a safety boundary feature,
38 * use XML_PARSE_HUGE option to override it.
Daniel Veillard52d8ade2012-07-30 10:08:45 +080039 * Introduced in 2.9.0
Daniel Veillard1fb2e0d2009-01-18 14:08:36 +000040 */
Daniel Veillard97ff9b32009-01-18 21:43:30 +000041#define XML_MAX_TEXT_LENGTH 10000000
Daniel Veillard1fb2e0d2009-01-18 14:08:36 +000042
43/**
Daniel Veillard52d8ade2012-07-30 10:08:45 +080044 * XML_MAX_NAME_LENGTH:
45 *
46 * Maximum size allowed for a markup identitier
47 * This is not a limitation of the parser but a safety boundary feature,
48 * use XML_PARSE_HUGE option to override it.
49 * Note that with the use of parsing dictionaries overriding the limit
50 * may result in more runtime memory usage in face of "unfriendly' content
51 * Introduced in 2.9.0
52 */
53#define XML_MAX_NAME_LENGTH 50000
54
55/**
56 * XML_MAX_DICTIONARY_LIMIT:
57 *
58 * Maximum size allowed by the parser for a dictionary by default
59 * This is not a limitation of the parser but a safety boundary feature,
60 * use XML_PARSE_HUGE option to override it.
61 * Introduced in 2.9.0
62 */
63#define XML_MAX_DICTIONARY_LIMIT 10000000
64
65/**
66 * XML_MAX_LOOKUP_LIMIT:
67 *
68 * Maximum size allowed by the parser for ahead lookup
69 * This is an upper boundary enforced by the parser to avoid bad
70 * behaviour on "unfriendly' content
71 * Introduced in 2.9.0
72 */
73#define XML_MAX_LOOKUP_LIMIT 10000000
74
75/**
Daniel Veillard1fb2e0d2009-01-18 14:08:36 +000076 * XML_MAX_NAMELEN:
77 *
78 * Identifiers can be longer, but this will be more costly
79 * at runtime.
80 */
Owen Taylor3473f882001-02-23 17:55:21 +000081#define XML_MAX_NAMELEN 100
82
Daniel Veillardbed7b052001-05-19 14:59:49 +000083/**
84 * INPUT_CHUNK:
85 *
Daniel Veillard61f26172002-03-12 18:46:39 +000086 * The parser tries to always have that amount of input ready.
87 * One of the point is providing context when reporting errors.
Owen Taylor3473f882001-02-23 17:55:21 +000088 */
89#define INPUT_CHUNK 250
90
91/************************************************************************
92 * *
Daniel Veillardf8e3db02012-09-11 13:26:36 +080093 * UNICODE version of the macros. *
Owen Taylor3473f882001-02-23 17:55:21 +000094 * *
95 ************************************************************************/
Daniel Veillardbed7b052001-05-19 14:59:49 +000096/**
Daniel Veillard73b013f2003-09-30 12:36:01 +000097 * IS_BYTE_CHAR:
98 * @c: an byte value (int)
99 *
100 * Macro to check the following production in the XML spec:
101 *
102 * [2] Char ::= #x9 | #xA | #xD | [#x20...]
103 * any byte character in the accepted range
104 */
William M. Brack68aca052003-10-11 15:22:13 +0000105#define IS_BYTE_CHAR(c) xmlIsChar_ch(c)
Daniel Veillard73b013f2003-09-30 12:36:01 +0000106
107/**
Daniel Veillardbed7b052001-05-19 14:59:49 +0000108 * IS_CHAR:
109 * @c: an UNICODE value (int)
110 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000111 * Macro to check the following production in the XML spec:
Daniel Veillardbed7b052001-05-19 14:59:49 +0000112 *
Owen Taylor3473f882001-02-23 17:55:21 +0000113 * [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD]
114 * | [#x10000-#x10FFFF]
115 * any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.
116 */
William M. Brack871611b2003-10-18 04:53:14 +0000117#define IS_CHAR(c) xmlIsCharQ(c)
Owen Taylor3473f882001-02-23 17:55:21 +0000118
Daniel Veillardbed7b052001-05-19 14:59:49 +0000119/**
William M. Brack76e95df2003-10-18 16:20:14 +0000120 * IS_CHAR_CH:
121 * @c: an xmlChar (usually an unsigned char)
122 *
123 * Behaves like IS_CHAR on single-byte value
124 */
125#define IS_CHAR_CH(c) xmlIsChar_ch(c)
126
127/**
Daniel Veillardbed7b052001-05-19 14:59:49 +0000128 * IS_BLANK:
129 * @c: an UNICODE value (int)
130 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000131 * Macro to check the following production in the XML spec:
Daniel Veillardbed7b052001-05-19 14:59:49 +0000132 *
Owen Taylor3473f882001-02-23 17:55:21 +0000133 * [3] S ::= (#x20 | #x9 | #xD | #xA)+
134 */
William M. Brack871611b2003-10-18 04:53:14 +0000135#define IS_BLANK(c) xmlIsBlankQ(c)
Owen Taylor3473f882001-02-23 17:55:21 +0000136
Daniel Veillardbed7b052001-05-19 14:59:49 +0000137/**
William M. Brack76e95df2003-10-18 16:20:14 +0000138 * IS_BLANK_CH:
139 * @c: an xmlChar value (normally unsigned char)
140 *
141 * Behaviour same as IS_BLANK
142 */
143#define IS_BLANK_CH(c) xmlIsBlank_ch(c)
144
145/**
Daniel Veillardbed7b052001-05-19 14:59:49 +0000146 * IS_BASECHAR:
147 * @c: an UNICODE value (int)
148 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000149 * Macro to check the following production in the XML spec:
Daniel Veillardbed7b052001-05-19 14:59:49 +0000150 *
Owen Taylor3473f882001-02-23 17:55:21 +0000151 * [85] BaseChar ::= ... long list see REC ...
152 */
William M. Brack871611b2003-10-18 04:53:14 +0000153#define IS_BASECHAR(c) xmlIsBaseCharQ(c)
Owen Taylor3473f882001-02-23 17:55:21 +0000154
Daniel Veillardbed7b052001-05-19 14:59:49 +0000155/**
156 * IS_DIGIT:
157 * @c: an UNICODE value (int)
158 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000159 * Macro to check the following production in the XML spec:
Daniel Veillardbed7b052001-05-19 14:59:49 +0000160 *
Owen Taylor3473f882001-02-23 17:55:21 +0000161 * [88] Digit ::= ... long list see REC ...
162 */
William M. Brack871611b2003-10-18 04:53:14 +0000163#define IS_DIGIT(c) xmlIsDigitQ(c)
Owen Taylor3473f882001-02-23 17:55:21 +0000164
Daniel Veillardbed7b052001-05-19 14:59:49 +0000165/**
William M. Brack76e95df2003-10-18 16:20:14 +0000166 * IS_DIGIT_CH:
167 * @c: an xmlChar value (usually an unsigned char)
168 *
169 * Behaves like IS_DIGIT but with a single byte argument
170 */
171#define IS_DIGIT_CH(c) xmlIsDigit_ch(c)
172
173/**
Daniel Veillardbed7b052001-05-19 14:59:49 +0000174 * IS_COMBINING:
175 * @c: an UNICODE value (int)
176 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000177 * Macro to check the following production in the XML spec:
Daniel Veillardbed7b052001-05-19 14:59:49 +0000178 *
Owen Taylor3473f882001-02-23 17:55:21 +0000179 * [87] CombiningChar ::= ... long list see REC ...
180 */
William M. Brack871611b2003-10-18 04:53:14 +0000181#define IS_COMBINING(c) xmlIsCombiningQ(c)
Owen Taylor3473f882001-02-23 17:55:21 +0000182
Daniel Veillardbed7b052001-05-19 14:59:49 +0000183/**
William M. Brack76e95df2003-10-18 16:20:14 +0000184 * IS_COMBINING_CH:
185 * @c: an xmlChar (usually an unsigned char)
186 *
187 * Always false (all combining chars > 0xff)
188 */
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800189#define IS_COMBINING_CH(c) 0
William M. Brack76e95df2003-10-18 16:20:14 +0000190
191/**
Daniel Veillardbed7b052001-05-19 14:59:49 +0000192 * IS_EXTENDER:
193 * @c: an UNICODE value (int)
194 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000195 * Macro to check the following production in the XML spec:
Daniel Veillardbed7b052001-05-19 14:59:49 +0000196 *
197 *
Owen Taylor3473f882001-02-23 17:55:21 +0000198 * [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 |
199 * #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] |
200 * [#x309D-#x309E] | [#x30FC-#x30FE]
201 */
William M. Brack871611b2003-10-18 04:53:14 +0000202#define IS_EXTENDER(c) xmlIsExtenderQ(c)
Owen Taylor3473f882001-02-23 17:55:21 +0000203
Daniel Veillardbed7b052001-05-19 14:59:49 +0000204/**
William M. Brack76e95df2003-10-18 16:20:14 +0000205 * IS_EXTENDER_CH:
206 * @c: an xmlChar value (usually an unsigned char)
207 *
208 * Behaves like IS_EXTENDER but with a single-byte argument
209 */
210#define IS_EXTENDER_CH(c) xmlIsExtender_ch(c)
211
212/**
Daniel Veillardbed7b052001-05-19 14:59:49 +0000213 * IS_IDEOGRAPHIC:
214 * @c: an UNICODE value (int)
215 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000216 * Macro to check the following production in the XML spec:
Daniel Veillardbed7b052001-05-19 14:59:49 +0000217 *
218 *
Owen Taylor3473f882001-02-23 17:55:21 +0000219 * [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029]
220 */
William M. Brack871611b2003-10-18 04:53:14 +0000221#define IS_IDEOGRAPHIC(c) xmlIsIdeographicQ(c)
Owen Taylor3473f882001-02-23 17:55:21 +0000222
Daniel Veillardbed7b052001-05-19 14:59:49 +0000223/**
224 * IS_LETTER:
225 * @c: an UNICODE value (int)
226 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000227 * Macro to check the following production in the XML spec:
Daniel Veillardbed7b052001-05-19 14:59:49 +0000228 *
229 *
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800230 * [84] Letter ::= BaseChar | Ideographic
Owen Taylor3473f882001-02-23 17:55:21 +0000231 */
232#define IS_LETTER(c) (IS_BASECHAR(c) || IS_IDEOGRAPHIC(c))
233
William M. Brack76e95df2003-10-18 16:20:14 +0000234/**
235 * IS_LETTER_CH:
236 * @c: an xmlChar value (normally unsigned char)
237 *
238 * Macro behaves like IS_LETTER, but only check base chars
239 *
240 */
241#define IS_LETTER_CH(c) xmlIsBaseChar_ch(c)
William M. Brackd1757ab2004-10-02 22:07:48 +0000242
243/**
William M. Brack21e4ef22005-01-02 09:53:13 +0000244 * IS_ASCII_LETTER:
William M. Brackd1757ab2004-10-02 22:07:48 +0000245 * @c: an xmlChar value
246 *
247 * Macro to check [a-zA-Z]
248 *
249 */
250#define IS_ASCII_LETTER(c) (((0x41 <= (c)) && ((c) <= 0x5a)) || \
251 ((0x61 <= (c)) && ((c) <= 0x7a)))
252
253/**
William M. Brack21e4ef22005-01-02 09:53:13 +0000254 * IS_ASCII_DIGIT:
William M. Brackd1757ab2004-10-02 22:07:48 +0000255 * @c: an xmlChar value
256 *
257 * Macro to check [0-9]
258 *
259 */
260#define IS_ASCII_DIGIT(c) ((0x30 <= (c)) && ((c) <= 0x39))
261
Daniel Veillardbed7b052001-05-19 14:59:49 +0000262/**
263 * IS_PUBIDCHAR:
264 * @c: an UNICODE value (int)
265 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000266 * Macro to check the following production in the XML spec:
Daniel Veillardbed7b052001-05-19 14:59:49 +0000267 *
268 *
Owen Taylor3473f882001-02-23 17:55:21 +0000269 * [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]
270 */
William M. Brack871611b2003-10-18 04:53:14 +0000271#define IS_PUBIDCHAR(c) xmlIsPubidCharQ(c)
Owen Taylor3473f882001-02-23 17:55:21 +0000272
Daniel Veillardbed7b052001-05-19 14:59:49 +0000273/**
William M. Brack76e95df2003-10-18 16:20:14 +0000274 * IS_PUBIDCHAR_CH:
275 * @c: an xmlChar value (normally unsigned char)
276 *
277 * Same as IS_PUBIDCHAR but for single-byte value
278 */
279#define IS_PUBIDCHAR_CH(c) xmlIsPubidChar_ch(c)
280
281/**
Daniel Veillardbed7b052001-05-19 14:59:49 +0000282 * SKIP_EOL:
283 * @p: and UTF8 string pointer
284 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000285 * Skips the end of line chars.
Daniel Veillardbed7b052001-05-19 14:59:49 +0000286 */
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800287#define SKIP_EOL(p) \
Owen Taylor3473f882001-02-23 17:55:21 +0000288 if (*(p) == 0x13) { p++ ; if (*(p) == 0x10) p++; } \
289 if (*(p) == 0x10) { p++ ; if (*(p) == 0x13) p++; }
290
Daniel Veillardbed7b052001-05-19 14:59:49 +0000291/**
292 * MOVETO_ENDTAG:
293 * @p: and UTF8 string pointer
294 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000295 * Skips to the next '>' char.
Daniel Veillardbed7b052001-05-19 14:59:49 +0000296 */
Owen Taylor3473f882001-02-23 17:55:21 +0000297#define MOVETO_ENDTAG(p) \
298 while ((*p) && (*(p) != '>')) (p)++
299
Daniel Veillardbed7b052001-05-19 14:59:49 +0000300/**
301 * MOVETO_STARTTAG:
302 * @p: and UTF8 string pointer
303 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000304 * Skips to the next '<' char.
Daniel Veillardbed7b052001-05-19 14:59:49 +0000305 */
Owen Taylor3473f882001-02-23 17:55:21 +0000306#define MOVETO_STARTTAG(p) \
307 while ((*p) && (*(p) != '<')) (p)++
308
309/**
Daniel Veillard61f26172002-03-12 18:46:39 +0000310 * Global variables used for predefined strings.
Daniel Veillard22090732001-07-16 00:06:07 +0000311 */
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000312XMLPUBVAR const xmlChar xmlStringText[];
313XMLPUBVAR const xmlChar xmlStringTextNoenc[];
314XMLPUBVAR const xmlChar xmlStringComment[];
Owen Taylor3473f882001-02-23 17:55:21 +0000315
316/*
Daniel Veillard61f26172002-03-12 18:46:39 +0000317 * Function to finish the work of the macros where needed.
Owen Taylor3473f882001-02-23 17:55:21 +0000318 */
William M. Brack68aca052003-10-11 15:22:13 +0000319XMLPUBFUN int XMLCALL xmlIsLetter (int c);
Owen Taylor3473f882001-02-23 17:55:21 +0000320
321/**
Daniel Veillard61f26172002-03-12 18:46:39 +0000322 * Parser context.
Owen Taylor3473f882001-02-23 17:55:21 +0000323 */
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800324XMLPUBFUN xmlParserCtxtPtr XMLCALL
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000325 xmlCreateFileParserCtxt (const char *filename);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800326XMLPUBFUN xmlParserCtxtPtr XMLCALL
Daniel Veillard61b93382003-11-03 14:28:31 +0000327 xmlCreateURLParserCtxt (const char *filename,
328 int options);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800329XMLPUBFUN xmlParserCtxtPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000330 xmlCreateMemoryParserCtxt(const char *buffer,
Owen Taylor3473f882001-02-23 17:55:21 +0000331 int size);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800332XMLPUBFUN xmlParserCtxtPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000333 xmlCreateEntityParserCtxt(const xmlChar *URL,
Owen Taylor3473f882001-02-23 17:55:21 +0000334 const xmlChar *ID,
335 const xmlChar *base);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800336XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000337 xmlSwitchEncoding (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000338 xmlCharEncoding enc);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800339XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000340 xmlSwitchToEncoding (xmlParserCtxtPtr ctxt,
Daniel Veillarda840b692003-10-19 13:35:37 +0000341 xmlCharEncodingHandlerPtr handler);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800342XMLPUBFUN int XMLCALL
Daniel Veillarda840b692003-10-19 13:35:37 +0000343 xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt,
344 xmlParserInputPtr input,
345 xmlCharEncodingHandlerPtr handler);
Owen Taylor3473f882001-02-23 17:55:21 +0000346
Daniel Veillarda840b692003-10-19 13:35:37 +0000347#ifdef IN_LIBXML
348/* internal error reporting */
349XMLPUBFUN void XMLCALL
350 __xmlErrEncoding (xmlParserCtxtPtr ctxt,
Daniel Veillard29b17482004-08-16 00:39:03 +0000351 xmlParserErrors xmlerr,
Daniel Veillarda840b692003-10-19 13:35:37 +0000352 const char *msg,
353 const xmlChar * str1,
354 const xmlChar * str2);
355#endif
Owen Taylor3473f882001-02-23 17:55:21 +0000356
357/**
Daniel Veillard61f26172002-03-12 18:46:39 +0000358 * Input Streams.
Owen Taylor3473f882001-02-23 17:55:21 +0000359 */
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800360XMLPUBFUN xmlParserInputPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000361 xmlNewStringInputStream (xmlParserCtxtPtr ctxt,
Daniel Veillard56a4cb82001-03-24 17:00:36 +0000362 const xmlChar *buffer);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800363XMLPUBFUN xmlParserInputPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000364 xmlNewEntityInputStream (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000365 xmlEntityPtr entity);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800366XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000367 xmlPushInput (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000368 xmlParserInputPtr input);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800369XMLPUBFUN xmlChar XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000370 xmlPopInput (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800371XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000372 xmlFreeInputStream (xmlParserInputPtr input);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800373XMLPUBFUN xmlParserInputPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000374 xmlNewInputFromFile (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000375 const char *filename);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800376XMLPUBFUN xmlParserInputPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000377 xmlNewInputStream (xmlParserCtxtPtr ctxt);
Owen Taylor3473f882001-02-23 17:55:21 +0000378
379/**
380 * Namespaces.
381 */
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800382XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000383 xmlSplitQName (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000384 const xmlChar *name,
385 xmlChar **prefix);
Owen Taylor3473f882001-02-23 17:55:21 +0000386
387/**
Daniel Veillard61f26172002-03-12 18:46:39 +0000388 * Generic production rules.
Owen Taylor3473f882001-02-23 17:55:21 +0000389 */
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800390XMLPUBFUN const xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000391 xmlParseName (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800392XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000393 xmlParseNmtoken (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800394XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000395 xmlParseEntityValue (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000396 xmlChar **orig);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800397XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000398 xmlParseAttValue (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800399XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000400 xmlParseSystemLiteral (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800401XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000402 xmlParsePubidLiteral (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800403XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000404 xmlParseCharData (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000405 int cdata);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800406XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000407 xmlParseExternalID (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000408 xmlChar **publicID,
409 int strict);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800410XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000411 xmlParseComment (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800412XMLPUBFUN const xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000413 xmlParsePITarget (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800414XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000415 xmlParsePI (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800416XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000417 xmlParseNotationDecl (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800418XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000419 xmlParseEntityDecl (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800420XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000421 xmlParseDefaultDecl (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000422 xmlChar **value);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800423XMLPUBFUN xmlEnumerationPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000424 xmlParseNotationType (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800425XMLPUBFUN xmlEnumerationPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000426 xmlParseEnumerationType (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800427XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000428 xmlParseEnumeratedType (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000429 xmlEnumerationPtr *tree);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800430XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000431 xmlParseAttributeType (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000432 xmlEnumerationPtr *tree);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800433XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000434 xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800435XMLPUBFUN xmlElementContentPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000436 xmlParseElementMixedContentDecl
Daniel Veillard8dc16a62002-02-19 21:08:48 +0000437 (xmlParserCtxtPtr ctxt,
Daniel Veillardbdbe0d42003-09-14 19:56:14 +0000438 int inputchk);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800439XMLPUBFUN xmlElementContentPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000440 xmlParseElementChildrenContentDecl
Daniel Veillard8dc16a62002-02-19 21:08:48 +0000441 (xmlParserCtxtPtr ctxt,
Daniel Veillardbdbe0d42003-09-14 19:56:14 +0000442 int inputchk);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800443XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000444 xmlParseElementContentDecl(xmlParserCtxtPtr ctxt,
Daniel Veillard2fdbd322003-08-18 12:15:38 +0000445 const xmlChar *name,
Owen Taylor3473f882001-02-23 17:55:21 +0000446 xmlElementContentPtr *result);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800447XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000448 xmlParseElementDecl (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800449XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000450 xmlParseMarkupDecl (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800451XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000452 xmlParseCharRef (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800453XMLPUBFUN xmlEntityPtr XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000454 xmlParseEntityRef (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800455XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000456 xmlParseReference (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800457XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000458 xmlParsePEReference (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800459XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000460 xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt);
William M. Brack21e4ef22005-01-02 09:53:13 +0000461#ifdef LIBXML_SAX1_ENABLED
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800462XMLPUBFUN const xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000463 xmlParseAttribute (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000464 xmlChar **value);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800465XMLPUBFUN const xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000466 xmlParseStartTag (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800467XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000468 xmlParseEndTag (xmlParserCtxtPtr ctxt);
William M. Brack21e4ef22005-01-02 09:53:13 +0000469#endif /* LIBXML_SAX1_ENABLED */
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800470XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000471 xmlParseCDSect (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800472XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000473 xmlParseContent (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800474XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000475 xmlParseElement (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800476XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000477 xmlParseVersionNum (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800478XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000479 xmlParseVersionInfo (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800480XMLPUBFUN xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000481 xmlParseEncName (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800482XMLPUBFUN const xmlChar * XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000483 xmlParseEncodingDecl (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800484XMLPUBFUN int XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000485 xmlParseSDDecl (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800486XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000487 xmlParseXMLDecl (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800488XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000489 xmlParseTextDecl (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800490XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000491 xmlParseMisc (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800492XMLPUBFUN void XMLCALL
Igor Zlatkovic93f984a2003-08-25 10:34:41 +0000493 xmlParseExternalSubset (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000494 const xmlChar *ExternalID,
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800495 const xmlChar *SystemID);
Daniel Veillard5e2dace2001-07-18 19:30:27 +0000496/**
497 * XML_SUBSTITUTE_NONE:
498 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000499 * If no entities need to be substituted.
Owen Taylor3473f882001-02-23 17:55:21 +0000500 */
501#define XML_SUBSTITUTE_NONE 0
Daniel Veillard5e2dace2001-07-18 19:30:27 +0000502/**
503 * XML_SUBSTITUTE_REF:
504 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000505 * Whether general entities need to be substituted.
Daniel Veillard5e2dace2001-07-18 19:30:27 +0000506 */
Owen Taylor3473f882001-02-23 17:55:21 +0000507#define XML_SUBSTITUTE_REF 1
Daniel Veillard5e2dace2001-07-18 19:30:27 +0000508/**
509 * XML_SUBSTITUTE_PEREF:
510 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000511 * Whether parameter entities need to be substituted.
Daniel Veillard5e2dace2001-07-18 19:30:27 +0000512 */
Owen Taylor3473f882001-02-23 17:55:21 +0000513#define XML_SUBSTITUTE_PEREF 2
Daniel Veillard5e2dace2001-07-18 19:30:27 +0000514/**
515 * XML_SUBSTITUTE_BOTH:
516 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000517 * Both general and parameter entities need to be substituted.
Daniel Veillard5e2dace2001-07-18 19:30:27 +0000518 */
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800519#define XML_SUBSTITUTE_BOTH 3
Owen Taylor3473f882001-02-23 17:55:21 +0000520
Daniel Veillard07cb8222003-09-10 10:51:05 +0000521XMLPUBFUN xmlChar * XMLCALL
Daniel Veillard07cb8222003-09-10 10:51:05 +0000522 xmlStringDecodeEntities (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000523 const xmlChar *str,
524 int what,
525 xmlChar end,
526 xmlChar end2,
527 xmlChar end3);
Daniel Veillard07cb8222003-09-10 10:51:05 +0000528XMLPUBFUN xmlChar * XMLCALL
529 xmlStringLenDecodeEntities (xmlParserCtxtPtr ctxt,
530 const xmlChar *str,
531 int len,
532 int what,
533 xmlChar end,
534 xmlChar end2,
535 xmlChar end3);
Owen Taylor3473f882001-02-23 17:55:21 +0000536
537/*
Daniel Veillard61f26172002-03-12 18:46:39 +0000538 * Generated by MACROS on top of parser.c c.f. PUSH_AND_POP.
Owen Taylor3473f882001-02-23 17:55:21 +0000539 */
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000540XMLPUBFUN int XMLCALL nodePush (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000541 xmlNodePtr value);
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000542XMLPUBFUN xmlNodePtr XMLCALL nodePop (xmlParserCtxtPtr ctxt);
543XMLPUBFUN int XMLCALL inputPush (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000544 xmlParserInputPtr value);
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000545XMLPUBFUN xmlParserInputPtr XMLCALL inputPop (xmlParserCtxtPtr ctxt);
546XMLPUBFUN const xmlChar * XMLCALL namePop (xmlParserCtxtPtr ctxt);
547XMLPUBFUN int XMLCALL namePush (xmlParserCtxtPtr ctxt,
Daniel Veillard2fdbd322003-08-18 12:15:38 +0000548 const xmlChar *value);
Owen Taylor3473f882001-02-23 17:55:21 +0000549
550/*
Daniel Veillard61f26172002-03-12 18:46:39 +0000551 * other commodities shared between parser.c and parserInternals.
Owen Taylor3473f882001-02-23 17:55:21 +0000552 */
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000553XMLPUBFUN int XMLCALL xmlSkipBlankChars (xmlParserCtxtPtr ctxt);
554XMLPUBFUN int XMLCALL xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000555 const xmlChar *cur,
556 int *len);
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000557XMLPUBFUN void XMLCALL xmlParserHandlePEReference(xmlParserCtxtPtr ctxt);
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000558XMLPUBFUN int XMLCALL xmlCheckLanguageID (const xmlChar *lang);
Owen Taylor3473f882001-02-23 17:55:21 +0000559
560/*
Daniel Veillard61f26172002-03-12 18:46:39 +0000561 * Really core function shared with HTML parser.
Owen Taylor3473f882001-02-23 17:55:21 +0000562 */
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000563XMLPUBFUN int XMLCALL xmlCurrentChar (xmlParserCtxtPtr ctxt,
Owen Taylor3473f882001-02-23 17:55:21 +0000564 int *len);
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000565XMLPUBFUN int XMLCALL xmlCopyCharMultiByte (xmlChar *out,
Daniel Veillard56a4cb82001-03-24 17:00:36 +0000566 int val);
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000567XMLPUBFUN int XMLCALL xmlCopyChar (int len,
Owen Taylor3473f882001-02-23 17:55:21 +0000568 xmlChar *out,
569 int val);
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000570XMLPUBFUN void XMLCALL xmlNextChar (xmlParserCtxtPtr ctxt);
571XMLPUBFUN void XMLCALL xmlParserInputShrink (xmlParserInputPtr in);
Owen Taylor3473f882001-02-23 17:55:21 +0000572
573#ifdef LIBXML_HTML_ENABLED
574/*
Daniel Veillard61f26172002-03-12 18:46:39 +0000575 * Actually comes from the HTML parser but launched from the init stuff.
Owen Taylor3473f882001-02-23 17:55:21 +0000576 */
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000577XMLPUBFUN void XMLCALL htmlInitAutoClose (void);
578XMLPUBFUN htmlParserCtxtPtr XMLCALL htmlCreateFileParserCtxt(const char *filename,
Daniel Veillard56a4cb82001-03-24 17:00:36 +0000579 const char *encoding);
Daniel Veillard7839e162002-02-20 18:54:48 +0000580#endif
Daniel Veillard8107a222002-01-13 14:10:10 +0000581
582/*
583 * Specific function to keep track of entities references
Daniel Veillard61f26172002-03-12 18:46:39 +0000584 * and used by the XSLT debugger.
Daniel Veillard8107a222002-01-13 14:10:10 +0000585 */
William M. Brack21e4ef22005-01-02 09:53:13 +0000586#ifdef LIBXML_LEGACY_ENABLED
Daniel Veillard9d06d302002-01-22 18:15:52 +0000587/**
588 * xmlEntityReferenceFunc:
589 * @ent: the entity
590 * @firstNode: the fist node in the chunk
591 * @lastNode: the last nod in the chunk
592 *
Daniel Veillard61f26172002-03-12 18:46:39 +0000593 * Callback function used when one needs to be able to track back the
594 * provenance of a chunk of nodes inherited from an entity replacement.
Daniel Veillard9d06d302002-01-22 18:15:52 +0000595 */
Daniel Veillard8107a222002-01-13 14:10:10 +0000596typedef void (*xmlEntityReferenceFunc) (xmlEntityPtr ent,
597 xmlNodePtr firstNode,
598 xmlNodePtr lastNode);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800599
Igor Zlatkovic76874e42003-08-25 09:05:12 +0000600XMLPUBFUN void XMLCALL xmlSetEntityReferenceFunc (xmlEntityReferenceFunc func);
Daniel Veillard8107a222002-01-13 14:10:10 +0000601
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800602XMLPUBFUN xmlChar * XMLCALL
William M. Brack21e4ef22005-01-02 09:53:13 +0000603 xmlParseQuotedString (xmlParserCtxtPtr ctxt);
604XMLPUBFUN void XMLCALL
605 xmlParseNamespace (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800606XMLPUBFUN xmlChar * XMLCALL
William M. Brack21e4ef22005-01-02 09:53:13 +0000607 xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800608XMLPUBFUN xmlChar * XMLCALL
William M. Brack21e4ef22005-01-02 09:53:13 +0000609 xmlScanName (xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800610XMLPUBFUN xmlChar * XMLCALL
William M. Brack21e4ef22005-01-02 09:53:13 +0000611 xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt);
612XMLPUBFUN void XMLCALL xmlParserHandleReference(xmlParserCtxtPtr ctxt);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800613XMLPUBFUN xmlChar * XMLCALL
William M. Brack21e4ef22005-01-02 09:53:13 +0000614 xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
615 xmlChar **prefix);
616/**
617 * Entities
618 */
619XMLPUBFUN xmlChar * XMLCALL
620 xmlDecodeEntities (xmlParserCtxtPtr ctxt,
621 int len,
622 int what,
623 xmlChar end,
624 xmlChar end2,
625 xmlChar end3);
Daniel Veillardf8e3db02012-09-11 13:26:36 +0800626XMLPUBFUN void XMLCALL
William M. Brack21e4ef22005-01-02 09:53:13 +0000627 xmlHandleEntity (xmlParserCtxtPtr ctxt,
628 xmlEntityPtr entity);
629
630#endif /* LIBXML_LEGACY_ENABLED */
631
Daniel Veillardce9457f2003-10-05 21:33:18 +0000632#ifdef IN_LIBXML
633/*
634 * internal only
635 */
636XMLPUBFUN void XMLCALL
637 xmlErrMemory (xmlParserCtxtPtr ctxt,
638 const char *extra);
639#endif
Daniel Veillard8107a222002-01-13 14:10:10 +0000640
Owen Taylor3473f882001-02-23 17:55:21 +0000641#ifdef __cplusplus
642}
643#endif
644#endif /* __XML_PARSER_INTERNALS_H__ */