lxml 6.0.0__cp39-cp39-win_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. lxml/ElementInclude.py +244 -0
  2. lxml/__init__.py +22 -0
  3. lxml/_elementpath.cp39-win_arm64.pyd +0 -0
  4. lxml/_elementpath.py +343 -0
  5. lxml/apihelpers.pxi +1801 -0
  6. lxml/builder.cp39-win_arm64.pyd +0 -0
  7. lxml/builder.py +243 -0
  8. lxml/classlookup.pxi +580 -0
  9. lxml/cleanup.pxi +215 -0
  10. lxml/cssselect.py +101 -0
  11. lxml/debug.pxi +36 -0
  12. lxml/docloader.pxi +178 -0
  13. lxml/doctestcompare.py +488 -0
  14. lxml/dtd.pxi +479 -0
  15. lxml/etree.cp39-win_arm64.pyd +0 -0
  16. lxml/etree.h +244 -0
  17. lxml/etree.pyx +3853 -0
  18. lxml/etree_api.h +204 -0
  19. lxml/extensions.pxi +830 -0
  20. lxml/html/ElementSoup.py +10 -0
  21. lxml/html/__init__.py +1927 -0
  22. lxml/html/_diffcommand.py +86 -0
  23. lxml/html/_difflib.cp39-win_arm64.pyd +0 -0
  24. lxml/html/_difflib.py +2106 -0
  25. lxml/html/_html5builder.py +100 -0
  26. lxml/html/_setmixin.py +56 -0
  27. lxml/html/builder.py +173 -0
  28. lxml/html/clean.py +21 -0
  29. lxml/html/defs.py +135 -0
  30. lxml/html/diff.cp39-win_arm64.pyd +0 -0
  31. lxml/html/diff.py +972 -0
  32. lxml/html/formfill.py +299 -0
  33. lxml/html/html5parser.py +260 -0
  34. lxml/html/soupparser.py +314 -0
  35. lxml/html/usedoctest.py +13 -0
  36. lxml/includes/__init__.pxd +0 -0
  37. lxml/includes/__init__.py +0 -0
  38. lxml/includes/c14n.pxd +25 -0
  39. lxml/includes/config.pxd +3 -0
  40. lxml/includes/dtdvalid.pxd +18 -0
  41. lxml/includes/etree_defs.h +379 -0
  42. lxml/includes/etreepublic.pxd +237 -0
  43. lxml/includes/extlibs/__init__.py +0 -0
  44. lxml/includes/extlibs/zconf.h +543 -0
  45. lxml/includes/extlibs/zlib.h +1938 -0
  46. lxml/includes/htmlparser.pxd +56 -0
  47. lxml/includes/libexslt/__init__.py +0 -0
  48. lxml/includes/libexslt/exslt.h +108 -0
  49. lxml/includes/libexslt/exsltconfig.h +70 -0
  50. lxml/includes/libexslt/exsltexports.h +63 -0
  51. lxml/includes/libexslt/libexslt.h +29 -0
  52. lxml/includes/libxml/HTMLparser.h +320 -0
  53. lxml/includes/libxml/HTMLtree.h +147 -0
  54. lxml/includes/libxml/SAX.h +204 -0
  55. lxml/includes/libxml/SAX2.h +173 -0
  56. lxml/includes/libxml/__init__.py +0 -0
  57. lxml/includes/libxml/c14n.h +128 -0
  58. lxml/includes/libxml/catalog.h +182 -0
  59. lxml/includes/libxml/chvalid.h +230 -0
  60. lxml/includes/libxml/debugXML.h +217 -0
  61. lxml/includes/libxml/dict.h +81 -0
  62. lxml/includes/libxml/encoding.h +233 -0
  63. lxml/includes/libxml/entities.h +151 -0
  64. lxml/includes/libxml/globals.h +529 -0
  65. lxml/includes/libxml/hash.h +236 -0
  66. lxml/includes/libxml/list.h +137 -0
  67. lxml/includes/libxml/nanoftp.h +186 -0
  68. lxml/includes/libxml/nanohttp.h +81 -0
  69. lxml/includes/libxml/parser.h +1265 -0
  70. lxml/includes/libxml/parserInternals.h +662 -0
  71. lxml/includes/libxml/pattern.h +100 -0
  72. lxml/includes/libxml/relaxng.h +218 -0
  73. lxml/includes/libxml/schemasInternals.h +958 -0
  74. lxml/includes/libxml/schematron.h +142 -0
  75. lxml/includes/libxml/threads.h +94 -0
  76. lxml/includes/libxml/tree.h +1314 -0
  77. lxml/includes/libxml/uri.h +94 -0
  78. lxml/includes/libxml/valid.h +448 -0
  79. lxml/includes/libxml/xinclude.h +129 -0
  80. lxml/includes/libxml/xlink.h +189 -0
  81. lxml/includes/libxml/xmlIO.h +369 -0
  82. lxml/includes/libxml/xmlautomata.h +146 -0
  83. lxml/includes/libxml/xmlerror.h +919 -0
  84. lxml/includes/libxml/xmlexports.h +50 -0
  85. lxml/includes/libxml/xmlmemory.h +228 -0
  86. lxml/includes/libxml/xmlmodule.h +57 -0
  87. lxml/includes/libxml/xmlreader.h +428 -0
  88. lxml/includes/libxml/xmlregexp.h +222 -0
  89. lxml/includes/libxml/xmlsave.h +88 -0
  90. lxml/includes/libxml/xmlschemas.h +246 -0
  91. lxml/includes/libxml/xmlschemastypes.h +152 -0
  92. lxml/includes/libxml/xmlstring.h +140 -0
  93. lxml/includes/libxml/xmlunicode.h +202 -0
  94. lxml/includes/libxml/xmlversion.h +526 -0
  95. lxml/includes/libxml/xmlwriter.h +488 -0
  96. lxml/includes/libxml/xpath.h +575 -0
  97. lxml/includes/libxml/xpathInternals.h +632 -0
  98. lxml/includes/libxml/xpointer.h +137 -0
  99. lxml/includes/libxslt/__init__.py +0 -0
  100. lxml/includes/libxslt/attributes.h +39 -0
  101. lxml/includes/libxslt/documents.h +93 -0
  102. lxml/includes/libxslt/extensions.h +262 -0
  103. lxml/includes/libxslt/extra.h +72 -0
  104. lxml/includes/libxslt/functions.h +78 -0
  105. lxml/includes/libxslt/imports.h +75 -0
  106. lxml/includes/libxslt/keys.h +53 -0
  107. lxml/includes/libxslt/libxslt.h +36 -0
  108. lxml/includes/libxslt/namespaces.h +68 -0
  109. lxml/includes/libxslt/numbersInternals.h +73 -0
  110. lxml/includes/libxslt/preproc.h +43 -0
  111. lxml/includes/libxslt/security.h +104 -0
  112. lxml/includes/libxslt/templates.h +77 -0
  113. lxml/includes/libxslt/transform.h +207 -0
  114. lxml/includes/libxslt/trio.h +216 -0
  115. lxml/includes/libxslt/triodef.h +220 -0
  116. lxml/includes/libxslt/variables.h +118 -0
  117. lxml/includes/libxslt/win32config.h +51 -0
  118. lxml/includes/libxslt/xslt.h +110 -0
  119. lxml/includes/libxslt/xsltInternals.h +1992 -0
  120. lxml/includes/libxslt/xsltconfig.h +179 -0
  121. lxml/includes/libxslt/xsltexports.h +64 -0
  122. lxml/includes/libxslt/xsltlocale.h +44 -0
  123. lxml/includes/libxslt/xsltutils.h +343 -0
  124. lxml/includes/lxml-version.h +3 -0
  125. lxml/includes/relaxng.pxd +64 -0
  126. lxml/includes/schematron.pxd +34 -0
  127. lxml/includes/tree.pxd +492 -0
  128. lxml/includes/uri.pxd +5 -0
  129. lxml/includes/xinclude.pxd +22 -0
  130. lxml/includes/xmlerror.pxd +852 -0
  131. lxml/includes/xmlparser.pxd +303 -0
  132. lxml/includes/xmlschema.pxd +35 -0
  133. lxml/includes/xpath.pxd +136 -0
  134. lxml/includes/xslt.pxd +190 -0
  135. lxml/isoschematron/__init__.py +348 -0
  136. lxml/isoschematron/resources/rng/iso-schematron.rng +709 -0
  137. lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl +75 -0
  138. lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl +77 -0
  139. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl +313 -0
  140. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl +1160 -0
  141. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl +55 -0
  142. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl +1796 -0
  143. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl +588 -0
  144. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt +84 -0
  145. lxml/iterparse.pxi +438 -0
  146. lxml/lxml.etree.h +244 -0
  147. lxml/lxml.etree_api.h +204 -0
  148. lxml/nsclasses.pxi +281 -0
  149. lxml/objectify.cp39-win_arm64.pyd +0 -0
  150. lxml/objectify.pyx +2149 -0
  151. lxml/objectpath.pxi +332 -0
  152. lxml/parser.pxi +2059 -0
  153. lxml/parsertarget.pxi +180 -0
  154. lxml/proxy.pxi +619 -0
  155. lxml/public-api.pxi +178 -0
  156. lxml/pyclasslookup.py +3 -0
  157. lxml/readonlytree.pxi +565 -0
  158. lxml/relaxng.pxi +165 -0
  159. lxml/sax.cp39-win_arm64.pyd +0 -0
  160. lxml/sax.py +286 -0
  161. lxml/saxparser.pxi +875 -0
  162. lxml/schematron.pxi +173 -0
  163. lxml/serializer.pxi +1849 -0
  164. lxml/usedoctest.py +13 -0
  165. lxml/xinclude.pxi +67 -0
  166. lxml/xmlerror.pxi +1654 -0
  167. lxml/xmlid.pxi +179 -0
  168. lxml/xmlschema.pxi +215 -0
  169. lxml/xpath.pxi +487 -0
  170. lxml/xslt.pxi +957 -0
  171. lxml/xsltext.pxi +242 -0
  172. lxml-6.0.0.dist-info/METADATA +163 -0
  173. lxml-6.0.0.dist-info/RECORD +177 -0
  174. lxml-6.0.0.dist-info/WHEEL +5 -0
  175. lxml-6.0.0.dist-info/licenses/LICENSE.txt +31 -0
  176. lxml-6.0.0.dist-info/licenses/LICENSES.txt +29 -0
  177. lxml-6.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,662 @@
1
+ /*
2
+ * Summary: internals routines and limits exported by the parser.
3
+ * 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.
6
+ *
7
+ * Copy: See Copyright for the status of this software.
8
+ *
9
+ * Author: Daniel Veillard
10
+ */
11
+
12
+ #ifndef __XML_PARSER_INTERNALS_H__
13
+ #define __XML_PARSER_INTERNALS_H__
14
+
15
+ #include <libxml/xmlversion.h>
16
+ #include <libxml/parser.h>
17
+ #include <libxml/HTMLparser.h>
18
+ #include <libxml/chvalid.h>
19
+
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
24
+ /**
25
+ * xmlParserMaxDepth:
26
+ *
27
+ * 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.
30
+ */
31
+ XMLPUBVAR unsigned int xmlParserMaxDepth;
32
+
33
+ /**
34
+ * XML_MAX_TEXT_LENGTH:
35
+ *
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.
39
+ * Introduced in 2.9.0
40
+ */
41
+ #define XML_MAX_TEXT_LENGTH 10000000
42
+
43
+ /**
44
+ * XML_MAX_HUGE_LENGTH:
45
+ *
46
+ * Maximum size allowed when XML_PARSE_HUGE is set.
47
+ */
48
+ #define XML_MAX_HUGE_LENGTH 1000000000
49
+
50
+ /**
51
+ * XML_MAX_NAME_LENGTH:
52
+ *
53
+ * Maximum size allowed for a markup identifier.
54
+ * This is not a limitation of the parser but a safety boundary feature,
55
+ * use XML_PARSE_HUGE option to override it.
56
+ * Note that with the use of parsing dictionaries overriding the limit
57
+ * may result in more runtime memory usage in face of "unfriendly' content
58
+ * Introduced in 2.9.0
59
+ */
60
+ #define XML_MAX_NAME_LENGTH 50000
61
+
62
+ /**
63
+ * XML_MAX_DICTIONARY_LIMIT:
64
+ *
65
+ * Maximum size allowed by the parser for a dictionary by default
66
+ * This is not a limitation of the parser but a safety boundary feature,
67
+ * use XML_PARSE_HUGE option to override it.
68
+ * Introduced in 2.9.0
69
+ */
70
+ #define XML_MAX_DICTIONARY_LIMIT 10000000
71
+
72
+ /**
73
+ * XML_MAX_LOOKUP_LIMIT:
74
+ *
75
+ * Maximum size allowed by the parser for ahead lookup
76
+ * This is an upper boundary enforced by the parser to avoid bad
77
+ * behaviour on "unfriendly' content
78
+ * Introduced in 2.9.0
79
+ */
80
+ #define XML_MAX_LOOKUP_LIMIT 10000000
81
+
82
+ /**
83
+ * XML_MAX_NAMELEN:
84
+ *
85
+ * Identifiers can be longer, but this will be more costly
86
+ * at runtime.
87
+ */
88
+ #define XML_MAX_NAMELEN 100
89
+
90
+ /**
91
+ * INPUT_CHUNK:
92
+ *
93
+ * The parser tries to always have that amount of input ready.
94
+ * One of the point is providing context when reporting errors.
95
+ */
96
+ #define INPUT_CHUNK 250
97
+
98
+ /************************************************************************
99
+ * *
100
+ * UNICODE version of the macros. *
101
+ * *
102
+ ************************************************************************/
103
+ /**
104
+ * IS_BYTE_CHAR:
105
+ * @c: an byte value (int)
106
+ *
107
+ * Macro to check the following production in the XML spec:
108
+ *
109
+ * [2] Char ::= #x9 | #xA | #xD | [#x20...]
110
+ * any byte character in the accepted range
111
+ */
112
+ #define IS_BYTE_CHAR(c) xmlIsChar_ch(c)
113
+
114
+ /**
115
+ * IS_CHAR:
116
+ * @c: an UNICODE value (int)
117
+ *
118
+ * Macro to check the following production in the XML spec:
119
+ *
120
+ * [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD]
121
+ * | [#x10000-#x10FFFF]
122
+ * any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.
123
+ */
124
+ #define IS_CHAR(c) xmlIsCharQ(c)
125
+
126
+ /**
127
+ * IS_CHAR_CH:
128
+ * @c: an xmlChar (usually an unsigned char)
129
+ *
130
+ * Behaves like IS_CHAR on single-byte value
131
+ */
132
+ #define IS_CHAR_CH(c) xmlIsChar_ch(c)
133
+
134
+ /**
135
+ * IS_BLANK:
136
+ * @c: an UNICODE value (int)
137
+ *
138
+ * Macro to check the following production in the XML spec:
139
+ *
140
+ * [3] S ::= (#x20 | #x9 | #xD | #xA)+
141
+ */
142
+ #define IS_BLANK(c) xmlIsBlankQ(c)
143
+
144
+ /**
145
+ * IS_BLANK_CH:
146
+ * @c: an xmlChar value (normally unsigned char)
147
+ *
148
+ * Behaviour same as IS_BLANK
149
+ */
150
+ #define IS_BLANK_CH(c) xmlIsBlank_ch(c)
151
+
152
+ /**
153
+ * IS_BASECHAR:
154
+ * @c: an UNICODE value (int)
155
+ *
156
+ * Macro to check the following production in the XML spec:
157
+ *
158
+ * [85] BaseChar ::= ... long list see REC ...
159
+ */
160
+ #define IS_BASECHAR(c) xmlIsBaseCharQ(c)
161
+
162
+ /**
163
+ * IS_DIGIT:
164
+ * @c: an UNICODE value (int)
165
+ *
166
+ * Macro to check the following production in the XML spec:
167
+ *
168
+ * [88] Digit ::= ... long list see REC ...
169
+ */
170
+ #define IS_DIGIT(c) xmlIsDigitQ(c)
171
+
172
+ /**
173
+ * IS_DIGIT_CH:
174
+ * @c: an xmlChar value (usually an unsigned char)
175
+ *
176
+ * Behaves like IS_DIGIT but with a single byte argument
177
+ */
178
+ #define IS_DIGIT_CH(c) xmlIsDigit_ch(c)
179
+
180
+ /**
181
+ * IS_COMBINING:
182
+ * @c: an UNICODE value (int)
183
+ *
184
+ * Macro to check the following production in the XML spec:
185
+ *
186
+ * [87] CombiningChar ::= ... long list see REC ...
187
+ */
188
+ #define IS_COMBINING(c) xmlIsCombiningQ(c)
189
+
190
+ /**
191
+ * IS_COMBINING_CH:
192
+ * @c: an xmlChar (usually an unsigned char)
193
+ *
194
+ * Always false (all combining chars > 0xff)
195
+ */
196
+ #define IS_COMBINING_CH(c) 0
197
+
198
+ /**
199
+ * IS_EXTENDER:
200
+ * @c: an UNICODE value (int)
201
+ *
202
+ * Macro to check the following production in the XML spec:
203
+ *
204
+ *
205
+ * [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 |
206
+ * #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] |
207
+ * [#x309D-#x309E] | [#x30FC-#x30FE]
208
+ */
209
+ #define IS_EXTENDER(c) xmlIsExtenderQ(c)
210
+
211
+ /**
212
+ * IS_EXTENDER_CH:
213
+ * @c: an xmlChar value (usually an unsigned char)
214
+ *
215
+ * Behaves like IS_EXTENDER but with a single-byte argument
216
+ */
217
+ #define IS_EXTENDER_CH(c) xmlIsExtender_ch(c)
218
+
219
+ /**
220
+ * IS_IDEOGRAPHIC:
221
+ * @c: an UNICODE value (int)
222
+ *
223
+ * Macro to check the following production in the XML spec:
224
+ *
225
+ *
226
+ * [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029]
227
+ */
228
+ #define IS_IDEOGRAPHIC(c) xmlIsIdeographicQ(c)
229
+
230
+ /**
231
+ * IS_LETTER:
232
+ * @c: an UNICODE value (int)
233
+ *
234
+ * Macro to check the following production in the XML spec:
235
+ *
236
+ *
237
+ * [84] Letter ::= BaseChar | Ideographic
238
+ */
239
+ #define IS_LETTER(c) (IS_BASECHAR(c) || IS_IDEOGRAPHIC(c))
240
+
241
+ /**
242
+ * IS_LETTER_CH:
243
+ * @c: an xmlChar value (normally unsigned char)
244
+ *
245
+ * Macro behaves like IS_LETTER, but only check base chars
246
+ *
247
+ */
248
+ #define IS_LETTER_CH(c) xmlIsBaseChar_ch(c)
249
+
250
+ /**
251
+ * IS_ASCII_LETTER:
252
+ * @c: an xmlChar value
253
+ *
254
+ * Macro to check [a-zA-Z]
255
+ *
256
+ */
257
+ #define IS_ASCII_LETTER(c) (((0x41 <= (c)) && ((c) <= 0x5a)) || \
258
+ ((0x61 <= (c)) && ((c) <= 0x7a)))
259
+
260
+ /**
261
+ * IS_ASCII_DIGIT:
262
+ * @c: an xmlChar value
263
+ *
264
+ * Macro to check [0-9]
265
+ *
266
+ */
267
+ #define IS_ASCII_DIGIT(c) ((0x30 <= (c)) && ((c) <= 0x39))
268
+
269
+ /**
270
+ * IS_PUBIDCHAR:
271
+ * @c: an UNICODE value (int)
272
+ *
273
+ * Macro to check the following production in the XML spec:
274
+ *
275
+ *
276
+ * [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]
277
+ */
278
+ #define IS_PUBIDCHAR(c) xmlIsPubidCharQ(c)
279
+
280
+ /**
281
+ * IS_PUBIDCHAR_CH:
282
+ * @c: an xmlChar value (normally unsigned char)
283
+ *
284
+ * Same as IS_PUBIDCHAR but for single-byte value
285
+ */
286
+ #define IS_PUBIDCHAR_CH(c) xmlIsPubidChar_ch(c)
287
+
288
+ /**
289
+ * Global variables used for predefined strings.
290
+ */
291
+ XMLPUBVAR const xmlChar xmlStringText[];
292
+ XMLPUBVAR const xmlChar xmlStringTextNoenc[];
293
+ XMLPUBVAR const xmlChar xmlStringComment[];
294
+
295
+ /*
296
+ * Function to finish the work of the macros where needed.
297
+ */
298
+ XMLPUBFUN int xmlIsLetter (int c);
299
+
300
+ /**
301
+ * Parser context.
302
+ */
303
+ XMLPUBFUN xmlParserCtxtPtr
304
+ xmlCreateFileParserCtxt (const char *filename);
305
+ XMLPUBFUN xmlParserCtxtPtr
306
+ xmlCreateURLParserCtxt (const char *filename,
307
+ int options);
308
+ XMLPUBFUN xmlParserCtxtPtr
309
+ xmlCreateMemoryParserCtxt(const char *buffer,
310
+ int size);
311
+ XMLPUBFUN xmlParserCtxtPtr
312
+ xmlCreateEntityParserCtxt(const xmlChar *URL,
313
+ const xmlChar *ID,
314
+ const xmlChar *base);
315
+ XMLPUBFUN int
316
+ xmlSwitchEncoding (xmlParserCtxtPtr ctxt,
317
+ xmlCharEncoding enc);
318
+ XMLPUBFUN int
319
+ xmlSwitchToEncoding (xmlParserCtxtPtr ctxt,
320
+ xmlCharEncodingHandlerPtr handler);
321
+ XML_DEPRECATED
322
+ XMLPUBFUN int
323
+ xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt,
324
+ xmlParserInputPtr input,
325
+ xmlCharEncodingHandlerPtr handler);
326
+
327
+ /**
328
+ * Input Streams.
329
+ */
330
+ XMLPUBFUN xmlParserInputPtr
331
+ xmlNewStringInputStream (xmlParserCtxtPtr ctxt,
332
+ const xmlChar *buffer);
333
+ XML_DEPRECATED
334
+ XMLPUBFUN xmlParserInputPtr
335
+ xmlNewEntityInputStream (xmlParserCtxtPtr ctxt,
336
+ xmlEntityPtr entity);
337
+ XMLPUBFUN int
338
+ xmlPushInput (xmlParserCtxtPtr ctxt,
339
+ xmlParserInputPtr input);
340
+ XMLPUBFUN xmlChar
341
+ xmlPopInput (xmlParserCtxtPtr ctxt);
342
+ XMLPUBFUN void
343
+ xmlFreeInputStream (xmlParserInputPtr input);
344
+ XMLPUBFUN xmlParserInputPtr
345
+ xmlNewInputFromFile (xmlParserCtxtPtr ctxt,
346
+ const char *filename);
347
+ XMLPUBFUN xmlParserInputPtr
348
+ xmlNewInputStream (xmlParserCtxtPtr ctxt);
349
+
350
+ /**
351
+ * Namespaces.
352
+ */
353
+ XMLPUBFUN xmlChar *
354
+ xmlSplitQName (xmlParserCtxtPtr ctxt,
355
+ const xmlChar *name,
356
+ xmlChar **prefix);
357
+
358
+ /**
359
+ * Generic production rules.
360
+ */
361
+ XML_DEPRECATED
362
+ XMLPUBFUN const xmlChar *
363
+ xmlParseName (xmlParserCtxtPtr ctxt);
364
+ XML_DEPRECATED
365
+ XMLPUBFUN xmlChar *
366
+ xmlParseNmtoken (xmlParserCtxtPtr ctxt);
367
+ XML_DEPRECATED
368
+ XMLPUBFUN xmlChar *
369
+ xmlParseEntityValue (xmlParserCtxtPtr ctxt,
370
+ xmlChar **orig);
371
+ XML_DEPRECATED
372
+ XMLPUBFUN xmlChar *
373
+ xmlParseAttValue (xmlParserCtxtPtr ctxt);
374
+ XML_DEPRECATED
375
+ XMLPUBFUN xmlChar *
376
+ xmlParseSystemLiteral (xmlParserCtxtPtr ctxt);
377
+ XML_DEPRECATED
378
+ XMLPUBFUN xmlChar *
379
+ xmlParsePubidLiteral (xmlParserCtxtPtr ctxt);
380
+ XML_DEPRECATED
381
+ XMLPUBFUN void
382
+ xmlParseCharData (xmlParserCtxtPtr ctxt,
383
+ int cdata);
384
+ XML_DEPRECATED
385
+ XMLPUBFUN xmlChar *
386
+ xmlParseExternalID (xmlParserCtxtPtr ctxt,
387
+ xmlChar **publicID,
388
+ int strict);
389
+ XML_DEPRECATED
390
+ XMLPUBFUN void
391
+ xmlParseComment (xmlParserCtxtPtr ctxt);
392
+ XML_DEPRECATED
393
+ XMLPUBFUN const xmlChar *
394
+ xmlParsePITarget (xmlParserCtxtPtr ctxt);
395
+ XML_DEPRECATED
396
+ XMLPUBFUN void
397
+ xmlParsePI (xmlParserCtxtPtr ctxt);
398
+ XML_DEPRECATED
399
+ XMLPUBFUN void
400
+ xmlParseNotationDecl (xmlParserCtxtPtr ctxt);
401
+ XML_DEPRECATED
402
+ XMLPUBFUN void
403
+ xmlParseEntityDecl (xmlParserCtxtPtr ctxt);
404
+ XML_DEPRECATED
405
+ XMLPUBFUN int
406
+ xmlParseDefaultDecl (xmlParserCtxtPtr ctxt,
407
+ xmlChar **value);
408
+ XML_DEPRECATED
409
+ XMLPUBFUN xmlEnumerationPtr
410
+ xmlParseNotationType (xmlParserCtxtPtr ctxt);
411
+ XML_DEPRECATED
412
+ XMLPUBFUN xmlEnumerationPtr
413
+ xmlParseEnumerationType (xmlParserCtxtPtr ctxt);
414
+ XML_DEPRECATED
415
+ XMLPUBFUN int
416
+ xmlParseEnumeratedType (xmlParserCtxtPtr ctxt,
417
+ xmlEnumerationPtr *tree);
418
+ XML_DEPRECATED
419
+ XMLPUBFUN int
420
+ xmlParseAttributeType (xmlParserCtxtPtr ctxt,
421
+ xmlEnumerationPtr *tree);
422
+ XML_DEPRECATED
423
+ XMLPUBFUN void
424
+ xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt);
425
+ XML_DEPRECATED
426
+ XMLPUBFUN xmlElementContentPtr
427
+ xmlParseElementMixedContentDecl
428
+ (xmlParserCtxtPtr ctxt,
429
+ int inputchk);
430
+ XML_DEPRECATED
431
+ XMLPUBFUN xmlElementContentPtr
432
+ xmlParseElementChildrenContentDecl
433
+ (xmlParserCtxtPtr ctxt,
434
+ int inputchk);
435
+ XML_DEPRECATED
436
+ XMLPUBFUN int
437
+ xmlParseElementContentDecl(xmlParserCtxtPtr ctxt,
438
+ const xmlChar *name,
439
+ xmlElementContentPtr *result);
440
+ XML_DEPRECATED
441
+ XMLPUBFUN int
442
+ xmlParseElementDecl (xmlParserCtxtPtr ctxt);
443
+ XML_DEPRECATED
444
+ XMLPUBFUN void
445
+ xmlParseMarkupDecl (xmlParserCtxtPtr ctxt);
446
+ XML_DEPRECATED
447
+ XMLPUBFUN int
448
+ xmlParseCharRef (xmlParserCtxtPtr ctxt);
449
+ XML_DEPRECATED
450
+ XMLPUBFUN xmlEntityPtr
451
+ xmlParseEntityRef (xmlParserCtxtPtr ctxt);
452
+ XML_DEPRECATED
453
+ XMLPUBFUN void
454
+ xmlParseReference (xmlParserCtxtPtr ctxt);
455
+ XML_DEPRECATED
456
+ XMLPUBFUN void
457
+ xmlParsePEReference (xmlParserCtxtPtr ctxt);
458
+ XML_DEPRECATED
459
+ XMLPUBFUN void
460
+ xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt);
461
+ #ifdef LIBXML_SAX1_ENABLED
462
+ XML_DEPRECATED
463
+ XMLPUBFUN const xmlChar *
464
+ xmlParseAttribute (xmlParserCtxtPtr ctxt,
465
+ xmlChar **value);
466
+ XML_DEPRECATED
467
+ XMLPUBFUN const xmlChar *
468
+ xmlParseStartTag (xmlParserCtxtPtr ctxt);
469
+ XML_DEPRECATED
470
+ XMLPUBFUN void
471
+ xmlParseEndTag (xmlParserCtxtPtr ctxt);
472
+ #endif /* LIBXML_SAX1_ENABLED */
473
+ XML_DEPRECATED
474
+ XMLPUBFUN void
475
+ xmlParseCDSect (xmlParserCtxtPtr ctxt);
476
+ XMLPUBFUN void
477
+ xmlParseContent (xmlParserCtxtPtr ctxt);
478
+ XML_DEPRECATED
479
+ XMLPUBFUN void
480
+ xmlParseElement (xmlParserCtxtPtr ctxt);
481
+ XML_DEPRECATED
482
+ XMLPUBFUN xmlChar *
483
+ xmlParseVersionNum (xmlParserCtxtPtr ctxt);
484
+ XML_DEPRECATED
485
+ XMLPUBFUN xmlChar *
486
+ xmlParseVersionInfo (xmlParserCtxtPtr ctxt);
487
+ XML_DEPRECATED
488
+ XMLPUBFUN xmlChar *
489
+ xmlParseEncName (xmlParserCtxtPtr ctxt);
490
+ XML_DEPRECATED
491
+ XMLPUBFUN const xmlChar *
492
+ xmlParseEncodingDecl (xmlParserCtxtPtr ctxt);
493
+ XML_DEPRECATED
494
+ XMLPUBFUN int
495
+ xmlParseSDDecl (xmlParserCtxtPtr ctxt);
496
+ XML_DEPRECATED
497
+ XMLPUBFUN void
498
+ xmlParseXMLDecl (xmlParserCtxtPtr ctxt);
499
+ XML_DEPRECATED
500
+ XMLPUBFUN void
501
+ xmlParseTextDecl (xmlParserCtxtPtr ctxt);
502
+ XML_DEPRECATED
503
+ XMLPUBFUN void
504
+ xmlParseMisc (xmlParserCtxtPtr ctxt);
505
+ XMLPUBFUN void
506
+ xmlParseExternalSubset (xmlParserCtxtPtr ctxt,
507
+ const xmlChar *ExternalID,
508
+ const xmlChar *SystemID);
509
+ /**
510
+ * XML_SUBSTITUTE_NONE:
511
+ *
512
+ * If no entities need to be substituted.
513
+ */
514
+ #define XML_SUBSTITUTE_NONE 0
515
+ /**
516
+ * XML_SUBSTITUTE_REF:
517
+ *
518
+ * Whether general entities need to be substituted.
519
+ */
520
+ #define XML_SUBSTITUTE_REF 1
521
+ /**
522
+ * XML_SUBSTITUTE_PEREF:
523
+ *
524
+ * Whether parameter entities need to be substituted.
525
+ */
526
+ #define XML_SUBSTITUTE_PEREF 2
527
+ /**
528
+ * XML_SUBSTITUTE_BOTH:
529
+ *
530
+ * Both general and parameter entities need to be substituted.
531
+ */
532
+ #define XML_SUBSTITUTE_BOTH 3
533
+
534
+ XML_DEPRECATED
535
+ XMLPUBFUN xmlChar *
536
+ xmlStringDecodeEntities (xmlParserCtxtPtr ctxt,
537
+ const xmlChar *str,
538
+ int what,
539
+ xmlChar end,
540
+ xmlChar end2,
541
+ xmlChar end3);
542
+ XML_DEPRECATED
543
+ XMLPUBFUN xmlChar *
544
+ xmlStringLenDecodeEntities (xmlParserCtxtPtr ctxt,
545
+ const xmlChar *str,
546
+ int len,
547
+ int what,
548
+ xmlChar end,
549
+ xmlChar end2,
550
+ xmlChar end3);
551
+
552
+ /*
553
+ * Generated by MACROS on top of parser.c c.f. PUSH_AND_POP.
554
+ */
555
+ XML_DEPRECATED
556
+ XMLPUBFUN int nodePush (xmlParserCtxtPtr ctxt,
557
+ xmlNodePtr value);
558
+ XML_DEPRECATED
559
+ XMLPUBFUN xmlNodePtr nodePop (xmlParserCtxtPtr ctxt);
560
+ XMLPUBFUN int inputPush (xmlParserCtxtPtr ctxt,
561
+ xmlParserInputPtr value);
562
+ XMLPUBFUN xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt);
563
+ XML_DEPRECATED
564
+ XMLPUBFUN const xmlChar * namePop (xmlParserCtxtPtr ctxt);
565
+ XML_DEPRECATED
566
+ XMLPUBFUN int namePush (xmlParserCtxtPtr ctxt,
567
+ const xmlChar *value);
568
+
569
+ /*
570
+ * other commodities shared between parser.c and parserInternals.
571
+ */
572
+ XML_DEPRECATED
573
+ XMLPUBFUN int xmlSkipBlankChars (xmlParserCtxtPtr ctxt);
574
+ XML_DEPRECATED
575
+ XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
576
+ const xmlChar *cur,
577
+ int *len);
578
+ XML_DEPRECATED
579
+ XMLPUBFUN void xmlParserHandlePEReference(xmlParserCtxtPtr ctxt);
580
+ XML_DEPRECATED
581
+ XMLPUBFUN int xmlCheckLanguageID (const xmlChar *lang);
582
+
583
+ /*
584
+ * Really core function shared with HTML parser.
585
+ */
586
+ XML_DEPRECATED
587
+ XMLPUBFUN int xmlCurrentChar (xmlParserCtxtPtr ctxt,
588
+ int *len);
589
+ XMLPUBFUN int xmlCopyCharMultiByte (xmlChar *out,
590
+ int val);
591
+ XMLPUBFUN int xmlCopyChar (int len,
592
+ xmlChar *out,
593
+ int val);
594
+ XML_DEPRECATED
595
+ XMLPUBFUN void xmlNextChar (xmlParserCtxtPtr ctxt);
596
+ XML_DEPRECATED
597
+ XMLPUBFUN void xmlParserInputShrink (xmlParserInputPtr in);
598
+
599
+ /*
600
+ * Specific function to keep track of entities references
601
+ * and used by the XSLT debugger.
602
+ */
603
+ #ifdef LIBXML_LEGACY_ENABLED
604
+ /**
605
+ * xmlEntityReferenceFunc:
606
+ * @ent: the entity
607
+ * @firstNode: the fist node in the chunk
608
+ * @lastNode: the last nod in the chunk
609
+ *
610
+ * Callback function used when one needs to be able to track back the
611
+ * provenance of a chunk of nodes inherited from an entity replacement.
612
+ */
613
+ typedef void (*xmlEntityReferenceFunc) (xmlEntityPtr ent,
614
+ xmlNodePtr firstNode,
615
+ xmlNodePtr lastNode);
616
+
617
+ XML_DEPRECATED
618
+ XMLPUBFUN void xmlSetEntityReferenceFunc (xmlEntityReferenceFunc func);
619
+
620
+ XML_DEPRECATED
621
+ XMLPUBFUN xmlChar *
622
+ xmlParseQuotedString (xmlParserCtxtPtr ctxt);
623
+ XML_DEPRECATED
624
+ XMLPUBFUN void
625
+ xmlParseNamespace (xmlParserCtxtPtr ctxt);
626
+ XML_DEPRECATED
627
+ XMLPUBFUN xmlChar *
628
+ xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt);
629
+ XML_DEPRECATED
630
+ XMLPUBFUN xmlChar *
631
+ xmlScanName (xmlParserCtxtPtr ctxt);
632
+ XML_DEPRECATED
633
+ XMLPUBFUN xmlChar *
634
+ xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt);
635
+ XML_DEPRECATED
636
+ XMLPUBFUN void xmlParserHandleReference(xmlParserCtxtPtr ctxt);
637
+ XML_DEPRECATED
638
+ XMLPUBFUN xmlChar *
639
+ xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
640
+ xmlChar **prefix);
641
+ /**
642
+ * Entities
643
+ */
644
+ XML_DEPRECATED
645
+ XMLPUBFUN xmlChar *
646
+ xmlDecodeEntities (xmlParserCtxtPtr ctxt,
647
+ int len,
648
+ int what,
649
+ xmlChar end,
650
+ xmlChar end2,
651
+ xmlChar end3);
652
+ XML_DEPRECATED
653
+ XMLPUBFUN void
654
+ xmlHandleEntity (xmlParserCtxtPtr ctxt,
655
+ xmlEntityPtr entity);
656
+
657
+ #endif /* LIBXML_LEGACY_ENABLED */
658
+
659
+ #ifdef __cplusplus
660
+ }
661
+ #endif
662
+ #endif /* __XML_PARSER_INTERNALS_H__ */