lxml 5.3.2__cp39-cp39-macosx_10_9_universal2.whl → 6.0.0__cp39-cp39-macosx_10_9_universal2.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.
- lxml/__init__.py +1 -1
- lxml/_elementpath.cpython-39-darwin.so +0 -0
- lxml/_elementpath.py +3 -1
- lxml/apihelpers.pxi +25 -17
- lxml/builder.cpython-39-darwin.so +0 -0
- lxml/builder.py +11 -0
- lxml/debug.pxi +0 -54
- lxml/etree.cpython-39-darwin.so +0 -0
- lxml/etree.h +24 -28
- lxml/etree.pyx +154 -33
- lxml/etree_api.h +59 -50
- lxml/extensions.pxi +3 -6
- lxml/html/__init__.py +7 -3
- lxml/html/_difflib.cpython-39-darwin.so +0 -0
- lxml/html/_difflib.py +2106 -0
- lxml/html/builder.py +40 -0
- lxml/html/defs.py +3 -3
- lxml/html/diff.cpython-39-darwin.so +0 -0
- lxml/html/diff.py +406 -312
- lxml/includes/etree_defs.h +6 -6
- lxml/includes/libexslt/exsltconfig.h +3 -3
- lxml/includes/libxml/HTMLparser.h +41 -45
- lxml/includes/libxml/HTMLtree.h +1 -0
- lxml/includes/libxml/SAX.h +2 -186
- lxml/includes/libxml/SAX2.h +2 -3
- lxml/includes/libxml/c14n.h +1 -12
- lxml/includes/libxml/catalog.h +1 -0
- lxml/includes/libxml/debugXML.h +0 -138
- lxml/includes/libxml/encoding.h +131 -59
- lxml/includes/libxml/entities.h +12 -20
- lxml/includes/libxml/globals.h +0 -16
- lxml/includes/libxml/hash.h +19 -0
- lxml/includes/libxml/list.h +2 -2
- lxml/includes/libxml/nanoftp.h +3 -173
- lxml/includes/libxml/nanohttp.h +17 -0
- lxml/includes/libxml/parser.h +505 -256
- lxml/includes/libxml/parserInternals.h +26 -98
- lxml/includes/libxml/relaxng.h +7 -2
- lxml/includes/libxml/threads.h +0 -6
- lxml/includes/libxml/tree.h +61 -97
- lxml/includes/libxml/uri.h +11 -0
- lxml/includes/libxml/valid.h +49 -14
- lxml/includes/libxml/xinclude.h +12 -0
- lxml/includes/libxml/xlink.h +4 -0
- lxml/includes/libxml/xmlIO.h +33 -35
- lxml/includes/libxml/xmlautomata.h +19 -2
- lxml/includes/libxml/xmlerror.h +32 -18
- lxml/includes/libxml/xmlexports.h +61 -15
- lxml/includes/libxml/xmlmemory.h +27 -64
- lxml/includes/libxml/xmlmodule.h +4 -0
- lxml/includes/libxml/xmlreader.h +13 -3
- lxml/includes/libxml/xmlregexp.h +7 -106
- lxml/includes/libxml/xmlsave.h +15 -1
- lxml/includes/libxml/xmlschemas.h +10 -5
- lxml/includes/libxml/xmlunicode.h +3 -190
- lxml/includes/libxml/xmlversion.h +15 -194
- lxml/includes/libxml/xmlwriter.h +1 -0
- lxml/includes/libxml/xpath.h +9 -15
- lxml/includes/libxml/xpathInternals.h +9 -3
- lxml/includes/libxml/xpointer.h +1 -91
- lxml/includes/libxslt/xsltconfig.h +6 -6
- lxml/includes/lxml-version.h +1 -1
- lxml/includes/tree.pxd +10 -12
- lxml/includes/xmlparser.pxd +46 -8
- lxml/lxml.etree.h +24 -28
- lxml/lxml.etree_api.h +59 -50
- lxml/objectify.cpython-39-darwin.so +0 -0
- lxml/objectify.pyx +11 -7
- lxml/parser.pxi +106 -47
- lxml/sax.cpython-39-darwin.so +0 -0
- lxml/sax.py +11 -0
- lxml/saxparser.pxi +14 -14
- lxml/schematron.pxi +8 -3
- lxml/serializer.pxi +71 -3
- lxml/xslt.pxi +10 -3
- lxml-6.0.0.dist-info/METADATA +163 -0
- {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/RECORD +81 -79
- {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/WHEEL +2 -1
- {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/licenses/LICENSE.txt +3 -1
- lxml-5.3.2.dist-info/METADATA +0 -100
- {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/licenses/LICENSES.txt +0 -0
- {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/top_level.txt +0 -0
lxml/includes/libxml/uri.h
CHANGED
@@ -52,14 +52,25 @@ struct _xmlURI {
|
|
52
52
|
*/
|
53
53
|
XMLPUBFUN xmlURIPtr
|
54
54
|
xmlCreateURI (void);
|
55
|
+
XMLPUBFUN int
|
56
|
+
xmlBuildURISafe (const xmlChar *URI,
|
57
|
+
const xmlChar *base,
|
58
|
+
xmlChar **out);
|
55
59
|
XMLPUBFUN xmlChar *
|
56
60
|
xmlBuildURI (const xmlChar *URI,
|
57
61
|
const xmlChar *base);
|
62
|
+
XMLPUBFUN int
|
63
|
+
xmlBuildRelativeURISafe (const xmlChar *URI,
|
64
|
+
const xmlChar *base,
|
65
|
+
xmlChar **out);
|
58
66
|
XMLPUBFUN xmlChar *
|
59
67
|
xmlBuildRelativeURI (const xmlChar *URI,
|
60
68
|
const xmlChar *base);
|
61
69
|
XMLPUBFUN xmlURIPtr
|
62
70
|
xmlParseURI (const char *str);
|
71
|
+
XMLPUBFUN int
|
72
|
+
xmlParseURISafe (const char *str,
|
73
|
+
xmlURIPtr *uri);
|
63
74
|
XMLPUBFUN xmlURIPtr
|
64
75
|
xmlParseURIRaw (const char *str,
|
65
76
|
int raw);
|
lxml/includes/libxml/valid.h
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
#ifndef __XML_VALID_H__
|
12
12
|
#define __XML_VALID_H__
|
13
13
|
|
14
|
+
/** DOC_DISABLE */
|
14
15
|
#include <libxml/xmlversion.h>
|
15
16
|
#include <libxml/xmlerror.h>
|
16
17
|
#define XML_TREE_INTERNALS
|
@@ -19,6 +20,7 @@
|
|
19
20
|
#include <libxml/list.h>
|
20
21
|
#include <libxml/xmlautomata.h>
|
21
22
|
#include <libxml/xmlregexp.h>
|
23
|
+
/** DOC_ENABLE */
|
22
24
|
|
23
25
|
#ifdef __cplusplus
|
24
26
|
extern "C" {
|
@@ -137,22 +139,25 @@ typedef struct _xmlHashTable xmlRefTable;
|
|
137
139
|
typedef xmlRefTable *xmlRefTablePtr;
|
138
140
|
|
139
141
|
/* Notation */
|
142
|
+
XML_DEPRECATED
|
140
143
|
XMLPUBFUN xmlNotationPtr
|
141
144
|
xmlAddNotationDecl (xmlValidCtxtPtr ctxt,
|
142
145
|
xmlDtdPtr dtd,
|
143
146
|
const xmlChar *name,
|
144
147
|
const xmlChar *PublicID,
|
145
148
|
const xmlChar *SystemID);
|
146
|
-
|
149
|
+
XML_DEPRECATED
|
147
150
|
XMLPUBFUN xmlNotationTablePtr
|
148
151
|
xmlCopyNotationTable (xmlNotationTablePtr table);
|
149
|
-
|
152
|
+
XML_DEPRECATED
|
150
153
|
XMLPUBFUN void
|
151
154
|
xmlFreeNotationTable (xmlNotationTablePtr table);
|
152
155
|
#ifdef LIBXML_OUTPUT_ENABLED
|
156
|
+
XML_DEPRECATED
|
153
157
|
XMLPUBFUN void
|
154
158
|
xmlDumpNotationDecl (xmlBufferPtr buf,
|
155
159
|
xmlNotationPtr nota);
|
160
|
+
/* XML_DEPRECATED, still used in lxml */
|
156
161
|
XMLPUBFUN void
|
157
162
|
xmlDumpNotationTable (xmlBufferPtr buf,
|
158
163
|
xmlNotationTablePtr table);
|
@@ -160,71 +165,82 @@ XMLPUBFUN void
|
|
160
165
|
|
161
166
|
/* Element Content */
|
162
167
|
/* the non Doc version are being deprecated */
|
168
|
+
XML_DEPRECATED
|
163
169
|
XMLPUBFUN xmlElementContentPtr
|
164
170
|
xmlNewElementContent (const xmlChar *name,
|
165
171
|
xmlElementContentType type);
|
172
|
+
XML_DEPRECATED
|
166
173
|
XMLPUBFUN xmlElementContentPtr
|
167
174
|
xmlCopyElementContent (xmlElementContentPtr content);
|
175
|
+
XML_DEPRECATED
|
168
176
|
XMLPUBFUN void
|
169
177
|
xmlFreeElementContent (xmlElementContentPtr cur);
|
170
178
|
/* the new versions with doc argument */
|
179
|
+
XML_DEPRECATED
|
171
180
|
XMLPUBFUN xmlElementContentPtr
|
172
181
|
xmlNewDocElementContent (xmlDocPtr doc,
|
173
182
|
const xmlChar *name,
|
174
183
|
xmlElementContentType type);
|
184
|
+
XML_DEPRECATED
|
175
185
|
XMLPUBFUN xmlElementContentPtr
|
176
186
|
xmlCopyDocElementContent(xmlDocPtr doc,
|
177
187
|
xmlElementContentPtr content);
|
188
|
+
XML_DEPRECATED
|
178
189
|
XMLPUBFUN void
|
179
190
|
xmlFreeDocElementContent(xmlDocPtr doc,
|
180
191
|
xmlElementContentPtr cur);
|
192
|
+
XML_DEPRECATED
|
181
193
|
XMLPUBFUN void
|
182
194
|
xmlSnprintfElementContent(char *buf,
|
183
195
|
int size,
|
184
196
|
xmlElementContentPtr content,
|
185
197
|
int englob);
|
186
198
|
#ifdef LIBXML_OUTPUT_ENABLED
|
187
|
-
|
199
|
+
XML_DEPRECATED
|
188
200
|
XMLPUBFUN void
|
189
201
|
xmlSprintfElementContent(char *buf,
|
190
202
|
xmlElementContentPtr content,
|
191
203
|
int englob);
|
192
204
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
193
|
-
/* DEPRECATED */
|
194
205
|
|
195
206
|
/* Element */
|
207
|
+
XML_DEPRECATED
|
196
208
|
XMLPUBFUN xmlElementPtr
|
197
209
|
xmlAddElementDecl (xmlValidCtxtPtr ctxt,
|
198
210
|
xmlDtdPtr dtd,
|
199
211
|
const xmlChar *name,
|
200
212
|
xmlElementTypeVal type,
|
201
213
|
xmlElementContentPtr content);
|
202
|
-
|
214
|
+
XML_DEPRECATED
|
203
215
|
XMLPUBFUN xmlElementTablePtr
|
204
216
|
xmlCopyElementTable (xmlElementTablePtr table);
|
205
|
-
|
217
|
+
XML_DEPRECATED
|
206
218
|
XMLPUBFUN void
|
207
219
|
xmlFreeElementTable (xmlElementTablePtr table);
|
208
220
|
#ifdef LIBXML_OUTPUT_ENABLED
|
221
|
+
XML_DEPRECATED
|
209
222
|
XMLPUBFUN void
|
210
223
|
xmlDumpElementTable (xmlBufferPtr buf,
|
211
224
|
xmlElementTablePtr table);
|
225
|
+
XML_DEPRECATED
|
212
226
|
XMLPUBFUN void
|
213
227
|
xmlDumpElementDecl (xmlBufferPtr buf,
|
214
228
|
xmlElementPtr elem);
|
215
229
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
216
230
|
|
217
231
|
/* Enumeration */
|
232
|
+
XML_DEPRECATED
|
218
233
|
XMLPUBFUN xmlEnumerationPtr
|
219
234
|
xmlCreateEnumeration (const xmlChar *name);
|
235
|
+
/* XML_DEPRECATED, needed for custom attributeDecl SAX handler */
|
220
236
|
XMLPUBFUN void
|
221
237
|
xmlFreeEnumeration (xmlEnumerationPtr cur);
|
222
|
-
|
238
|
+
XML_DEPRECATED
|
223
239
|
XMLPUBFUN xmlEnumerationPtr
|
224
240
|
xmlCopyEnumeration (xmlEnumerationPtr cur);
|
225
|
-
#endif /* LIBXML_TREE_ENABLED */
|
226
241
|
|
227
242
|
/* Attribute */
|
243
|
+
XML_DEPRECATED
|
228
244
|
XMLPUBFUN xmlAttributePtr
|
229
245
|
xmlAddAttributeDecl (xmlValidCtxtPtr ctxt,
|
230
246
|
xmlDtdPtr dtd,
|
@@ -235,22 +251,27 @@ XMLPUBFUN xmlAttributePtr
|
|
235
251
|
xmlAttributeDefault def,
|
236
252
|
const xmlChar *defaultValue,
|
237
253
|
xmlEnumerationPtr tree);
|
238
|
-
|
254
|
+
XML_DEPRECATED
|
239
255
|
XMLPUBFUN xmlAttributeTablePtr
|
240
256
|
xmlCopyAttributeTable (xmlAttributeTablePtr table);
|
241
|
-
|
257
|
+
XML_DEPRECATED
|
242
258
|
XMLPUBFUN void
|
243
259
|
xmlFreeAttributeTable (xmlAttributeTablePtr table);
|
244
260
|
#ifdef LIBXML_OUTPUT_ENABLED
|
261
|
+
XML_DEPRECATED
|
245
262
|
XMLPUBFUN void
|
246
263
|
xmlDumpAttributeTable (xmlBufferPtr buf,
|
247
264
|
xmlAttributeTablePtr table);
|
265
|
+
XML_DEPRECATED
|
248
266
|
XMLPUBFUN void
|
249
267
|
xmlDumpAttributeDecl (xmlBufferPtr buf,
|
250
268
|
xmlAttributePtr attr);
|
251
269
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
252
270
|
|
253
271
|
/* IDs */
|
272
|
+
XMLPUBFUN int
|
273
|
+
xmlAddIDSafe (xmlAttrPtr attr,
|
274
|
+
const xmlChar *value);
|
254
275
|
XMLPUBFUN xmlIDPtr
|
255
276
|
xmlAddID (xmlValidCtxtPtr ctxt,
|
256
277
|
xmlDocPtr doc,
|
@@ -303,31 +324,38 @@ XMLPUBFUN xmlValidCtxtPtr
|
|
303
324
|
XMLPUBFUN void
|
304
325
|
xmlFreeValidCtxt(xmlValidCtxtPtr);
|
305
326
|
|
327
|
+
XML_DEPRECATED
|
306
328
|
XMLPUBFUN int
|
307
329
|
xmlValidateRoot (xmlValidCtxtPtr ctxt,
|
308
330
|
xmlDocPtr doc);
|
331
|
+
XML_DEPRECATED
|
309
332
|
XMLPUBFUN int
|
310
333
|
xmlValidateElementDecl (xmlValidCtxtPtr ctxt,
|
311
334
|
xmlDocPtr doc,
|
312
335
|
xmlElementPtr elem);
|
336
|
+
XML_DEPRECATED
|
313
337
|
XMLPUBFUN xmlChar *
|
314
338
|
xmlValidNormalizeAttributeValue(xmlDocPtr doc,
|
315
339
|
xmlNodePtr elem,
|
316
340
|
const xmlChar *name,
|
317
341
|
const xmlChar *value);
|
342
|
+
XML_DEPRECATED
|
318
343
|
XMLPUBFUN xmlChar *
|
319
344
|
xmlValidCtxtNormalizeAttributeValue(xmlValidCtxtPtr ctxt,
|
320
345
|
xmlDocPtr doc,
|
321
346
|
xmlNodePtr elem,
|
322
347
|
const xmlChar *name,
|
323
348
|
const xmlChar *value);
|
349
|
+
XML_DEPRECATED
|
324
350
|
XMLPUBFUN int
|
325
351
|
xmlValidateAttributeDecl(xmlValidCtxtPtr ctxt,
|
326
352
|
xmlDocPtr doc,
|
327
353
|
xmlAttributePtr attr);
|
354
|
+
XML_DEPRECATED
|
328
355
|
XMLPUBFUN int
|
329
356
|
xmlValidateAttributeValue(xmlAttributeType type,
|
330
357
|
const xmlChar *value);
|
358
|
+
XML_DEPRECATED
|
331
359
|
XMLPUBFUN int
|
332
360
|
xmlValidateNotationDecl (xmlValidCtxtPtr ctxt,
|
333
361
|
xmlDocPtr doc,
|
@@ -336,6 +364,7 @@ XMLPUBFUN int
|
|
336
364
|
xmlValidateDtd (xmlValidCtxtPtr ctxt,
|
337
365
|
xmlDocPtr doc,
|
338
366
|
xmlDtdPtr dtd);
|
367
|
+
XML_DEPRECATED
|
339
368
|
XMLPUBFUN int
|
340
369
|
xmlValidateDtdFinal (xmlValidCtxtPtr ctxt,
|
341
370
|
xmlDocPtr doc);
|
@@ -346,16 +375,19 @@ XMLPUBFUN int
|
|
346
375
|
xmlValidateElement (xmlValidCtxtPtr ctxt,
|
347
376
|
xmlDocPtr doc,
|
348
377
|
xmlNodePtr elem);
|
378
|
+
XML_DEPRECATED
|
349
379
|
XMLPUBFUN int
|
350
380
|
xmlValidateOneElement (xmlValidCtxtPtr ctxt,
|
351
381
|
xmlDocPtr doc,
|
352
382
|
xmlNodePtr elem);
|
383
|
+
XML_DEPRECATED
|
353
384
|
XMLPUBFUN int
|
354
385
|
xmlValidateOneAttribute (xmlValidCtxtPtr ctxt,
|
355
386
|
xmlDocPtr doc,
|
356
387
|
xmlNodePtr elem,
|
357
388
|
xmlAttrPtr attr,
|
358
389
|
const xmlChar *value);
|
390
|
+
XML_DEPRECATED
|
359
391
|
XMLPUBFUN int
|
360
392
|
xmlValidateOneNamespace (xmlValidCtxtPtr ctxt,
|
361
393
|
xmlDocPtr doc,
|
@@ -363,17 +395,16 @@ XMLPUBFUN int
|
|
363
395
|
const xmlChar *prefix,
|
364
396
|
xmlNsPtr ns,
|
365
397
|
const xmlChar *value);
|
398
|
+
XML_DEPRECATED
|
366
399
|
XMLPUBFUN int
|
367
400
|
xmlValidateDocumentFinal(xmlValidCtxtPtr ctxt,
|
368
401
|
xmlDocPtr doc);
|
369
|
-
|
370
|
-
|
371
|
-
#if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
402
|
+
XML_DEPRECATED
|
372
403
|
XMLPUBFUN int
|
373
404
|
xmlValidateNotationUse (xmlValidCtxtPtr ctxt,
|
374
405
|
xmlDocPtr doc,
|
375
406
|
const xmlChar *notationName);
|
376
|
-
#endif /* LIBXML_VALID_ENABLED
|
407
|
+
#endif /* LIBXML_VALID_ENABLED */
|
377
408
|
|
378
409
|
XMLPUBFUN int
|
379
410
|
xmlIsMixedElement (xmlDocPtr doc,
|
@@ -424,19 +455,23 @@ XMLPUBFUN int
|
|
424
455
|
/*
|
425
456
|
* Validation based on the regexp support
|
426
457
|
*/
|
458
|
+
XML_DEPRECATED
|
427
459
|
XMLPUBFUN int
|
428
460
|
xmlValidBuildContentModel(xmlValidCtxtPtr ctxt,
|
429
461
|
xmlElementPtr elem);
|
430
462
|
|
463
|
+
XML_DEPRECATED
|
431
464
|
XMLPUBFUN int
|
432
465
|
xmlValidatePushElement (xmlValidCtxtPtr ctxt,
|
433
466
|
xmlDocPtr doc,
|
434
467
|
xmlNodePtr elem,
|
435
468
|
const xmlChar *qname);
|
469
|
+
XML_DEPRECATED
|
436
470
|
XMLPUBFUN int
|
437
471
|
xmlValidatePushCData (xmlValidCtxtPtr ctxt,
|
438
472
|
const xmlChar *data,
|
439
473
|
int len);
|
474
|
+
XML_DEPRECATED
|
440
475
|
XMLPUBFUN int
|
441
476
|
xmlValidatePopElement (xmlValidCtxtPtr ctxt,
|
442
477
|
xmlDocPtr doc,
|
lxml/includes/libxml/xinclude.h
CHANGED
@@ -14,7 +14,9 @@
|
|
14
14
|
#define __XML_XINCLUDE_H__
|
15
15
|
|
16
16
|
#include <libxml/xmlversion.h>
|
17
|
+
#include <libxml/xmlerror.h>
|
17
18
|
#include <libxml/tree.h>
|
19
|
+
#include <libxml/parser.h>
|
18
20
|
|
19
21
|
#ifdef LIBXML_XINCLUDE_ENABLED
|
20
22
|
|
@@ -115,6 +117,16 @@ XMLPUBFUN xmlXIncludeCtxtPtr
|
|
115
117
|
XMLPUBFUN int
|
116
118
|
xmlXIncludeSetFlags (xmlXIncludeCtxtPtr ctxt,
|
117
119
|
int flags);
|
120
|
+
XMLPUBFUN void
|
121
|
+
xmlXIncludeSetErrorHandler(xmlXIncludeCtxtPtr ctxt,
|
122
|
+
xmlStructuredErrorFunc handler,
|
123
|
+
void *data);
|
124
|
+
XMLPUBFUN void
|
125
|
+
xmlXIncludeSetResourceLoader(xmlXIncludeCtxtPtr ctxt,
|
126
|
+
xmlResourceLoader loader,
|
127
|
+
void *data);
|
128
|
+
XMLPUBFUN int
|
129
|
+
xmlXIncludeGetLastError (xmlXIncludeCtxtPtr ctxt);
|
118
130
|
XMLPUBFUN void
|
119
131
|
xmlXIncludeFreeContext (xmlXIncludeCtxtPtr ctxt);
|
120
132
|
XMLPUBFUN int
|
lxml/includes/libxml/xlink.h
CHANGED
@@ -160,16 +160,20 @@ struct _xlinkHandler {
|
|
160
160
|
* detection callbacks.
|
161
161
|
*/
|
162
162
|
|
163
|
+
XML_DEPRECATED
|
163
164
|
XMLPUBFUN xlinkNodeDetectFunc
|
164
165
|
xlinkGetDefaultDetect (void);
|
166
|
+
XML_DEPRECATED
|
165
167
|
XMLPUBFUN void
|
166
168
|
xlinkSetDefaultDetect (xlinkNodeDetectFunc func);
|
167
169
|
|
168
170
|
/*
|
169
171
|
* Routines to set/get the default handlers.
|
170
172
|
*/
|
173
|
+
XML_DEPRECATED
|
171
174
|
XMLPUBFUN xlinkHandlerPtr
|
172
175
|
xlinkGetDefaultHandler (void);
|
176
|
+
XML_DEPRECATED
|
173
177
|
XMLPUBFUN void
|
174
178
|
xlinkSetDefaultHandler (xlinkHandlerPtr handler);
|
175
179
|
|
lxml/includes/libxml/xmlIO.h
CHANGED
@@ -10,12 +10,14 @@
|
|
10
10
|
#ifndef __XML_IO_H__
|
11
11
|
#define __XML_IO_H__
|
12
12
|
|
13
|
+
/** DOC_DISABLE */
|
13
14
|
#include <stdio.h>
|
14
15
|
#include <libxml/xmlversion.h>
|
15
16
|
#include <libxml/encoding.h>
|
16
17
|
#define XML_TREE_INTERNALS
|
17
18
|
#include <libxml/tree.h>
|
18
19
|
#undef XML_TREE_INTERNALS
|
20
|
+
/** DOC_ENABLE */
|
19
21
|
|
20
22
|
#ifdef __cplusplus
|
21
23
|
extern "C" {
|
@@ -174,21 +176,18 @@ struct _xmlOutputBuffer {
|
|
174
176
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
175
177
|
|
176
178
|
/** DOC_DISABLE */
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
#undef XML_OP
|
186
|
-
|
187
|
-
#if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
|
179
|
+
XML_DEPRECATED
|
180
|
+
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc *
|
181
|
+
__xmlParserInputBufferCreateFilenameValue(void);
|
182
|
+
XML_DEPRECATED
|
183
|
+
XMLPUBFUN xmlOutputBufferCreateFilenameFunc *
|
184
|
+
__xmlOutputBufferCreateFilenameValue(void);
|
185
|
+
|
186
|
+
#ifndef XML_GLOBALS_NO_REDEFINITION
|
188
187
|
#define xmlParserInputBufferCreateFilenameValue \
|
189
|
-
|
188
|
+
(*__xmlParserInputBufferCreateFilenameValue())
|
190
189
|
#define xmlOutputBufferCreateFilenameValue \
|
191
|
-
|
190
|
+
(*__xmlOutputBufferCreateFilenameValue())
|
192
191
|
#endif
|
193
192
|
/** DOC_ENABLE */
|
194
193
|
|
@@ -209,6 +208,7 @@ XMLPUBFUN xmlParserInputBufferPtr
|
|
209
208
|
XMLPUBFUN xmlParserInputBufferPtr
|
210
209
|
xmlParserInputBufferCreateFilename (const char *URI,
|
211
210
|
xmlCharEncoding enc);
|
211
|
+
XML_DEPRECATED
|
212
212
|
XMLPUBFUN xmlParserInputBufferPtr
|
213
213
|
xmlParserInputBufferCreateFile (FILE *file,
|
214
214
|
xmlCharEncoding enc);
|
@@ -226,12 +226,15 @@ XMLPUBFUN xmlParserInputBufferPtr
|
|
226
226
|
xmlInputCloseCallback ioclose,
|
227
227
|
void *ioctx,
|
228
228
|
xmlCharEncoding enc);
|
229
|
+
XML_DEPRECATED
|
229
230
|
XMLPUBFUN int
|
230
231
|
xmlParserInputBufferRead (xmlParserInputBufferPtr in,
|
231
232
|
int len);
|
233
|
+
XML_DEPRECATED
|
232
234
|
XMLPUBFUN int
|
233
235
|
xmlParserInputBufferGrow (xmlParserInputBufferPtr in,
|
234
236
|
int len);
|
237
|
+
XML_DEPRECATED
|
235
238
|
XMLPUBFUN int
|
236
239
|
xmlParserInputBufferPush (xmlParserInputBufferPtr in,
|
237
240
|
int len,
|
@@ -247,7 +250,7 @@ XMLPUBFUN int
|
|
247
250
|
xmlInputReadCallback readFunc,
|
248
251
|
xmlInputCloseCallback closeFunc);
|
249
252
|
|
250
|
-
xmlParserInputBufferPtr
|
253
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
251
254
|
__xmlParserInputBufferCreateFilename(const char *URI,
|
252
255
|
xmlCharEncoding enc);
|
253
256
|
|
@@ -316,19 +319,21 @@ XMLPUBFUN int
|
|
316
319
|
xmlOutputWriteCallback writeFunc,
|
317
320
|
xmlOutputCloseCallback closeFunc);
|
318
321
|
|
319
|
-
xmlOutputBufferPtr
|
322
|
+
XMLPUBFUN xmlOutputBufferPtr
|
320
323
|
__xmlOutputBufferCreateFilename(const char *URI,
|
321
324
|
xmlCharEncodingHandlerPtr encoder,
|
322
325
|
int compression);
|
323
326
|
|
324
327
|
#ifdef LIBXML_HTTP_ENABLED
|
325
328
|
/* This function only exists if HTTP support built into the library */
|
329
|
+
XML_DEPRECATED
|
326
330
|
XMLPUBFUN void
|
327
331
|
xmlRegisterHTTPPostCallbacks (void );
|
328
332
|
#endif /* LIBXML_HTTP_ENABLED */
|
329
333
|
|
330
334
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
331
335
|
|
336
|
+
XML_DEPRECATED
|
332
337
|
XMLPUBFUN xmlParserInputPtr
|
333
338
|
xmlCheckHTTPInput (xmlParserCtxtPtr ctxt,
|
334
339
|
xmlParserInputPtr ret);
|
@@ -341,26 +346,28 @@ XMLPUBFUN xmlParserInputPtr
|
|
341
346
|
const char *ID,
|
342
347
|
xmlParserCtxtPtr ctxt);
|
343
348
|
|
344
|
-
|
345
|
-
* xmlNormalizeWindowsPath is obsolete, don't use it.
|
346
|
-
* Check xmlCanonicPath in uri.h for a better alternative.
|
347
|
-
*/
|
349
|
+
XML_DEPRECATED
|
348
350
|
XMLPUBFUN xmlChar *
|
349
351
|
xmlNormalizeWindowsPath (const xmlChar *path);
|
350
352
|
|
353
|
+
XML_DEPRECATED
|
351
354
|
XMLPUBFUN int
|
352
355
|
xmlCheckFilename (const char *path);
|
353
356
|
/**
|
354
357
|
* Default 'file://' protocol callbacks
|
355
358
|
*/
|
359
|
+
XML_DEPRECATED
|
356
360
|
XMLPUBFUN int
|
357
361
|
xmlFileMatch (const char *filename);
|
362
|
+
XML_DEPRECATED
|
358
363
|
XMLPUBFUN void *
|
359
364
|
xmlFileOpen (const char *filename);
|
365
|
+
XML_DEPRECATED
|
360
366
|
XMLPUBFUN int
|
361
367
|
xmlFileRead (void * context,
|
362
368
|
char * buffer,
|
363
369
|
int len);
|
370
|
+
XML_DEPRECATED
|
364
371
|
XMLPUBFUN int
|
365
372
|
xmlFileClose (void * context);
|
366
373
|
|
@@ -368,48 +375,39 @@ XMLPUBFUN int
|
|
368
375
|
* Default 'http://' protocol callbacks
|
369
376
|
*/
|
370
377
|
#ifdef LIBXML_HTTP_ENABLED
|
378
|
+
XML_DEPRECATED
|
371
379
|
XMLPUBFUN int
|
372
380
|
xmlIOHTTPMatch (const char *filename);
|
381
|
+
XML_DEPRECATED
|
373
382
|
XMLPUBFUN void *
|
374
383
|
xmlIOHTTPOpen (const char *filename);
|
375
384
|
#ifdef LIBXML_OUTPUT_ENABLED
|
385
|
+
XML_DEPRECATED
|
376
386
|
XMLPUBFUN void *
|
377
387
|
xmlIOHTTPOpenW (const char * post_uri,
|
378
388
|
int compression );
|
379
389
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
390
|
+
XML_DEPRECATED
|
380
391
|
XMLPUBFUN int
|
381
392
|
xmlIOHTTPRead (void * context,
|
382
393
|
char * buffer,
|
383
394
|
int len);
|
395
|
+
XML_DEPRECATED
|
384
396
|
XMLPUBFUN int
|
385
397
|
xmlIOHTTPClose (void * context);
|
386
398
|
#endif /* LIBXML_HTTP_ENABLED */
|
387
399
|
|
388
|
-
/**
|
389
|
-
* Default 'ftp://' protocol callbacks
|
390
|
-
*/
|
391
|
-
#if defined(LIBXML_FTP_ENABLED)
|
392
|
-
XMLPUBFUN int
|
393
|
-
xmlIOFTPMatch (const char *filename);
|
394
|
-
XMLPUBFUN void *
|
395
|
-
xmlIOFTPOpen (const char *filename);
|
396
|
-
XMLPUBFUN int
|
397
|
-
xmlIOFTPRead (void * context,
|
398
|
-
char * buffer,
|
399
|
-
int len);
|
400
|
-
XMLPUBFUN int
|
401
|
-
xmlIOFTPClose (void * context);
|
402
|
-
#endif /* defined(LIBXML_FTP_ENABLED) */
|
403
|
-
|
404
400
|
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
|
405
401
|
xmlParserInputBufferCreateFilenameDefault(
|
406
402
|
xmlParserInputBufferCreateFilenameFunc func);
|
407
403
|
XMLPUBFUN xmlOutputBufferCreateFilenameFunc
|
408
404
|
xmlOutputBufferCreateFilenameDefault(
|
409
405
|
xmlOutputBufferCreateFilenameFunc func);
|
406
|
+
XML_DEPRECATED
|
410
407
|
XMLPUBFUN xmlOutputBufferCreateFilenameFunc
|
411
408
|
xmlThrDefOutputBufferCreateFilenameDefault(
|
412
409
|
xmlOutputBufferCreateFilenameFunc func);
|
410
|
+
XML_DEPRECATED
|
413
411
|
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
|
414
412
|
xmlThrDefParserInputBufferCreateFilenameDefault(
|
415
413
|
xmlParserInputBufferCreateFilenameFunc func);
|
@@ -13,7 +13,6 @@
|
|
13
13
|
#include <libxml/xmlversion.h>
|
14
14
|
|
15
15
|
#ifdef LIBXML_REGEXP_ENABLED
|
16
|
-
#ifdef LIBXML_AUTOMATA_ENABLED
|
17
16
|
|
18
17
|
#include <libxml/xmlstring.h>
|
19
18
|
|
@@ -40,24 +39,31 @@ typedef xmlAutomataState *xmlAutomataStatePtr;
|
|
40
39
|
/*
|
41
40
|
* Building API
|
42
41
|
*/
|
42
|
+
XML_DEPRECATED
|
43
43
|
XMLPUBFUN xmlAutomataPtr
|
44
44
|
xmlNewAutomata (void);
|
45
|
+
XML_DEPRECATED
|
45
46
|
XMLPUBFUN void
|
46
47
|
xmlFreeAutomata (xmlAutomataPtr am);
|
47
48
|
|
49
|
+
XML_DEPRECATED
|
48
50
|
XMLPUBFUN xmlAutomataStatePtr
|
49
51
|
xmlAutomataGetInitState (xmlAutomataPtr am);
|
52
|
+
XML_DEPRECATED
|
50
53
|
XMLPUBFUN int
|
51
54
|
xmlAutomataSetFinalState (xmlAutomataPtr am,
|
52
55
|
xmlAutomataStatePtr state);
|
56
|
+
XML_DEPRECATED
|
53
57
|
XMLPUBFUN xmlAutomataStatePtr
|
54
58
|
xmlAutomataNewState (xmlAutomataPtr am);
|
59
|
+
XML_DEPRECATED
|
55
60
|
XMLPUBFUN xmlAutomataStatePtr
|
56
61
|
xmlAutomataNewTransition (xmlAutomataPtr am,
|
57
62
|
xmlAutomataStatePtr from,
|
58
63
|
xmlAutomataStatePtr to,
|
59
64
|
const xmlChar *token,
|
60
65
|
void *data);
|
66
|
+
XML_DEPRECATED
|
61
67
|
XMLPUBFUN xmlAutomataStatePtr
|
62
68
|
xmlAutomataNewTransition2 (xmlAutomataPtr am,
|
63
69
|
xmlAutomataStatePtr from,
|
@@ -65,6 +71,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
65
71
|
const xmlChar *token,
|
66
72
|
const xmlChar *token2,
|
67
73
|
void *data);
|
74
|
+
XML_DEPRECATED
|
68
75
|
XMLPUBFUN xmlAutomataStatePtr
|
69
76
|
xmlAutomataNewNegTrans (xmlAutomataPtr am,
|
70
77
|
xmlAutomataStatePtr from,
|
@@ -73,6 +80,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
73
80
|
const xmlChar *token2,
|
74
81
|
void *data);
|
75
82
|
|
83
|
+
XML_DEPRECATED
|
76
84
|
XMLPUBFUN xmlAutomataStatePtr
|
77
85
|
xmlAutomataNewCountTrans (xmlAutomataPtr am,
|
78
86
|
xmlAutomataStatePtr from,
|
@@ -81,6 +89,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
81
89
|
int min,
|
82
90
|
int max,
|
83
91
|
void *data);
|
92
|
+
XML_DEPRECATED
|
84
93
|
XMLPUBFUN xmlAutomataStatePtr
|
85
94
|
xmlAutomataNewCountTrans2 (xmlAutomataPtr am,
|
86
95
|
xmlAutomataStatePtr from,
|
@@ -90,6 +99,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
90
99
|
int min,
|
91
100
|
int max,
|
92
101
|
void *data);
|
102
|
+
XML_DEPRECATED
|
93
103
|
XMLPUBFUN xmlAutomataStatePtr
|
94
104
|
xmlAutomataNewOnceTrans (xmlAutomataPtr am,
|
95
105
|
xmlAutomataStatePtr from,
|
@@ -98,6 +108,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
98
108
|
int min,
|
99
109
|
int max,
|
100
110
|
void *data);
|
111
|
+
XML_DEPRECATED
|
101
112
|
XMLPUBFUN xmlAutomataStatePtr
|
102
113
|
xmlAutomataNewOnceTrans2 (xmlAutomataPtr am,
|
103
114
|
xmlAutomataStatePtr from,
|
@@ -107,32 +118,39 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
107
118
|
int min,
|
108
119
|
int max,
|
109
120
|
void *data);
|
121
|
+
XML_DEPRECATED
|
110
122
|
XMLPUBFUN xmlAutomataStatePtr
|
111
123
|
xmlAutomataNewAllTrans (xmlAutomataPtr am,
|
112
124
|
xmlAutomataStatePtr from,
|
113
125
|
xmlAutomataStatePtr to,
|
114
126
|
int lax);
|
127
|
+
XML_DEPRECATED
|
115
128
|
XMLPUBFUN xmlAutomataStatePtr
|
116
129
|
xmlAutomataNewEpsilon (xmlAutomataPtr am,
|
117
130
|
xmlAutomataStatePtr from,
|
118
131
|
xmlAutomataStatePtr to);
|
132
|
+
XML_DEPRECATED
|
119
133
|
XMLPUBFUN xmlAutomataStatePtr
|
120
134
|
xmlAutomataNewCountedTrans (xmlAutomataPtr am,
|
121
135
|
xmlAutomataStatePtr from,
|
122
136
|
xmlAutomataStatePtr to,
|
123
137
|
int counter);
|
138
|
+
XML_DEPRECATED
|
124
139
|
XMLPUBFUN xmlAutomataStatePtr
|
125
140
|
xmlAutomataNewCounterTrans (xmlAutomataPtr am,
|
126
141
|
xmlAutomataStatePtr from,
|
127
142
|
xmlAutomataStatePtr to,
|
128
143
|
int counter);
|
144
|
+
XML_DEPRECATED
|
129
145
|
XMLPUBFUN int
|
130
146
|
xmlAutomataNewCounter (xmlAutomataPtr am,
|
131
147
|
int min,
|
132
148
|
int max);
|
133
149
|
|
150
|
+
XML_DEPRECATED
|
134
151
|
XMLPUBFUN struct _xmlRegexp *
|
135
152
|
xmlAutomataCompile (xmlAutomataPtr am);
|
153
|
+
XML_DEPRECATED
|
136
154
|
XMLPUBFUN int
|
137
155
|
xmlAutomataIsDeterminist (xmlAutomataPtr am);
|
138
156
|
|
@@ -140,7 +158,6 @@ XMLPUBFUN int
|
|
140
158
|
}
|
141
159
|
#endif
|
142
160
|
|
143
|
-
#endif /* LIBXML_AUTOMATA_ENABLED */
|
144
161
|
#endif /* LIBXML_REGEXP_ENABLED */
|
145
162
|
|
146
163
|
#endif /* __XML_AUTOMATA_H__ */
|