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
@@ -22,14 +22,12 @@
|
|
22
22
|
extern "C" {
|
23
23
|
#endif
|
24
24
|
|
25
|
-
|
26
|
-
*
|
27
|
-
*
|
28
|
-
* arbitrary depth limit for the XML documents that we allow to
|
29
|
-
* process. This is not a limitation of the parser but a safety
|
30
|
-
* boundary feature, use XML_PARSE_HUGE option to override it.
|
25
|
+
/*
|
26
|
+
* Backward compatibility
|
31
27
|
*/
|
32
|
-
|
28
|
+
#define inputPush xmlCtxtPushInput
|
29
|
+
#define inputPop xmlCtxtPopInput
|
30
|
+
#define xmlParserMaxDepth 256
|
33
31
|
|
34
32
|
/**
|
35
33
|
* XML_MAX_TEXT_LENGTH:
|
@@ -68,7 +66,7 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
|
|
68
66
|
* use XML_PARSE_HUGE option to override it.
|
69
67
|
* Introduced in 2.9.0
|
70
68
|
*/
|
71
|
-
#define XML_MAX_DICTIONARY_LIMIT
|
69
|
+
#define XML_MAX_DICTIONARY_LIMIT 100000000
|
72
70
|
|
73
71
|
/**
|
74
72
|
* XML_MAX_LOOKUP_LIMIT:
|
@@ -88,14 +86,6 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
|
|
88
86
|
*/
|
89
87
|
#define XML_MAX_NAMELEN 100
|
90
88
|
|
91
|
-
/**
|
92
|
-
* INPUT_CHUNK:
|
93
|
-
*
|
94
|
-
* The parser tries to always have that amount of input ready.
|
95
|
-
* One of the point is providing context when reporting errors.
|
96
|
-
*/
|
97
|
-
#define INPUT_CHUNK 250
|
98
|
-
|
99
89
|
/************************************************************************
|
100
90
|
* *
|
101
91
|
* UNICODE version of the macros. *
|
@@ -255,8 +245,8 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
|
|
255
245
|
* Macro to check [a-zA-Z]
|
256
246
|
*
|
257
247
|
*/
|
258
|
-
#define IS_ASCII_LETTER(c) ((
|
259
|
-
|
248
|
+
#define IS_ASCII_LETTER(c) ((0x61 <= ((c) | 0x20)) && \
|
249
|
+
(((c) | 0x20) <= 0x7a))
|
260
250
|
|
261
251
|
/**
|
262
252
|
* IS_ASCII_DIGIT:
|
@@ -291,11 +281,10 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
|
|
291
281
|
*/
|
292
282
|
XMLPUBVAR const xmlChar xmlStringText[];
|
293
283
|
XMLPUBVAR const xmlChar xmlStringTextNoenc[];
|
284
|
+
XML_DEPRECATED
|
294
285
|
XMLPUBVAR const xmlChar xmlStringComment[];
|
295
286
|
|
296
|
-
|
297
|
-
* Function to finish the work of the macros where needed.
|
298
|
-
*/
|
287
|
+
XML_DEPRECATED
|
299
288
|
XMLPUBFUN int xmlIsLetter (int c);
|
300
289
|
|
301
290
|
/**
|
@@ -309,13 +298,19 @@ XMLPUBFUN xmlParserCtxtPtr
|
|
309
298
|
XMLPUBFUN xmlParserCtxtPtr
|
310
299
|
xmlCreateMemoryParserCtxt(const char *buffer,
|
311
300
|
int size);
|
301
|
+
XML_DEPRECATED
|
312
302
|
XMLPUBFUN xmlParserCtxtPtr
|
313
303
|
xmlCreateEntityParserCtxt(const xmlChar *URL,
|
314
304
|
const xmlChar *ID,
|
315
305
|
const xmlChar *base);
|
306
|
+
XMLPUBFUN void
|
307
|
+
xmlCtxtErrMemory (xmlParserCtxtPtr ctxt);
|
316
308
|
XMLPUBFUN int
|
317
309
|
xmlSwitchEncoding (xmlParserCtxtPtr ctxt,
|
318
310
|
xmlCharEncoding enc);
|
311
|
+
XMLPUBFUN int
|
312
|
+
xmlSwitchEncodingName (xmlParserCtxtPtr ctxt,
|
313
|
+
const char *encoding);
|
319
314
|
XMLPUBFUN int
|
320
315
|
xmlSwitchToEncoding (xmlParserCtxtPtr ctxt,
|
321
316
|
xmlCharEncodingHandlerPtr handler);
|
@@ -335,9 +330,16 @@ XML_DEPRECATED
|
|
335
330
|
XMLPUBFUN xmlParserInputPtr
|
336
331
|
xmlNewEntityInputStream (xmlParserCtxtPtr ctxt,
|
337
332
|
xmlEntityPtr entity);
|
333
|
+
XMLPUBFUN int
|
334
|
+
xmlCtxtPushInput (xmlParserCtxtPtr ctxt,
|
335
|
+
xmlParserInputPtr input);
|
336
|
+
XMLPUBFUN xmlParserInputPtr
|
337
|
+
xmlCtxtPopInput (xmlParserCtxtPtr ctxt);
|
338
|
+
XML_DEPRECATED
|
338
339
|
XMLPUBFUN int
|
339
340
|
xmlPushInput (xmlParserCtxtPtr ctxt,
|
340
341
|
xmlParserInputPtr input);
|
342
|
+
XML_DEPRECATED
|
341
343
|
XMLPUBFUN xmlChar
|
342
344
|
xmlPopInput (xmlParserCtxtPtr ctxt);
|
343
345
|
XMLPUBFUN void
|
@@ -503,6 +505,7 @@ XMLPUBFUN void
|
|
503
505
|
XML_DEPRECATED
|
504
506
|
XMLPUBFUN void
|
505
507
|
xmlParseMisc (xmlParserCtxtPtr ctxt);
|
508
|
+
XML_DEPRECATED
|
506
509
|
XMLPUBFUN void
|
507
510
|
xmlParseExternalSubset (xmlParserCtxtPtr ctxt,
|
508
511
|
const xmlChar *ExternalID,
|
@@ -550,23 +553,6 @@ XMLPUBFUN xmlChar *
|
|
550
553
|
xmlChar end2,
|
551
554
|
xmlChar end3);
|
552
555
|
|
553
|
-
/*
|
554
|
-
* Generated by MACROS on top of parser.c c.f. PUSH_AND_POP.
|
555
|
-
*/
|
556
|
-
XML_DEPRECATED
|
557
|
-
XMLPUBFUN int nodePush (xmlParserCtxtPtr ctxt,
|
558
|
-
xmlNodePtr value);
|
559
|
-
XML_DEPRECATED
|
560
|
-
XMLPUBFUN xmlNodePtr nodePop (xmlParserCtxtPtr ctxt);
|
561
|
-
XMLPUBFUN int inputPush (xmlParserCtxtPtr ctxt,
|
562
|
-
xmlParserInputPtr value);
|
563
|
-
XMLPUBFUN xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt);
|
564
|
-
XML_DEPRECATED
|
565
|
-
XMLPUBFUN const xmlChar * namePop (xmlParserCtxtPtr ctxt);
|
566
|
-
XML_DEPRECATED
|
567
|
-
XMLPUBFUN int namePush (xmlParserCtxtPtr ctxt,
|
568
|
-
const xmlChar *value);
|
569
|
-
|
570
556
|
/*
|
571
557
|
* other commodities shared between parser.c and parserInternals.
|
572
558
|
*/
|
@@ -587,8 +573,10 @@ XMLPUBFUN int xmlCheckLanguageID (const xmlChar *lang);
|
|
587
573
|
XML_DEPRECATED
|
588
574
|
XMLPUBFUN int xmlCurrentChar (xmlParserCtxtPtr ctxt,
|
589
575
|
int *len);
|
576
|
+
XML_DEPRECATED
|
590
577
|
XMLPUBFUN int xmlCopyCharMultiByte (xmlChar *out,
|
591
578
|
int val);
|
579
|
+
XML_DEPRECATED
|
592
580
|
XMLPUBFUN int xmlCopyChar (int len,
|
593
581
|
xmlChar *out,
|
594
582
|
int val);
|
@@ -597,66 +585,6 @@ XMLPUBFUN void xmlNextChar (xmlParserCtxtPtr ctxt);
|
|
597
585
|
XML_DEPRECATED
|
598
586
|
XMLPUBFUN void xmlParserInputShrink (xmlParserInputPtr in);
|
599
587
|
|
600
|
-
/*
|
601
|
-
* Specific function to keep track of entities references
|
602
|
-
* and used by the XSLT debugger.
|
603
|
-
*/
|
604
|
-
#ifdef LIBXML_LEGACY_ENABLED
|
605
|
-
/**
|
606
|
-
* xmlEntityReferenceFunc:
|
607
|
-
* @ent: the entity
|
608
|
-
* @firstNode: the fist node in the chunk
|
609
|
-
* @lastNode: the last nod in the chunk
|
610
|
-
*
|
611
|
-
* Callback function used when one needs to be able to track back the
|
612
|
-
* provenance of a chunk of nodes inherited from an entity replacement.
|
613
|
-
*/
|
614
|
-
typedef void (*xmlEntityReferenceFunc) (xmlEntityPtr ent,
|
615
|
-
xmlNodePtr firstNode,
|
616
|
-
xmlNodePtr lastNode);
|
617
|
-
|
618
|
-
XML_DEPRECATED
|
619
|
-
XMLPUBFUN void xmlSetEntityReferenceFunc (xmlEntityReferenceFunc func);
|
620
|
-
|
621
|
-
XML_DEPRECATED
|
622
|
-
XMLPUBFUN xmlChar *
|
623
|
-
xmlParseQuotedString (xmlParserCtxtPtr ctxt);
|
624
|
-
XML_DEPRECATED
|
625
|
-
XMLPUBFUN void
|
626
|
-
xmlParseNamespace (xmlParserCtxtPtr ctxt);
|
627
|
-
XML_DEPRECATED
|
628
|
-
XMLPUBFUN xmlChar *
|
629
|
-
xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt);
|
630
|
-
XML_DEPRECATED
|
631
|
-
XMLPUBFUN xmlChar *
|
632
|
-
xmlScanName (xmlParserCtxtPtr ctxt);
|
633
|
-
XML_DEPRECATED
|
634
|
-
XMLPUBFUN xmlChar *
|
635
|
-
xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt);
|
636
|
-
XML_DEPRECATED
|
637
|
-
XMLPUBFUN void xmlParserHandleReference(xmlParserCtxtPtr ctxt);
|
638
|
-
XML_DEPRECATED
|
639
|
-
XMLPUBFUN xmlChar *
|
640
|
-
xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
|
641
|
-
xmlChar **prefix);
|
642
|
-
/**
|
643
|
-
* Entities
|
644
|
-
*/
|
645
|
-
XML_DEPRECATED
|
646
|
-
XMLPUBFUN xmlChar *
|
647
|
-
xmlDecodeEntities (xmlParserCtxtPtr ctxt,
|
648
|
-
int len,
|
649
|
-
int what,
|
650
|
-
xmlChar end,
|
651
|
-
xmlChar end2,
|
652
|
-
xmlChar end3);
|
653
|
-
XML_DEPRECATED
|
654
|
-
XMLPUBFUN void
|
655
|
-
xmlHandleEntity (xmlParserCtxtPtr ctxt,
|
656
|
-
xmlEntityPtr entity);
|
657
|
-
|
658
|
-
#endif /* LIBXML_LEGACY_ENABLED */
|
659
|
-
|
660
588
|
#ifdef __cplusplus
|
661
589
|
}
|
662
590
|
#endif
|
lxml/includes/libxml/relaxng.h
CHANGED
@@ -14,8 +14,9 @@
|
|
14
14
|
#include <libxml/xmlerror.h>
|
15
15
|
#include <libxml/xmlstring.h>
|
16
16
|
#include <libxml/tree.h>
|
17
|
+
#include <libxml/parser.h>
|
17
18
|
|
18
|
-
#ifdef
|
19
|
+
#ifdef LIBXML_RELAXNG_ENABLED
|
19
20
|
|
20
21
|
#ifdef __cplusplus
|
21
22
|
extern "C" {
|
@@ -155,6 +156,10 @@ XMLPUBFUN void
|
|
155
156
|
xmlRelaxNGParserCtxtPtr ctxt,
|
156
157
|
xmlStructuredErrorFunc serror,
|
157
158
|
void *ctx);
|
159
|
+
XMLPUBFUN void
|
160
|
+
xmlRelaxNGSetResourceLoader (xmlRelaxNGParserCtxtPtr ctxt,
|
161
|
+
xmlResourceLoader loader,
|
162
|
+
void *vctxt);
|
158
163
|
XMLPUBFUN xmlRelaxNGPtr
|
159
164
|
xmlRelaxNGParse (xmlRelaxNGParserCtxtPtr ctxt);
|
160
165
|
XMLPUBFUN void
|
@@ -214,6 +219,6 @@ XMLPUBFUN int
|
|
214
219
|
}
|
215
220
|
#endif
|
216
221
|
|
217
|
-
#endif /*
|
222
|
+
#endif /* LIBXML_RELAXNG_ENABLED */
|
218
223
|
|
219
224
|
#endif /* __XML_RELAX_NG__ */
|
lxml/includes/libxml/threads.h
CHANGED
lxml/includes/libxml/tree.h
CHANGED
@@ -32,6 +32,12 @@
|
|
32
32
|
extern "C" {
|
33
33
|
#endif
|
34
34
|
|
35
|
+
/*
|
36
|
+
* Backward compatibility
|
37
|
+
*/
|
38
|
+
#define xmlBufferAllocScheme XML_BUFFER_ALLOC_EXACT
|
39
|
+
#define xmlDefaultBufferSize 4096
|
40
|
+
|
35
41
|
/*
|
36
42
|
* Some of the basic types pointer to structures:
|
37
43
|
*/
|
@@ -59,13 +65,6 @@ typedef xmlSAXHandler *xmlSAXHandlerPtr;
|
|
59
65
|
typedef struct _xmlEntity xmlEntity;
|
60
66
|
typedef xmlEntity *xmlEntityPtr;
|
61
67
|
|
62
|
-
/**
|
63
|
-
* BASE_BUFFER_SIZE:
|
64
|
-
*
|
65
|
-
* default buffer size 4000.
|
66
|
-
*/
|
67
|
-
#define BASE_BUFFER_SIZE 4096
|
68
|
-
|
69
68
|
/**
|
70
69
|
* LIBXML_NAMESPACE_DICT:
|
71
70
|
*
|
@@ -100,11 +99,16 @@ typedef enum {
|
|
100
99
|
typedef struct _xmlBuffer xmlBuffer;
|
101
100
|
typedef xmlBuffer *xmlBufferPtr;
|
102
101
|
struct _xmlBuffer {
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
102
|
+
/* The buffer content UTF8 */
|
103
|
+
xmlChar *content XML_DEPRECATED_MEMBER;
|
104
|
+
/* The buffer size used */
|
105
|
+
unsigned int use XML_DEPRECATED_MEMBER;
|
106
|
+
/* The buffer size */
|
107
|
+
unsigned int size XML_DEPRECATED_MEMBER;
|
108
|
+
/* The realloc method */
|
109
|
+
xmlBufferAllocationScheme alloc XML_DEPRECATED_MEMBER;
|
110
|
+
/* in IO mode we may have a different base */
|
111
|
+
xmlChar *contentIO XML_DEPRECATED_MEMBER;
|
108
112
|
};
|
109
113
|
|
110
114
|
/**
|
@@ -173,13 +177,13 @@ typedef enum {
|
|
173
177
|
XML_TEXT_NODE= 3,
|
174
178
|
XML_CDATA_SECTION_NODE= 4,
|
175
179
|
XML_ENTITY_REF_NODE= 5,
|
176
|
-
XML_ENTITY_NODE= 6,
|
180
|
+
XML_ENTITY_NODE= 6, /* unused */
|
177
181
|
XML_PI_NODE= 7,
|
178
182
|
XML_COMMENT_NODE= 8,
|
179
183
|
XML_DOCUMENT_NODE= 9,
|
180
|
-
XML_DOCUMENT_TYPE_NODE= 10,
|
184
|
+
XML_DOCUMENT_TYPE_NODE= 10, /* unused */
|
181
185
|
XML_DOCUMENT_FRAG_NODE= 11,
|
182
|
-
XML_NOTATION_NODE= 12,
|
186
|
+
XML_NOTATION_NODE= 12, /* unused */
|
183
187
|
XML_HTML_DOCUMENT_NODE= 13,
|
184
188
|
XML_DTD_NODE= 14,
|
185
189
|
XML_ELEMENT_DECL= 15,
|
@@ -449,6 +453,7 @@ struct _xmlAttr {
|
|
449
453
|
xmlNs *ns; /* pointer to the associated namespace */
|
450
454
|
xmlAttributeType atype; /* the attribute type if validating */
|
451
455
|
void *psvi; /* for type/PSVI information */
|
456
|
+
struct _xmlID *id; /* the ID struct */
|
452
457
|
};
|
453
458
|
|
454
459
|
/**
|
@@ -673,24 +678,16 @@ typedef void (*xmlDeregisterNodeFunc) (xmlNodePtr node);
|
|
673
678
|
*/
|
674
679
|
|
675
680
|
/** DOC_DISABLE */
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
#define XML_OP XML_DECLARE_GLOBAL
|
684
|
-
XML_GLOBALS_TREE
|
685
|
-
#undef XML_OP
|
686
|
-
|
687
|
-
#if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
|
688
|
-
#define xmlBufferAllocScheme XML_GLOBAL_MACRO(xmlBufferAllocScheme)
|
689
|
-
#define xmlDefaultBufferSize XML_GLOBAL_MACRO(xmlDefaultBufferSize)
|
681
|
+
XML_DEPRECATED
|
682
|
+
XMLPUBFUN xmlRegisterNodeFunc *__xmlRegisterNodeDefaultValue(void);
|
683
|
+
XML_DEPRECATED
|
684
|
+
XMLPUBFUN xmlDeregisterNodeFunc *__xmlDeregisterNodeDefaultValue(void);
|
685
|
+
|
686
|
+
#ifndef XML_GLOBALS_NO_REDEFINITION
|
690
687
|
#define xmlRegisterNodeDefaultValue \
|
691
|
-
|
688
|
+
(*__xmlRegisterNodeDefaultValue())
|
692
689
|
#define xmlDeregisterNodeDefaultValue \
|
693
|
-
|
690
|
+
(*__xmlDeregisterNodeDefaultValue())
|
694
691
|
#endif
|
695
692
|
/** DOC_ENABLE */
|
696
693
|
|
@@ -701,7 +698,6 @@ XMLPUBFUN int
|
|
701
698
|
xmlValidateNCName (const xmlChar *value,
|
702
699
|
int space);
|
703
700
|
|
704
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
705
701
|
XMLPUBFUN int
|
706
702
|
xmlValidateQName (const xmlChar *value,
|
707
703
|
int space);
|
@@ -711,7 +707,6 @@ XMLPUBFUN int
|
|
711
707
|
XMLPUBFUN int
|
712
708
|
xmlValidateNMToken (const xmlChar *value,
|
713
709
|
int space);
|
714
|
-
#endif
|
715
710
|
|
716
711
|
XMLPUBFUN xmlChar *
|
717
712
|
xmlBuildQName (const xmlChar *ncname,
|
@@ -729,8 +724,10 @@ XMLPUBFUN const xmlChar *
|
|
729
724
|
* Handling Buffers, the old ones see @xmlBuf for the new ones.
|
730
725
|
*/
|
731
726
|
|
727
|
+
XML_DEPRECATED
|
732
728
|
XMLPUBFUN void
|
733
729
|
xmlSetBufferAllocationScheme(xmlBufferAllocationScheme scheme);
|
730
|
+
XML_DEPRECATED
|
734
731
|
XMLPUBFUN xmlBufferAllocationScheme
|
735
732
|
xmlGetBufferAllocationScheme(void);
|
736
733
|
|
@@ -741,6 +738,7 @@ XMLPUBFUN xmlBufferPtr
|
|
741
738
|
XMLPUBFUN xmlBufferPtr
|
742
739
|
xmlBufferCreateStatic (void *mem,
|
743
740
|
size_t size);
|
741
|
+
XML_DEPRECATED
|
744
742
|
XMLPUBFUN int
|
745
743
|
xmlBufferResize (xmlBufferPtr buf,
|
746
744
|
unsigned int size);
|
@@ -763,9 +761,11 @@ XMLPUBFUN int
|
|
763
761
|
XMLPUBFUN int
|
764
762
|
xmlBufferCCat (xmlBufferPtr buf,
|
765
763
|
const char *str);
|
764
|
+
XML_DEPRECATED
|
766
765
|
XMLPUBFUN int
|
767
766
|
xmlBufferShrink (xmlBufferPtr buf,
|
768
767
|
unsigned int len);
|
768
|
+
XML_DEPRECATED
|
769
769
|
XMLPUBFUN int
|
770
770
|
xmlBufferGrow (xmlBufferPtr buf,
|
771
771
|
unsigned int len);
|
@@ -798,13 +798,6 @@ XMLPUBFUN xmlDtdPtr
|
|
798
798
|
xmlGetIntSubset (const xmlDoc *doc);
|
799
799
|
XMLPUBFUN void
|
800
800
|
xmlFreeDtd (xmlDtdPtr cur);
|
801
|
-
#ifdef LIBXML_LEGACY_ENABLED
|
802
|
-
XML_DEPRECATED
|
803
|
-
XMLPUBFUN xmlNsPtr
|
804
|
-
xmlNewGlobalNs (xmlDocPtr doc,
|
805
|
-
const xmlChar *href,
|
806
|
-
const xmlChar *prefix);
|
807
|
-
#endif /* LIBXML_LEGACY_ENABLED */
|
808
801
|
XMLPUBFUN xmlNsPtr
|
809
802
|
xmlNewNs (xmlNodePtr node,
|
810
803
|
const xmlChar *href,
|
@@ -821,13 +814,10 @@ XMLPUBFUN xmlAttrPtr
|
|
821
814
|
xmlNewDocProp (xmlDocPtr doc,
|
822
815
|
const xmlChar *name,
|
823
816
|
const xmlChar *value);
|
824
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
|
825
|
-
defined(LIBXML_SCHEMAS_ENABLED)
|
826
817
|
XMLPUBFUN xmlAttrPtr
|
827
818
|
xmlNewProp (xmlNodePtr node,
|
828
819
|
const xmlChar *name,
|
829
820
|
const xmlChar *value);
|
830
|
-
#endif
|
831
821
|
XMLPUBFUN xmlAttrPtr
|
832
822
|
xmlNewNsProp (xmlNodePtr node,
|
833
823
|
xmlNsPtr ns,
|
@@ -848,15 +838,11 @@ XMLPUBFUN xmlAttrPtr
|
|
848
838
|
XMLPUBFUN xmlAttrPtr
|
849
839
|
xmlCopyPropList (xmlNodePtr target,
|
850
840
|
xmlAttrPtr cur);
|
851
|
-
#ifdef LIBXML_TREE_ENABLED
|
852
841
|
XMLPUBFUN xmlDtdPtr
|
853
842
|
xmlCopyDtd (xmlDtdPtr dtd);
|
854
|
-
#endif /* LIBXML_TREE_ENABLED */
|
855
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
856
843
|
XMLPUBFUN xmlDocPtr
|
857
844
|
xmlCopyDoc (xmlDocPtr doc,
|
858
845
|
int recursive);
|
859
|
-
#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
|
860
846
|
/*
|
861
847
|
* Creating new nodes.
|
862
848
|
*/
|
@@ -876,13 +862,11 @@ XMLPUBFUN xmlNodePtr
|
|
876
862
|
XMLPUBFUN xmlNodePtr
|
877
863
|
xmlNewNodeEatName (xmlNsPtr ns,
|
878
864
|
xmlChar *name);
|
879
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
880
865
|
XMLPUBFUN xmlNodePtr
|
881
866
|
xmlNewChild (xmlNodePtr parent,
|
882
867
|
xmlNsPtr ns,
|
883
868
|
const xmlChar *name,
|
884
869
|
const xmlChar *content);
|
885
|
-
#endif
|
886
870
|
XMLPUBFUN xmlNodePtr
|
887
871
|
xmlNewDocText (const xmlDoc *doc,
|
888
872
|
const xmlChar *content);
|
@@ -929,7 +913,6 @@ XMLPUBFUN xmlNodePtr
|
|
929
913
|
xmlNodePtr node);
|
930
914
|
XMLPUBFUN xmlNodePtr
|
931
915
|
xmlCopyNodeList (xmlNodePtr node);
|
932
|
-
#ifdef LIBXML_TREE_ENABLED
|
933
916
|
XMLPUBFUN xmlNodePtr
|
934
917
|
xmlNewTextChild (xmlNodePtr parent,
|
935
918
|
xmlNsPtr ns,
|
@@ -942,17 +925,14 @@ XMLPUBFUN xmlNodePtr
|
|
942
925
|
const xmlChar *content);
|
943
926
|
XMLPUBFUN xmlNodePtr
|
944
927
|
xmlNewDocFragment (xmlDocPtr doc);
|
945
|
-
#endif /* LIBXML_TREE_ENABLED */
|
946
928
|
|
947
929
|
/*
|
948
930
|
* Navigating.
|
949
931
|
*/
|
950
932
|
XMLPUBFUN long
|
951
933
|
xmlGetLineNo (const xmlNode *node);
|
952
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED)
|
953
934
|
XMLPUBFUN xmlChar *
|
954
935
|
xmlGetNodePath (const xmlNode *node);
|
955
|
-
#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) */
|
956
936
|
XMLPUBFUN xmlNodePtr
|
957
937
|
xmlDocGetRootElement (const xmlDoc *doc);
|
958
938
|
XMLPUBFUN xmlNodePtr
|
@@ -965,33 +945,24 @@ XMLPUBFUN int
|
|
965
945
|
/*
|
966
946
|
* Changing the structure.
|
967
947
|
*/
|
968
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED)
|
969
948
|
XMLPUBFUN xmlNodePtr
|
970
949
|
xmlDocSetRootElement (xmlDocPtr doc,
|
971
950
|
xmlNodePtr root);
|
972
|
-
#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */
|
973
|
-
#ifdef LIBXML_TREE_ENABLED
|
974
951
|
XMLPUBFUN void
|
975
952
|
xmlNodeSetName (xmlNodePtr cur,
|
976
953
|
const xmlChar *name);
|
977
|
-
#endif /* LIBXML_TREE_ENABLED */
|
978
954
|
XMLPUBFUN xmlNodePtr
|
979
955
|
xmlAddChild (xmlNodePtr parent,
|
980
956
|
xmlNodePtr cur);
|
981
957
|
XMLPUBFUN xmlNodePtr
|
982
958
|
xmlAddChildList (xmlNodePtr parent,
|
983
959
|
xmlNodePtr cur);
|
984
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED)
|
985
960
|
XMLPUBFUN xmlNodePtr
|
986
961
|
xmlReplaceNode (xmlNodePtr old,
|
987
962
|
xmlNodePtr cur);
|
988
|
-
#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */
|
989
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
|
990
|
-
defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED)
|
991
963
|
XMLPUBFUN xmlNodePtr
|
992
964
|
xmlAddPrevSibling (xmlNodePtr cur,
|
993
965
|
xmlNodePtr elem);
|
994
|
-
#endif /* LIBXML_TREE_ENABLED || LIBXML_HTML_ENABLED || LIBXML_SCHEMAS_ENABLED */
|
995
966
|
XMLPUBFUN xmlNodePtr
|
996
967
|
xmlAddSibling (xmlNodePtr cur,
|
997
968
|
xmlNodePtr elem);
|
@@ -1011,10 +982,10 @@ XMLPUBFUN void
|
|
1011
982
|
xmlFreeNodeList (xmlNodePtr cur);
|
1012
983
|
XMLPUBFUN void
|
1013
984
|
xmlFreeNode (xmlNodePtr cur);
|
1014
|
-
XMLPUBFUN
|
985
|
+
XMLPUBFUN int
|
1015
986
|
xmlSetTreeDoc (xmlNodePtr tree,
|
1016
987
|
xmlDocPtr doc);
|
1017
|
-
XMLPUBFUN
|
988
|
+
XMLPUBFUN int
|
1018
989
|
xmlSetListDoc (xmlNodePtr list,
|
1019
990
|
xmlDocPtr doc);
|
1020
991
|
/*
|
@@ -1028,12 +999,13 @@ XMLPUBFUN xmlNsPtr
|
|
1028
999
|
xmlSearchNsByHref (xmlDocPtr doc,
|
1029
1000
|
xmlNodePtr node,
|
1030
1001
|
const xmlChar *href);
|
1031
|
-
|
1032
|
-
|
1002
|
+
XMLPUBFUN int
|
1003
|
+
xmlGetNsListSafe (const xmlDoc *doc,
|
1004
|
+
const xmlNode *node,
|
1005
|
+
xmlNsPtr **out);
|
1033
1006
|
XMLPUBFUN xmlNsPtr *
|
1034
1007
|
xmlGetNsList (const xmlDoc *doc,
|
1035
1008
|
const xmlNode *node);
|
1036
|
-
#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) */
|
1037
1009
|
|
1038
1010
|
XMLPUBFUN void
|
1039
1011
|
xmlSetNs (xmlNodePtr node,
|
@@ -1046,8 +1018,6 @@ XMLPUBFUN xmlNsPtr
|
|
1046
1018
|
/*
|
1047
1019
|
* Changing the content.
|
1048
1020
|
*/
|
1049
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || \
|
1050
|
-
defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED)
|
1051
1021
|
XMLPUBFUN xmlAttrPtr
|
1052
1022
|
xmlSetProp (xmlNodePtr node,
|
1053
1023
|
const xmlChar *name,
|
@@ -1057,8 +1027,11 @@ XMLPUBFUN xmlAttrPtr
|
|
1057
1027
|
xmlNsPtr ns,
|
1058
1028
|
const xmlChar *name,
|
1059
1029
|
const xmlChar *value);
|
1060
|
-
|
1061
|
-
|
1030
|
+
XMLPUBFUN int
|
1031
|
+
xmlNodeGetAttrValue (const xmlNode *node,
|
1032
|
+
const xmlChar *name,
|
1033
|
+
const xmlChar *nsUri,
|
1034
|
+
xmlChar **out);
|
1062
1035
|
XMLPUBFUN xmlChar *
|
1063
1036
|
xmlGetNoNsProp (const xmlNode *node,
|
1064
1037
|
const xmlChar *name);
|
@@ -1087,25 +1060,21 @@ XMLPUBFUN xmlChar *
|
|
1087
1060
|
xmlNodeListGetString (xmlDocPtr doc,
|
1088
1061
|
const xmlNode *list,
|
1089
1062
|
int inLine);
|
1090
|
-
#ifdef LIBXML_TREE_ENABLED
|
1091
1063
|
XMLPUBFUN xmlChar *
|
1092
1064
|
xmlNodeListGetRawString (const xmlDoc *doc,
|
1093
1065
|
const xmlNode *list,
|
1094
1066
|
int inLine);
|
1095
|
-
|
1096
|
-
XMLPUBFUN void
|
1067
|
+
XMLPUBFUN int
|
1097
1068
|
xmlNodeSetContent (xmlNodePtr cur,
|
1098
1069
|
const xmlChar *content);
|
1099
|
-
|
1100
|
-
XMLPUBFUN void
|
1070
|
+
XMLPUBFUN int
|
1101
1071
|
xmlNodeSetContentLen (xmlNodePtr cur,
|
1102
1072
|
const xmlChar *content,
|
1103
1073
|
int len);
|
1104
|
-
|
1105
|
-
XMLPUBFUN void
|
1074
|
+
XMLPUBFUN int
|
1106
1075
|
xmlNodeAddContent (xmlNodePtr cur,
|
1107
1076
|
const xmlChar *content);
|
1108
|
-
XMLPUBFUN
|
1077
|
+
XMLPUBFUN int
|
1109
1078
|
xmlNodeAddContentLen (xmlNodePtr cur,
|
1110
1079
|
const xmlChar *content,
|
1111
1080
|
int len);
|
@@ -1123,29 +1092,28 @@ XMLPUBFUN xmlChar *
|
|
1123
1092
|
xmlNodeGetLang (const xmlNode *cur);
|
1124
1093
|
XMLPUBFUN int
|
1125
1094
|
xmlNodeGetSpacePreserve (const xmlNode *cur);
|
1126
|
-
|
1127
|
-
XMLPUBFUN void
|
1095
|
+
XMLPUBFUN int
|
1128
1096
|
xmlNodeSetLang (xmlNodePtr cur,
|
1129
1097
|
const xmlChar *lang);
|
1130
|
-
XMLPUBFUN
|
1098
|
+
XMLPUBFUN int
|
1131
1099
|
xmlNodeSetSpacePreserve (xmlNodePtr cur,
|
1132
1100
|
int val);
|
1133
|
-
|
1101
|
+
XMLPUBFUN int
|
1102
|
+
xmlNodeGetBaseSafe (const xmlDoc *doc,
|
1103
|
+
const xmlNode *cur,
|
1104
|
+
xmlChar **baseOut);
|
1134
1105
|
XMLPUBFUN xmlChar *
|
1135
1106
|
xmlNodeGetBase (const xmlDoc *doc,
|
1136
1107
|
const xmlNode *cur);
|
1137
|
-
|
1138
|
-
XMLPUBFUN void
|
1108
|
+
XMLPUBFUN int
|
1139
1109
|
xmlNodeSetBase (xmlNodePtr cur,
|
1140
1110
|
const xmlChar *uri);
|
1141
|
-
#endif
|
1142
1111
|
|
1143
1112
|
/*
|
1144
1113
|
* Removing content.
|
1145
1114
|
*/
|
1146
1115
|
XMLPUBFUN int
|
1147
1116
|
xmlRemoveProp (xmlAttrPtr cur);
|
1148
|
-
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
1149
1117
|
XMLPUBFUN int
|
1150
1118
|
xmlUnsetNsProp (xmlNodePtr node,
|
1151
1119
|
xmlNsPtr ns,
|
@@ -1153,7 +1121,6 @@ XMLPUBFUN int
|
|
1153
1121
|
XMLPUBFUN int
|
1154
1122
|
xmlUnsetProp (xmlNodePtr node,
|
1155
1123
|
const xmlChar *name);
|
1156
|
-
#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
|
1157
1124
|
|
1158
1125
|
/*
|
1159
1126
|
* Internal, don't use.
|
@@ -1175,14 +1142,12 @@ XMLPUBFUN void xmlAttrSerializeTxtContent(xmlBufferPtr buf,
|
|
1175
1142
|
const xmlChar *string);
|
1176
1143
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
1177
1144
|
|
1178
|
-
#ifdef LIBXML_TREE_ENABLED
|
1179
1145
|
/*
|
1180
1146
|
* Namespace handling.
|
1181
1147
|
*/
|
1182
1148
|
XMLPUBFUN int
|
1183
1149
|
xmlReconciliateNs (xmlDocPtr doc,
|
1184
1150
|
xmlNodePtr tree);
|
1185
|
-
#endif
|
1186
1151
|
|
1187
1152
|
#ifdef LIBXML_OUTPUT_ENABLED
|
1188
1153
|
/*
|
@@ -1283,8 +1248,10 @@ XMLPUBFUN int
|
|
1283
1248
|
XMLPUBFUN void
|
1284
1249
|
xmlSetDocCompressMode (xmlDocPtr doc,
|
1285
1250
|
int mode);
|
1251
|
+
XML_DEPRECATED
|
1286
1252
|
XMLPUBFUN int
|
1287
1253
|
xmlGetCompressMode (void);
|
1254
|
+
XML_DEPRECATED
|
1288
1255
|
XMLPUBFUN void
|
1289
1256
|
xmlSetCompressMode (int mode);
|
1290
1257
|
|
@@ -1321,7 +1288,6 @@ XMLPUBFUN int
|
|
1321
1288
|
int deep,
|
1322
1289
|
int options);
|
1323
1290
|
|
1324
|
-
#ifdef LIBXML_TREE_ENABLED
|
1325
1291
|
/*
|
1326
1292
|
* 5 interfaces from DOM ElementTraversal, but different in entities
|
1327
1293
|
* traversal.
|
@@ -1336,22 +1302,20 @@ XMLPUBFUN xmlNodePtr
|
|
1336
1302
|
xmlLastElementChild (xmlNodePtr parent);
|
1337
1303
|
XMLPUBFUN xmlNodePtr
|
1338
1304
|
xmlPreviousElementSibling (xmlNodePtr node);
|
1339
|
-
#endif
|
1340
1305
|
|
1306
|
+
XML_DEPRECATED
|
1341
1307
|
XMLPUBFUN xmlRegisterNodeFunc
|
1342
1308
|
xmlRegisterNodeDefault (xmlRegisterNodeFunc func);
|
1309
|
+
XML_DEPRECATED
|
1343
1310
|
XMLPUBFUN xmlDeregisterNodeFunc
|
1344
1311
|
xmlDeregisterNodeDefault (xmlDeregisterNodeFunc func);
|
1312
|
+
XML_DEPRECATED
|
1345
1313
|
XMLPUBFUN xmlRegisterNodeFunc
|
1346
1314
|
xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func);
|
1315
|
+
XML_DEPRECATED
|
1347
1316
|
XMLPUBFUN xmlDeregisterNodeFunc
|
1348
1317
|
xmlThrDefDeregisterNodeDefault(xmlDeregisterNodeFunc func);
|
1349
1318
|
|
1350
|
-
XML_DEPRECATED XMLPUBFUN xmlBufferAllocationScheme
|
1351
|
-
xmlThrDefBufferAllocScheme (xmlBufferAllocationScheme v);
|
1352
|
-
XML_DEPRECATED XMLPUBFUN int
|
1353
|
-
xmlThrDefDefaultBufferSize (int v);
|
1354
|
-
|
1355
1319
|
#ifdef __cplusplus
|
1356
1320
|
}
|
1357
1321
|
#endif
|