lxml 5.3.2__cp312-cp312-macosx_10_9_universal2.whl → 5.4.0__cp312-cp312-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-312-darwin.so +0 -0
- lxml/builder.cpython-312-darwin.so +0 -0
- lxml/etree.cpython-312-darwin.so +0 -0
- lxml/html/diff.cpython-312-darwin.so +0 -0
- lxml/includes/libexslt/exsltconfig.h +3 -3
- lxml/includes/libxml/HTMLparser.h +12 -19
- lxml/includes/libxml/c14n.h +1 -12
- lxml/includes/libxml/debugXML.h +1 -1
- lxml/includes/libxml/encoding.h +9 -0
- lxml/includes/libxml/entities.h +12 -1
- lxml/includes/libxml/hash.h +19 -0
- lxml/includes/libxml/list.h +2 -2
- lxml/includes/libxml/nanohttp.h +17 -0
- lxml/includes/libxml/parser.h +60 -54
- lxml/includes/libxml/parserInternals.h +9 -1
- lxml/includes/libxml/tree.h +32 -12
- lxml/includes/libxml/uri.h +11 -0
- lxml/includes/libxml/valid.h +29 -2
- lxml/includes/libxml/xinclude.h +7 -0
- lxml/includes/libxml/xmlIO.h +21 -4
- lxml/includes/libxml/xmlerror.h +14 -0
- lxml/includes/libxml/xmlexports.h +111 -15
- lxml/includes/libxml/xmlmemory.h +8 -45
- lxml/includes/libxml/xmlreader.h +2 -0
- lxml/includes/libxml/xmlsave.h +5 -0
- lxml/includes/libxml/xmlunicode.h +165 -1
- lxml/includes/libxml/xmlversion.h +7 -171
- lxml/includes/libxml/xmlwriter.h +1 -0
- lxml/includes/libxml/xpath.h +4 -0
- lxml/includes/libxslt/xsltconfig.h +6 -6
- lxml/includes/lxml-version.h +1 -1
- lxml/objectify.cpython-312-darwin.so +0 -0
- lxml/sax.cpython-312-darwin.so +0 -0
- {lxml-5.3.2.dist-info → lxml-5.4.0.dist-info}/METADATA +7 -11
- {lxml-5.3.2.dist-info → lxml-5.4.0.dist-info}/RECORD +40 -40
- {lxml-5.3.2.dist-info → lxml-5.4.0.dist-info}/WHEEL +1 -1
- {lxml-5.3.2.dist-info → lxml-5.4.0.dist-info}/licenses/LICENSE.txt +0 -0
- {lxml-5.3.2.dist-info → lxml-5.4.0.dist-info}/licenses/LICENSES.txt +0 -0
- {lxml-5.3.2.dist-info → lxml-5.4.0.dist-info}/top_level.txt +0 -0
lxml/includes/libxml/tree.h
CHANGED
@@ -173,13 +173,13 @@ typedef enum {
|
|
173
173
|
XML_TEXT_NODE= 3,
|
174
174
|
XML_CDATA_SECTION_NODE= 4,
|
175
175
|
XML_ENTITY_REF_NODE= 5,
|
176
|
-
XML_ENTITY_NODE= 6,
|
176
|
+
XML_ENTITY_NODE= 6, /* unused */
|
177
177
|
XML_PI_NODE= 7,
|
178
178
|
XML_COMMENT_NODE= 8,
|
179
179
|
XML_DOCUMENT_NODE= 9,
|
180
|
-
XML_DOCUMENT_TYPE_NODE= 10,
|
180
|
+
XML_DOCUMENT_TYPE_NODE= 10, /* unused */
|
181
181
|
XML_DOCUMENT_FRAG_NODE= 11,
|
182
|
-
XML_NOTATION_NODE= 12,
|
182
|
+
XML_NOTATION_NODE= 12, /* unused */
|
183
183
|
XML_HTML_DOCUMENT_NODE= 13,
|
184
184
|
XML_DTD_NODE= 14,
|
185
185
|
XML_ELEMENT_DECL= 15,
|
@@ -449,6 +449,7 @@ struct _xmlAttr {
|
|
449
449
|
xmlNs *ns; /* pointer to the associated namespace */
|
450
450
|
xmlAttributeType atype; /* the attribute type if validating */
|
451
451
|
void *psvi; /* for type/PSVI information */
|
452
|
+
struct _xmlID *id; /* the ID struct */
|
452
453
|
};
|
453
454
|
|
454
455
|
/**
|
@@ -1011,10 +1012,10 @@ XMLPUBFUN void
|
|
1011
1012
|
xmlFreeNodeList (xmlNodePtr cur);
|
1012
1013
|
XMLPUBFUN void
|
1013
1014
|
xmlFreeNode (xmlNodePtr cur);
|
1014
|
-
XMLPUBFUN
|
1015
|
+
XMLPUBFUN int
|
1015
1016
|
xmlSetTreeDoc (xmlNodePtr tree,
|
1016
1017
|
xmlDocPtr doc);
|
1017
|
-
XMLPUBFUN
|
1018
|
+
XMLPUBFUN int
|
1018
1019
|
xmlSetListDoc (xmlNodePtr list,
|
1019
1020
|
xmlDocPtr doc);
|
1020
1021
|
/*
|
@@ -1030,6 +1031,10 @@ XMLPUBFUN xmlNsPtr
|
|
1030
1031
|
const xmlChar *href);
|
1031
1032
|
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || \
|
1032
1033
|
defined(LIBXML_SCHEMAS_ENABLED)
|
1034
|
+
XMLPUBFUN int
|
1035
|
+
xmlGetNsListSafe (const xmlDoc *doc,
|
1036
|
+
const xmlNode *node,
|
1037
|
+
xmlNsPtr **out);
|
1033
1038
|
XMLPUBFUN xmlNsPtr *
|
1034
1039
|
xmlGetNsList (const xmlDoc *doc,
|
1035
1040
|
const xmlNode *node);
|
@@ -1059,6 +1064,11 @@ XMLPUBFUN xmlAttrPtr
|
|
1059
1064
|
const xmlChar *value);
|
1060
1065
|
#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || \
|
1061
1066
|
defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) */
|
1067
|
+
XMLPUBFUN int
|
1068
|
+
xmlNodeGetAttrValue (const xmlNode *node,
|
1069
|
+
const xmlChar *name,
|
1070
|
+
const xmlChar *nsUri,
|
1071
|
+
xmlChar **out);
|
1062
1072
|
XMLPUBFUN xmlChar *
|
1063
1073
|
xmlGetNoNsProp (const xmlNode *node,
|
1064
1074
|
const xmlChar *name);
|
@@ -1093,19 +1103,19 @@ XMLPUBFUN xmlChar *
|
|
1093
1103
|
const xmlNode *list,
|
1094
1104
|
int inLine);
|
1095
1105
|
#endif /* LIBXML_TREE_ENABLED */
|
1096
|
-
XMLPUBFUN
|
1106
|
+
XMLPUBFUN int
|
1097
1107
|
xmlNodeSetContent (xmlNodePtr cur,
|
1098
1108
|
const xmlChar *content);
|
1099
1109
|
#ifdef LIBXML_TREE_ENABLED
|
1100
|
-
XMLPUBFUN
|
1110
|
+
XMLPUBFUN int
|
1101
1111
|
xmlNodeSetContentLen (xmlNodePtr cur,
|
1102
1112
|
const xmlChar *content,
|
1103
1113
|
int len);
|
1104
1114
|
#endif /* LIBXML_TREE_ENABLED */
|
1105
|
-
XMLPUBFUN
|
1115
|
+
XMLPUBFUN int
|
1106
1116
|
xmlNodeAddContent (xmlNodePtr cur,
|
1107
1117
|
const xmlChar *content);
|
1108
|
-
XMLPUBFUN
|
1118
|
+
XMLPUBFUN int
|
1109
1119
|
xmlNodeAddContentLen (xmlNodePtr cur,
|
1110
1120
|
const xmlChar *content,
|
1111
1121
|
int len);
|
@@ -1124,18 +1134,22 @@ XMLPUBFUN xmlChar *
|
|
1124
1134
|
XMLPUBFUN int
|
1125
1135
|
xmlNodeGetSpacePreserve (const xmlNode *cur);
|
1126
1136
|
#ifdef LIBXML_TREE_ENABLED
|
1127
|
-
XMLPUBFUN
|
1137
|
+
XMLPUBFUN int
|
1128
1138
|
xmlNodeSetLang (xmlNodePtr cur,
|
1129
1139
|
const xmlChar *lang);
|
1130
|
-
XMLPUBFUN
|
1140
|
+
XMLPUBFUN int
|
1131
1141
|
xmlNodeSetSpacePreserve (xmlNodePtr cur,
|
1132
1142
|
int val);
|
1133
1143
|
#endif /* LIBXML_TREE_ENABLED */
|
1144
|
+
XMLPUBFUN int
|
1145
|
+
xmlNodeGetBaseSafe (const xmlDoc *doc,
|
1146
|
+
const xmlNode *cur,
|
1147
|
+
xmlChar **baseOut);
|
1134
1148
|
XMLPUBFUN xmlChar *
|
1135
1149
|
xmlNodeGetBase (const xmlDoc *doc,
|
1136
1150
|
const xmlNode *cur);
|
1137
1151
|
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED)
|
1138
|
-
XMLPUBFUN
|
1152
|
+
XMLPUBFUN int
|
1139
1153
|
xmlNodeSetBase (xmlNodePtr cur,
|
1140
1154
|
const xmlChar *uri);
|
1141
1155
|
#endif
|
@@ -1283,8 +1297,10 @@ XMLPUBFUN int
|
|
1283
1297
|
XMLPUBFUN void
|
1284
1298
|
xmlSetDocCompressMode (xmlDocPtr doc,
|
1285
1299
|
int mode);
|
1300
|
+
XML_DEPRECATED
|
1286
1301
|
XMLPUBFUN int
|
1287
1302
|
xmlGetCompressMode (void);
|
1303
|
+
XML_DEPRECATED
|
1288
1304
|
XMLPUBFUN void
|
1289
1305
|
xmlSetCompressMode (int mode);
|
1290
1306
|
|
@@ -1338,12 +1354,16 @@ XMLPUBFUN xmlNodePtr
|
|
1338
1354
|
xmlPreviousElementSibling (xmlNodePtr node);
|
1339
1355
|
#endif
|
1340
1356
|
|
1357
|
+
XML_DEPRECATED
|
1341
1358
|
XMLPUBFUN xmlRegisterNodeFunc
|
1342
1359
|
xmlRegisterNodeDefault (xmlRegisterNodeFunc func);
|
1360
|
+
XML_DEPRECATED
|
1343
1361
|
XMLPUBFUN xmlDeregisterNodeFunc
|
1344
1362
|
xmlDeregisterNodeDefault (xmlDeregisterNodeFunc func);
|
1363
|
+
XML_DEPRECATED
|
1345
1364
|
XMLPUBFUN xmlRegisterNodeFunc
|
1346
1365
|
xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func);
|
1366
|
+
XML_DEPRECATED
|
1347
1367
|
XMLPUBFUN xmlDeregisterNodeFunc
|
1348
1368
|
xmlThrDefDeregisterNodeDefault(xmlDeregisterNodeFunc func);
|
1349
1369
|
|
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" {
|
@@ -150,9 +152,11 @@ XMLPUBFUN xmlNotationTablePtr
|
|
150
152
|
XMLPUBFUN void
|
151
153
|
xmlFreeNotationTable (xmlNotationTablePtr table);
|
152
154
|
#ifdef LIBXML_OUTPUT_ENABLED
|
155
|
+
XML_DEPRECATED
|
153
156
|
XMLPUBFUN void
|
154
157
|
xmlDumpNotationDecl (xmlBufferPtr buf,
|
155
158
|
xmlNotationPtr nota);
|
159
|
+
/* XML_DEPRECATED, still used in lxml */
|
156
160
|
XMLPUBFUN void
|
157
161
|
xmlDumpNotationTable (xmlBufferPtr buf,
|
158
162
|
xmlNotationTablePtr table);
|
@@ -184,13 +188,12 @@ XMLPUBFUN void
|
|
184
188
|
xmlElementContentPtr content,
|
185
189
|
int englob);
|
186
190
|
#ifdef LIBXML_OUTPUT_ENABLED
|
187
|
-
|
191
|
+
XML_DEPRECATED
|
188
192
|
XMLPUBFUN void
|
189
193
|
xmlSprintfElementContent(char *buf,
|
190
194
|
xmlElementContentPtr content,
|
191
195
|
int englob);
|
192
196
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
193
|
-
/* DEPRECATED */
|
194
197
|
|
195
198
|
/* Element */
|
196
199
|
XMLPUBFUN xmlElementPtr
|
@@ -206,9 +209,11 @@ XMLPUBFUN xmlElementTablePtr
|
|
206
209
|
XMLPUBFUN void
|
207
210
|
xmlFreeElementTable (xmlElementTablePtr table);
|
208
211
|
#ifdef LIBXML_OUTPUT_ENABLED
|
212
|
+
XML_DEPRECATED
|
209
213
|
XMLPUBFUN void
|
210
214
|
xmlDumpElementTable (xmlBufferPtr buf,
|
211
215
|
xmlElementTablePtr table);
|
216
|
+
XML_DEPRECATED
|
212
217
|
XMLPUBFUN void
|
213
218
|
xmlDumpElementDecl (xmlBufferPtr buf,
|
214
219
|
xmlElementPtr elem);
|
@@ -242,15 +247,20 @@ XMLPUBFUN xmlAttributeTablePtr
|
|
242
247
|
XMLPUBFUN void
|
243
248
|
xmlFreeAttributeTable (xmlAttributeTablePtr table);
|
244
249
|
#ifdef LIBXML_OUTPUT_ENABLED
|
250
|
+
XML_DEPRECATED
|
245
251
|
XMLPUBFUN void
|
246
252
|
xmlDumpAttributeTable (xmlBufferPtr buf,
|
247
253
|
xmlAttributeTablePtr table);
|
254
|
+
XML_DEPRECATED
|
248
255
|
XMLPUBFUN void
|
249
256
|
xmlDumpAttributeDecl (xmlBufferPtr buf,
|
250
257
|
xmlAttributePtr attr);
|
251
258
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
252
259
|
|
253
260
|
/* IDs */
|
261
|
+
XMLPUBFUN int
|
262
|
+
xmlAddIDSafe (xmlAttrPtr attr,
|
263
|
+
const xmlChar *value);
|
254
264
|
XMLPUBFUN xmlIDPtr
|
255
265
|
xmlAddID (xmlValidCtxtPtr ctxt,
|
256
266
|
xmlDocPtr doc,
|
@@ -303,31 +313,38 @@ XMLPUBFUN xmlValidCtxtPtr
|
|
303
313
|
XMLPUBFUN void
|
304
314
|
xmlFreeValidCtxt(xmlValidCtxtPtr);
|
305
315
|
|
316
|
+
XML_DEPRECATED
|
306
317
|
XMLPUBFUN int
|
307
318
|
xmlValidateRoot (xmlValidCtxtPtr ctxt,
|
308
319
|
xmlDocPtr doc);
|
320
|
+
XML_DEPRECATED
|
309
321
|
XMLPUBFUN int
|
310
322
|
xmlValidateElementDecl (xmlValidCtxtPtr ctxt,
|
311
323
|
xmlDocPtr doc,
|
312
324
|
xmlElementPtr elem);
|
325
|
+
XML_DEPRECATED
|
313
326
|
XMLPUBFUN xmlChar *
|
314
327
|
xmlValidNormalizeAttributeValue(xmlDocPtr doc,
|
315
328
|
xmlNodePtr elem,
|
316
329
|
const xmlChar *name,
|
317
330
|
const xmlChar *value);
|
331
|
+
XML_DEPRECATED
|
318
332
|
XMLPUBFUN xmlChar *
|
319
333
|
xmlValidCtxtNormalizeAttributeValue(xmlValidCtxtPtr ctxt,
|
320
334
|
xmlDocPtr doc,
|
321
335
|
xmlNodePtr elem,
|
322
336
|
const xmlChar *name,
|
323
337
|
const xmlChar *value);
|
338
|
+
XML_DEPRECATED
|
324
339
|
XMLPUBFUN int
|
325
340
|
xmlValidateAttributeDecl(xmlValidCtxtPtr ctxt,
|
326
341
|
xmlDocPtr doc,
|
327
342
|
xmlAttributePtr attr);
|
343
|
+
XML_DEPRECATED
|
328
344
|
XMLPUBFUN int
|
329
345
|
xmlValidateAttributeValue(xmlAttributeType type,
|
330
346
|
const xmlChar *value);
|
347
|
+
XML_DEPRECATED
|
331
348
|
XMLPUBFUN int
|
332
349
|
xmlValidateNotationDecl (xmlValidCtxtPtr ctxt,
|
333
350
|
xmlDocPtr doc,
|
@@ -336,6 +353,7 @@ XMLPUBFUN int
|
|
336
353
|
xmlValidateDtd (xmlValidCtxtPtr ctxt,
|
337
354
|
xmlDocPtr doc,
|
338
355
|
xmlDtdPtr dtd);
|
356
|
+
XML_DEPRECATED
|
339
357
|
XMLPUBFUN int
|
340
358
|
xmlValidateDtdFinal (xmlValidCtxtPtr ctxt,
|
341
359
|
xmlDocPtr doc);
|
@@ -346,16 +364,19 @@ XMLPUBFUN int
|
|
346
364
|
xmlValidateElement (xmlValidCtxtPtr ctxt,
|
347
365
|
xmlDocPtr doc,
|
348
366
|
xmlNodePtr elem);
|
367
|
+
XML_DEPRECATED
|
349
368
|
XMLPUBFUN int
|
350
369
|
xmlValidateOneElement (xmlValidCtxtPtr ctxt,
|
351
370
|
xmlDocPtr doc,
|
352
371
|
xmlNodePtr elem);
|
372
|
+
XML_DEPRECATED
|
353
373
|
XMLPUBFUN int
|
354
374
|
xmlValidateOneAttribute (xmlValidCtxtPtr ctxt,
|
355
375
|
xmlDocPtr doc,
|
356
376
|
xmlNodePtr elem,
|
357
377
|
xmlAttrPtr attr,
|
358
378
|
const xmlChar *value);
|
379
|
+
XML_DEPRECATED
|
359
380
|
XMLPUBFUN int
|
360
381
|
xmlValidateOneNamespace (xmlValidCtxtPtr ctxt,
|
361
382
|
xmlDocPtr doc,
|
@@ -363,12 +384,14 @@ XMLPUBFUN int
|
|
363
384
|
const xmlChar *prefix,
|
364
385
|
xmlNsPtr ns,
|
365
386
|
const xmlChar *value);
|
387
|
+
XML_DEPRECATED
|
366
388
|
XMLPUBFUN int
|
367
389
|
xmlValidateDocumentFinal(xmlValidCtxtPtr ctxt,
|
368
390
|
xmlDocPtr doc);
|
369
391
|
#endif /* LIBXML_VALID_ENABLED */
|
370
392
|
|
371
393
|
#if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
394
|
+
XML_DEPRECATED
|
372
395
|
XMLPUBFUN int
|
373
396
|
xmlValidateNotationUse (xmlValidCtxtPtr ctxt,
|
374
397
|
xmlDocPtr doc,
|
@@ -424,19 +447,23 @@ XMLPUBFUN int
|
|
424
447
|
/*
|
425
448
|
* Validation based on the regexp support
|
426
449
|
*/
|
450
|
+
XML_DEPRECATED
|
427
451
|
XMLPUBFUN int
|
428
452
|
xmlValidBuildContentModel(xmlValidCtxtPtr ctxt,
|
429
453
|
xmlElementPtr elem);
|
430
454
|
|
455
|
+
XML_DEPRECATED
|
431
456
|
XMLPUBFUN int
|
432
457
|
xmlValidatePushElement (xmlValidCtxtPtr ctxt,
|
433
458
|
xmlDocPtr doc,
|
434
459
|
xmlNodePtr elem,
|
435
460
|
const xmlChar *qname);
|
461
|
+
XML_DEPRECATED
|
436
462
|
XMLPUBFUN int
|
437
463
|
xmlValidatePushCData (xmlValidCtxtPtr ctxt,
|
438
464
|
const xmlChar *data,
|
439
465
|
int len);
|
466
|
+
XML_DEPRECATED
|
440
467
|
XMLPUBFUN int
|
441
468
|
xmlValidatePopElement (xmlValidCtxtPtr ctxt,
|
442
469
|
xmlDocPtr doc,
|
lxml/includes/libxml/xinclude.h
CHANGED
@@ -14,6 +14,7 @@
|
|
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>
|
18
19
|
|
19
20
|
#ifdef LIBXML_XINCLUDE_ENABLED
|
@@ -115,6 +116,12 @@ XMLPUBFUN xmlXIncludeCtxtPtr
|
|
115
116
|
XMLPUBFUN int
|
116
117
|
xmlXIncludeSetFlags (xmlXIncludeCtxtPtr ctxt,
|
117
118
|
int flags);
|
119
|
+
XMLPUBFUN void
|
120
|
+
xmlXIncludeSetErrorHandler(xmlXIncludeCtxtPtr ctxt,
|
121
|
+
xmlStructuredErrorFunc handler,
|
122
|
+
void *data);
|
123
|
+
XMLPUBFUN int
|
124
|
+
xmlXIncludeGetLastError (xmlXIncludeCtxtPtr ctxt);
|
118
125
|
XMLPUBFUN void
|
119
126
|
xmlXIncludeFreeContext (xmlXIncludeCtxtPtr ctxt);
|
120
127
|
XMLPUBFUN int
|
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" {
|
@@ -323,12 +325,14 @@ xmlOutputBufferPtr
|
|
323
325
|
|
324
326
|
#ifdef LIBXML_HTTP_ENABLED
|
325
327
|
/* This function only exists if HTTP support built into the library */
|
328
|
+
XML_DEPRECATED
|
326
329
|
XMLPUBFUN void
|
327
330
|
xmlRegisterHTTPPostCallbacks (void );
|
328
331
|
#endif /* LIBXML_HTTP_ENABLED */
|
329
332
|
|
330
333
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
331
334
|
|
335
|
+
XML_DEPRECATED
|
332
336
|
XMLPUBFUN xmlParserInputPtr
|
333
337
|
xmlCheckHTTPInput (xmlParserCtxtPtr ctxt,
|
334
338
|
xmlParserInputPtr ret);
|
@@ -341,26 +345,28 @@ XMLPUBFUN xmlParserInputPtr
|
|
341
345
|
const char *ID,
|
342
346
|
xmlParserCtxtPtr ctxt);
|
343
347
|
|
344
|
-
|
345
|
-
* xmlNormalizeWindowsPath is obsolete, don't use it.
|
346
|
-
* Check xmlCanonicPath in uri.h for a better alternative.
|
347
|
-
*/
|
348
|
+
XML_DEPRECATED
|
348
349
|
XMLPUBFUN xmlChar *
|
349
350
|
xmlNormalizeWindowsPath (const xmlChar *path);
|
350
351
|
|
352
|
+
XML_DEPRECATED
|
351
353
|
XMLPUBFUN int
|
352
354
|
xmlCheckFilename (const char *path);
|
353
355
|
/**
|
354
356
|
* Default 'file://' protocol callbacks
|
355
357
|
*/
|
358
|
+
XML_DEPRECATED
|
356
359
|
XMLPUBFUN int
|
357
360
|
xmlFileMatch (const char *filename);
|
361
|
+
XML_DEPRECATED
|
358
362
|
XMLPUBFUN void *
|
359
363
|
xmlFileOpen (const char *filename);
|
364
|
+
XML_DEPRECATED
|
360
365
|
XMLPUBFUN int
|
361
366
|
xmlFileRead (void * context,
|
362
367
|
char * buffer,
|
363
368
|
int len);
|
369
|
+
XML_DEPRECATED
|
364
370
|
XMLPUBFUN int
|
365
371
|
xmlFileClose (void * context);
|
366
372
|
|
@@ -368,19 +374,24 @@ XMLPUBFUN int
|
|
368
374
|
* Default 'http://' protocol callbacks
|
369
375
|
*/
|
370
376
|
#ifdef LIBXML_HTTP_ENABLED
|
377
|
+
XML_DEPRECATED
|
371
378
|
XMLPUBFUN int
|
372
379
|
xmlIOHTTPMatch (const char *filename);
|
380
|
+
XML_DEPRECATED
|
373
381
|
XMLPUBFUN void *
|
374
382
|
xmlIOHTTPOpen (const char *filename);
|
375
383
|
#ifdef LIBXML_OUTPUT_ENABLED
|
384
|
+
XML_DEPRECATED
|
376
385
|
XMLPUBFUN void *
|
377
386
|
xmlIOHTTPOpenW (const char * post_uri,
|
378
387
|
int compression );
|
379
388
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
389
|
+
XML_DEPRECATED
|
380
390
|
XMLPUBFUN int
|
381
391
|
xmlIOHTTPRead (void * context,
|
382
392
|
char * buffer,
|
383
393
|
int len);
|
394
|
+
XML_DEPRECATED
|
384
395
|
XMLPUBFUN int
|
385
396
|
xmlIOHTTPClose (void * context);
|
386
397
|
#endif /* LIBXML_HTTP_ENABLED */
|
@@ -389,14 +400,18 @@ XMLPUBFUN int
|
|
389
400
|
* Default 'ftp://' protocol callbacks
|
390
401
|
*/
|
391
402
|
#if defined(LIBXML_FTP_ENABLED)
|
403
|
+
XML_DEPRECATED
|
392
404
|
XMLPUBFUN int
|
393
405
|
xmlIOFTPMatch (const char *filename);
|
406
|
+
XML_DEPRECATED
|
394
407
|
XMLPUBFUN void *
|
395
408
|
xmlIOFTPOpen (const char *filename);
|
409
|
+
XML_DEPRECATED
|
396
410
|
XMLPUBFUN int
|
397
411
|
xmlIOFTPRead (void * context,
|
398
412
|
char * buffer,
|
399
413
|
int len);
|
414
|
+
XML_DEPRECATED
|
400
415
|
XMLPUBFUN int
|
401
416
|
xmlIOFTPClose (void * context);
|
402
417
|
#endif /* defined(LIBXML_FTP_ENABLED) */
|
@@ -407,9 +422,11 @@ XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
|
|
407
422
|
XMLPUBFUN xmlOutputBufferCreateFilenameFunc
|
408
423
|
xmlOutputBufferCreateFilenameDefault(
|
409
424
|
xmlOutputBufferCreateFilenameFunc func);
|
425
|
+
XML_DEPRECATED
|
410
426
|
XMLPUBFUN xmlOutputBufferCreateFilenameFunc
|
411
427
|
xmlThrDefOutputBufferCreateFilenameDefault(
|
412
428
|
xmlOutputBufferCreateFilenameFunc func);
|
429
|
+
XML_DEPRECATED
|
413
430
|
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
|
414
431
|
xmlThrDefParserInputBufferCreateFilenameDefault(
|
415
432
|
xmlParserInputBufferCreateFilenameFunc func);
|
lxml/includes/libxml/xmlerror.h
CHANGED
@@ -211,6 +211,11 @@ typedef enum {
|
|
211
211
|
XML_ERR_USER_STOP, /* 111 */
|
212
212
|
XML_ERR_COMMENT_ABRUPTLY_ENDED, /* 112 */
|
213
213
|
XML_WAR_ENCODING_MISMATCH, /* 113 */
|
214
|
+
XML_ERR_RESOURCE_LIMIT, /* 114 */
|
215
|
+
XML_ERR_ARGUMENT, /* 115 */
|
216
|
+
XML_ERR_SYSTEM, /* 116 */
|
217
|
+
XML_ERR_REDECL_PREDEF_ENTITY, /* 117 */
|
218
|
+
XML_ERR_INT_SUBSET_NOT_FINISHED, /* 118 */
|
214
219
|
XML_NS_ERR_XML_NAMESPACE = 200,
|
215
220
|
XML_NS_ERR_UNDEFINED_NAMESPACE, /* 201 */
|
216
221
|
XML_NS_ERR_QNAME, /* 202 */
|
@@ -473,6 +478,7 @@ typedef enum {
|
|
473
478
|
XML_IO_EADDRINUSE, /* 1554 */
|
474
479
|
XML_IO_EALREADY, /* 1555 */
|
475
480
|
XML_IO_EAFNOSUPPORT, /* 1556 */
|
481
|
+
XML_IO_UNSUPPORTED_PROTOCOL, /* 1557 */
|
476
482
|
XML_XINCLUDE_RECURSION=1600,
|
477
483
|
XML_XINCLUDE_PARSE_VALUE, /* 1601 */
|
478
484
|
XML_XINCLUDE_ENTITY_DEF_MISMATCH, /* 1602 */
|
@@ -886,6 +892,7 @@ XML_GLOBALS_ERROR
|
|
886
892
|
XMLPUBFUN void
|
887
893
|
xmlSetGenericErrorFunc (void *ctx,
|
888
894
|
xmlGenericErrorFunc handler);
|
895
|
+
XML_DEPRECATED
|
889
896
|
XMLPUBFUN void
|
890
897
|
xmlThrDefSetGenericErrorFunc(void *ctx,
|
891
898
|
xmlGenericErrorFunc handler);
|
@@ -896,6 +903,7 @@ XMLPUBFUN void
|
|
896
903
|
XMLPUBFUN void
|
897
904
|
xmlSetStructuredErrorFunc (void *ctx,
|
898
905
|
xmlStructuredErrorFunc handler);
|
906
|
+
XML_DEPRECATED
|
899
907
|
XMLPUBFUN void
|
900
908
|
xmlThrDefSetStructuredErrorFunc(void *ctx,
|
901
909
|
xmlStructuredErrorFunc handler);
|
@@ -919,11 +927,17 @@ XMLPUBFUN void
|
|
919
927
|
xmlParserValidityWarning (void *ctx,
|
920
928
|
const char *msg,
|
921
929
|
...) LIBXML_ATTR_FORMAT(2,3);
|
930
|
+
/** DOC_DISABLE */
|
922
931
|
struct _xmlParserInput;
|
932
|
+
/** DOC_ENABLE */
|
923
933
|
XMLPUBFUN void
|
924
934
|
xmlParserPrintFileInfo (struct _xmlParserInput *input);
|
925
935
|
XMLPUBFUN void
|
926
936
|
xmlParserPrintFileContext (struct _xmlParserInput *input);
|
937
|
+
XMLPUBFUN void
|
938
|
+
xmlFormatError (const xmlError *err,
|
939
|
+
xmlGenericErrorFunc channel,
|
940
|
+
void *data);
|
927
941
|
|
928
942
|
/*
|
929
943
|
* Extended error information routines
|
@@ -9,6 +9,11 @@
|
|
9
9
|
#define __XML_EXPORTS_H__
|
10
10
|
|
11
11
|
/** DOC_DISABLE */
|
12
|
+
|
13
|
+
/*
|
14
|
+
* Symbol visibility
|
15
|
+
*/
|
16
|
+
|
12
17
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
13
18
|
#ifdef LIBXML_STATIC
|
14
19
|
#define XMLPUBLIC
|
@@ -20,30 +25,121 @@
|
|
20
25
|
#else /* not Windows */
|
21
26
|
#define XMLPUBLIC
|
22
27
|
#endif /* platform switch */
|
23
|
-
/** DOC_ENABLE */
|
24
28
|
|
25
|
-
/*
|
26
|
-
* XMLPUBFUN:
|
27
|
-
*
|
28
|
-
* Macro which declares an exportable function
|
29
|
-
*/
|
30
29
|
#define XMLPUBFUN XMLPUBLIC
|
31
30
|
|
32
|
-
/**
|
33
|
-
* XMLPUBVAR:
|
34
|
-
*
|
35
|
-
* Macro which declares an exportable variable
|
36
|
-
*/
|
37
31
|
#define XMLPUBVAR XMLPUBLIC extern
|
38
32
|
|
39
|
-
/** DOC_DISABLE */
|
40
33
|
/* Compatibility */
|
41
34
|
#define XMLCALL
|
42
35
|
#define XMLCDECL
|
43
|
-
#
|
44
|
-
#define LIBXML_DLL_IMPORT XMLPUBVAR
|
36
|
+
#ifndef LIBXML_DLL_IMPORT
|
37
|
+
#define LIBXML_DLL_IMPORT XMLPUBVAR
|
38
|
+
#endif
|
39
|
+
|
40
|
+
/*
|
41
|
+
* Attributes
|
42
|
+
*/
|
43
|
+
|
44
|
+
#ifndef ATTRIBUTE_UNUSED
|
45
|
+
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207 || defined(__clang__)
|
46
|
+
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
47
|
+
#else
|
48
|
+
#define ATTRIBUTE_UNUSED
|
49
|
+
#endif
|
50
|
+
#endif
|
51
|
+
|
52
|
+
#if !defined(__clang__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)
|
53
|
+
#define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
54
|
+
#else
|
55
|
+
#define LIBXML_ATTR_ALLOC_SIZE(x)
|
56
|
+
#endif
|
57
|
+
|
58
|
+
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 303
|
59
|
+
#define LIBXML_ATTR_FORMAT(fmt,args) \
|
60
|
+
__attribute__((__format__(__printf__,fmt,args)))
|
61
|
+
#else
|
62
|
+
#define LIBXML_ATTR_FORMAT(fmt,args)
|
63
|
+
#endif
|
64
|
+
|
65
|
+
#ifndef XML_DEPRECATED
|
66
|
+
#if defined(IN_LIBXML)
|
67
|
+
#define XML_DEPRECATED
|
68
|
+
#elif __GNUC__ * 100 + __GNUC_MINOR__ >= 301
|
69
|
+
#define XML_DEPRECATED __attribute__((deprecated))
|
70
|
+
#elif defined(_MSC_VER) && _MSC_VER >= 1400
|
71
|
+
/* Available since Visual Studio 2005 */
|
72
|
+
#define XML_DEPRECATED __declspec(deprecated)
|
73
|
+
#else
|
74
|
+
#define XML_DEPRECATED
|
75
|
+
#endif
|
76
|
+
#endif
|
77
|
+
|
78
|
+
/*
|
79
|
+
* Warnings pragmas, should be moved from public headers
|
80
|
+
*/
|
81
|
+
|
82
|
+
#if defined(__LCC__)
|
83
|
+
|
84
|
+
#define XML_IGNORE_FPTR_CAST_WARNINGS
|
85
|
+
#define XML_POP_WARNINGS \
|
86
|
+
_Pragma("diag_default 1215")
|
87
|
+
|
88
|
+
#elif defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
|
89
|
+
|
90
|
+
#if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 800)
|
91
|
+
#define XML_IGNORE_FPTR_CAST_WARNINGS \
|
92
|
+
_Pragma("GCC diagnostic push") \
|
93
|
+
_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
|
94
|
+
_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
|
95
|
+
#else
|
96
|
+
#define XML_IGNORE_FPTR_CAST_WARNINGS \
|
97
|
+
_Pragma("GCC diagnostic push") \
|
98
|
+
_Pragma("GCC diagnostic ignored \"-Wpedantic\"")
|
99
|
+
#endif
|
100
|
+
#define XML_POP_WARNINGS \
|
101
|
+
_Pragma("GCC diagnostic pop")
|
102
|
+
|
103
|
+
#elif defined(_MSC_VER) && _MSC_VER >= 1400
|
104
|
+
|
105
|
+
#define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
|
106
|
+
#define XML_POP_WARNINGS __pragma(warning(pop))
|
107
|
+
|
108
|
+
#else
|
109
|
+
|
110
|
+
#define XML_IGNORE_FPTR_CAST_WARNINGS
|
111
|
+
#define XML_POP_WARNINGS
|
112
|
+
|
113
|
+
#endif
|
114
|
+
|
115
|
+
/*
|
116
|
+
* Accessors for globals
|
117
|
+
*/
|
118
|
+
|
119
|
+
#define XML_NO_ATTR
|
120
|
+
|
121
|
+
#ifdef LIBXML_THREAD_ENABLED
|
122
|
+
#define XML_DECLARE_GLOBAL(name, type, attrs) \
|
123
|
+
attrs XMLPUBFUN type *__##name(void);
|
124
|
+
#define XML_GLOBAL_MACRO(name) (*__##name())
|
125
|
+
#else
|
126
|
+
#define XML_DECLARE_GLOBAL(name, type, attrs) \
|
127
|
+
attrs XMLPUBVAR type name;
|
128
|
+
#endif
|
129
|
+
|
130
|
+
/*
|
131
|
+
* Originally declared in xmlversion.h which is generated
|
132
|
+
*/
|
133
|
+
|
134
|
+
#ifdef __cplusplus
|
135
|
+
extern "C" {
|
136
|
+
#endif
|
137
|
+
|
138
|
+
XMLPUBFUN void xmlCheckVersion(int version);
|
139
|
+
|
140
|
+
#ifdef __cplusplus
|
141
|
+
}
|
45
142
|
#endif
|
46
|
-
/** DOC_ENABLE */
|
47
143
|
|
48
144
|
#endif /* __XML_EXPORTS_H__ */
|
49
145
|
|