lxml 5.4.0__cp313-cp313-macosx_10_13_universal2.whl → 6.0.0__cp313-cp313-macosx_10_13_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-313-darwin.so +0 -0
- lxml/_elementpath.py +3 -1
- lxml/apihelpers.pxi +25 -17
- lxml/builder.cpython-313-darwin.so +0 -0
- lxml/builder.py +11 -0
- lxml/debug.pxi +0 -54
- lxml/etree.cpython-313-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-313-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-313-darwin.so +0 -0
- lxml/html/diff.py +406 -312
- lxml/includes/etree_defs.h +6 -6
- lxml/includes/libxml/HTMLparser.h +33 -30
- lxml/includes/libxml/HTMLtree.h +1 -0
- lxml/includes/libxml/SAX.h +2 -186
- lxml/includes/libxml/SAX2.h +2 -3
- lxml/includes/libxml/catalog.h +1 -0
- lxml/includes/libxml/debugXML.h +0 -138
- lxml/includes/libxml/encoding.h +124 -61
- lxml/includes/libxml/entities.h +0 -19
- lxml/includes/libxml/globals.h +0 -16
- lxml/includes/libxml/nanoftp.h +3 -173
- lxml/includes/libxml/parser.h +474 -231
- lxml/includes/libxml/parserInternals.h +21 -101
- lxml/includes/libxml/relaxng.h +7 -2
- lxml/includes/libxml/threads.h +0 -6
- lxml/includes/libxml/tree.h +29 -85
- lxml/includes/libxml/valid.h +20 -12
- lxml/includes/libxml/xinclude.h +5 -0
- lxml/includes/libxml/xlink.h +4 -0
- lxml/includes/libxml/xmlIO.h +15 -34
- lxml/includes/libxml/xmlautomata.h +19 -2
- lxml/includes/libxml/xmlerror.h +18 -18
- lxml/includes/libxml/xmlexports.h +6 -56
- lxml/includes/libxml/xmlmemory.h +19 -19
- lxml/includes/libxml/xmlmodule.h +4 -0
- lxml/includes/libxml/xmlreader.h +11 -3
- lxml/includes/libxml/xmlregexp.h +7 -106
- lxml/includes/libxml/xmlsave.h +11 -2
- lxml/includes/libxml/xmlschemas.h +10 -5
- lxml/includes/libxml/xmlunicode.h +3 -354
- lxml/includes/libxml/xmlversion.h +19 -34
- lxml/includes/libxml/xpath.h +5 -15
- lxml/includes/libxml/xpathInternals.h +9 -3
- lxml/includes/libxml/xpointer.h +1 -91
- 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-313-darwin.so +0 -0
- lxml/objectify.pyx +11 -7
- lxml/parser.pxi +106 -47
- lxml/sax.cpython-313-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.4.0.dist-info → lxml-6.0.0.dist-info}/RECORD +73 -71
- {lxml-5.4.0.dist-info → lxml-6.0.0.dist-info}/WHEEL +2 -1
- {lxml-5.4.0.dist-info → lxml-6.0.0.dist-info}/licenses/LICENSE.txt +3 -1
- lxml-5.4.0.dist-info/METADATA +0 -96
- {lxml-5.4.0.dist-info → lxml-6.0.0.dist-info}/licenses/LICENSES.txt +0 -0
- {lxml-5.4.0.dist-info → lxml-6.0.0.dist-info}/top_level.txt +0 -0
lxml/includes/etree_defs.h
CHANGED
@@ -159,6 +159,10 @@ static PyObject* PyBytes_FromFormat(const char* format, ...) {
|
|
159
159
|
# define xmlBufUse(buf) xmlBufferLength(buf)
|
160
160
|
#endif
|
161
161
|
|
162
|
+
#if LIBXML_VERSION < 21500
|
163
|
+
# define xmlCtxtIsStopped(p_ctxt) ((p_ctxt)->disableSAX != 0)
|
164
|
+
#endif
|
165
|
+
|
162
166
|
/* libexslt 1.1.25+ support EXSLT functions in XPath */
|
163
167
|
#if LIBXSLT_VERSION < 10125
|
164
168
|
#define exsltDateXpathCtxtRegister(ctxt, prefix)
|
@@ -177,7 +181,7 @@ long _ftol2( double dblSource ) { return _ftol( dblSource ); }
|
|
177
181
|
|
178
182
|
#ifdef __GNUC__
|
179
183
|
/* Test for GCC > 2.95 */
|
180
|
-
#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
|
184
|
+
#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
|
181
185
|
#define unlikely_condition(x) __builtin_expect((x), 0)
|
182
186
|
#else /* __GNUC__ > 2 ... */
|
183
187
|
#define unlikely_condition(x) (x)
|
@@ -190,10 +194,6 @@ long _ftol2( double dblSource ) { return _ftol( dblSource ); }
|
|
190
194
|
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
|
191
195
|
#endif
|
192
196
|
|
193
|
-
#define PY_NEW(T) \
|
194
|
-
(((PyTypeObject*)(T))->tp_new( \
|
195
|
-
(PyTypeObject*)(T), __pyx_empty_tuple, NULL))
|
196
|
-
|
197
197
|
#define _fqtypename(o) ((Py_TYPE(o))->tp_name)
|
198
198
|
|
199
199
|
#define lxml_malloc(count, item_size) \
|
@@ -268,7 +268,7 @@ static void* lxml_unpack_xmldoc_capsule(PyObject* capsule, int* is_owned) {
|
|
268
268
|
* 'inclusive' is 1). The _ELEMENT_ variants will only stop on nodes
|
269
269
|
* that match _isElement(), the normal variant will stop on every node
|
270
270
|
* except text nodes.
|
271
|
-
*
|
271
|
+
*
|
272
272
|
* To traverse the node and all of its children and siblings in Pyrex, call
|
273
273
|
* cdef xmlNode* some_node
|
274
274
|
* BEGIN_FOR_EACH_ELEMENT_FROM(some_node.parent, some_node, 1)
|
@@ -21,6 +21,11 @@
|
|
21
21
|
extern "C" {
|
22
22
|
#endif
|
23
23
|
|
24
|
+
/*
|
25
|
+
* Backward compatibility
|
26
|
+
*/
|
27
|
+
#define UTF8ToHtml htmlUTF8ToHtml
|
28
|
+
|
24
29
|
/*
|
25
30
|
* Most of the back-end structures from XML and HTML are shared.
|
26
31
|
*/
|
@@ -42,31 +47,22 @@ typedef struct _htmlElemDesc htmlElemDesc;
|
|
42
47
|
typedef htmlElemDesc *htmlElemDescPtr;
|
43
48
|
struct _htmlElemDesc {
|
44
49
|
const char *name; /* The tag name */
|
45
|
-
char startTag; /*
|
50
|
+
char startTag; /* unused */
|
46
51
|
char endTag; /* Whether the end tag can be implied */
|
47
52
|
char saveEndTag; /* Whether the end tag should be saved */
|
48
53
|
char empty; /* Is this an empty element ? */
|
49
|
-
char depr; /*
|
50
|
-
char dtd; /*
|
54
|
+
char depr; /* unused */
|
55
|
+
char dtd; /* unused */
|
51
56
|
char isinline; /* is this a block 0 or inline 1 element */
|
52
57
|
const char *desc; /* the description */
|
53
58
|
|
54
|
-
|
55
|
-
*
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
* are allowed. Some element relationships are not fully represented:
|
62
|
-
* these are flagged with the word MODIFIER
|
63
|
-
*/
|
64
|
-
const char** subelts; /* allowed sub-elements of this element */
|
65
|
-
const char* defaultsubelt; /* subelement for suggested auto-repair
|
66
|
-
if necessary or NULL */
|
67
|
-
const char** attrs_opt; /* Optional Attributes */
|
68
|
-
const char** attrs_depr; /* Additional deprecated attributes */
|
69
|
-
const char** attrs_req; /* Required attributes */
|
59
|
+
const char** subelts XML_DEPRECATED_MEMBER;
|
60
|
+
const char* defaultsubelt XML_DEPRECATED_MEMBER;
|
61
|
+
const char** attrs_opt XML_DEPRECATED_MEMBER;
|
62
|
+
const char** attrs_depr XML_DEPRECATED_MEMBER;
|
63
|
+
const char** attrs_req XML_DEPRECATED_MEMBER;
|
64
|
+
|
65
|
+
int dataMode;
|
70
66
|
};
|
71
67
|
|
72
68
|
/*
|
@@ -85,11 +81,6 @@ struct _htmlEntityDesc {
|
|
85
81
|
XML_DEPRECATED
|
86
82
|
XMLPUBVAR const xmlSAXHandlerV1 htmlDefaultSAXHandler;
|
87
83
|
|
88
|
-
#ifdef LIBXML_THREAD_ENABLED
|
89
|
-
XML_DEPRECATED
|
90
|
-
XMLPUBFUN const xmlSAXHandlerV1 *__htmlDefaultSAXHandler(void);
|
91
|
-
#endif
|
92
|
-
|
93
84
|
#endif /* LIBXML_SAX1_ENABLED */
|
94
85
|
|
95
86
|
/*
|
@@ -105,9 +96,11 @@ XMLPUBFUN const htmlEntityDesc *
|
|
105
96
|
XMLPUBFUN const htmlEntityDesc *
|
106
97
|
htmlEntityValueLookup(unsigned int value);
|
107
98
|
|
99
|
+
XML_DEPRECATED
|
108
100
|
XMLPUBFUN int
|
109
101
|
htmlIsAutoClosed(htmlDocPtr doc,
|
110
102
|
htmlNodePtr elem);
|
103
|
+
XML_DEPRECATED
|
111
104
|
XMLPUBFUN int
|
112
105
|
htmlAutoCloseTag(htmlDocPtr doc,
|
113
106
|
const xmlChar *name,
|
@@ -157,7 +150,7 @@ XMLPUBFUN htmlDocPtr
|
|
157
150
|
htmlParseFile (const char *filename,
|
158
151
|
const char *encoding);
|
159
152
|
XMLPUBFUN int
|
160
|
-
|
153
|
+
htmlUTF8ToHtml (unsigned char *out,
|
161
154
|
int *outlen,
|
162
155
|
const unsigned char *in,
|
163
156
|
int *inlen);
|
@@ -203,20 +196,26 @@ XMLPUBFUN void
|
|
203
196
|
* to the xmlReadDoc() and similar calls.
|
204
197
|
*/
|
205
198
|
typedef enum {
|
206
|
-
HTML_PARSE_RECOVER = 1<<0, /*
|
199
|
+
HTML_PARSE_RECOVER = 1<<0, /* No effect */
|
207
200
|
HTML_PARSE_NODEFDTD = 1<<2, /* do not default a doctype if not found */
|
208
201
|
HTML_PARSE_NOERROR = 1<<5, /* suppress error reports */
|
209
202
|
HTML_PARSE_NOWARNING= 1<<6, /* suppress warning reports */
|
210
|
-
HTML_PARSE_PEDANTIC = 1<<7, /*
|
203
|
+
HTML_PARSE_PEDANTIC = 1<<7, /* No effect */
|
211
204
|
HTML_PARSE_NOBLANKS = 1<<8, /* remove blank nodes */
|
212
|
-
HTML_PARSE_NONET = 1<<11,/*
|
205
|
+
HTML_PARSE_NONET = 1<<11,/* No effect */
|
213
206
|
HTML_PARSE_NOIMPLIED= 1<<13,/* Do not add implied html/body... elements */
|
214
207
|
HTML_PARSE_COMPACT = 1<<16,/* compact small text nodes */
|
215
|
-
|
208
|
+
HTML_PARSE_HUGE = 1<<19,/* relax any hardcoded limit from the parser */
|
209
|
+
HTML_PARSE_IGNORE_ENC=1<<21,/* ignore internal document encoding hint */
|
210
|
+
HTML_PARSE_BIG_LINES= 1<<22,/* Store big lines numbers in text PSVI field */
|
211
|
+
HTML_PARSE_HTML5 = 1<<26 /* HTML5 support */
|
216
212
|
} htmlParserOption;
|
217
213
|
|
218
214
|
XMLPUBFUN void
|
219
215
|
htmlCtxtReset (htmlParserCtxtPtr ctxt);
|
216
|
+
XMLPUBFUN int
|
217
|
+
htmlCtxtSetOptions (htmlParserCtxtPtr ctxt,
|
218
|
+
int options);
|
220
219
|
XMLPUBFUN int
|
221
220
|
htmlCtxtUseOptions (htmlParserCtxtPtr ctxt,
|
222
221
|
int options);
|
@@ -283,7 +282,7 @@ XMLPUBFUN htmlDocPtr
|
|
283
282
|
const char *encoding,
|
284
283
|
int options);
|
285
284
|
|
286
|
-
/*
|
285
|
+
/* deprecated content model
|
287
286
|
*/
|
288
287
|
typedef enum {
|
289
288
|
HTML_NA = 0 , /* something we don't check at all */
|
@@ -296,9 +295,13 @@ typedef enum {
|
|
296
295
|
/* Using htmlElemDesc rather than name here, to emphasise the fact
|
297
296
|
that otherwise there's a lookup overhead
|
298
297
|
*/
|
298
|
+
XML_DEPRECATED
|
299
299
|
XMLPUBFUN htmlStatus htmlAttrAllowed(const htmlElemDesc*, const xmlChar*, int) ;
|
300
|
+
XML_DEPRECATED
|
300
301
|
XMLPUBFUN int htmlElementAllowedHere(const htmlElemDesc*, const xmlChar*) ;
|
302
|
+
XML_DEPRECATED
|
301
303
|
XMLPUBFUN htmlStatus htmlElementStatusHere(const htmlElemDesc*, const htmlElemDesc*) ;
|
304
|
+
XML_DEPRECATED
|
302
305
|
XMLPUBFUN htmlStatus htmlNodeStatus(htmlNodePtr, int) ;
|
303
306
|
/**
|
304
307
|
* htmlDefaultSubelement:
|
lxml/includes/libxml/HTMLtree.h
CHANGED
lxml/includes/libxml/SAX.h
CHANGED
@@ -8,195 +8,11 @@
|
|
8
8
|
* Author: Daniel Veillard
|
9
9
|
*/
|
10
10
|
|
11
|
-
|
12
11
|
#ifndef __XML_SAX_H__
|
13
12
|
#define __XML_SAX_H__
|
14
13
|
|
15
|
-
#
|
16
|
-
#
|
17
|
-
|
18
|
-
#ifdef LIBXML_LEGACY_ENABLED
|
19
|
-
|
20
|
-
#ifdef __cplusplus
|
21
|
-
extern "C" {
|
14
|
+
#ifdef __GNUC__
|
15
|
+
#warning "libxml/SAX.h is deprecated"
|
22
16
|
#endif
|
23
|
-
XML_DEPRECATED
|
24
|
-
XMLPUBFUN const xmlChar *
|
25
|
-
getPublicId (void *ctx);
|
26
|
-
XML_DEPRECATED
|
27
|
-
XMLPUBFUN const xmlChar *
|
28
|
-
getSystemId (void *ctx);
|
29
|
-
XML_DEPRECATED
|
30
|
-
XMLPUBFUN void
|
31
|
-
setDocumentLocator (void *ctx,
|
32
|
-
xmlSAXLocatorPtr loc);
|
33
|
-
|
34
|
-
XML_DEPRECATED
|
35
|
-
XMLPUBFUN int
|
36
|
-
getLineNumber (void *ctx);
|
37
|
-
XML_DEPRECATED
|
38
|
-
XMLPUBFUN int
|
39
|
-
getColumnNumber (void *ctx);
|
40
|
-
|
41
|
-
XML_DEPRECATED
|
42
|
-
XMLPUBFUN int
|
43
|
-
isStandalone (void *ctx);
|
44
|
-
XML_DEPRECATED
|
45
|
-
XMLPUBFUN int
|
46
|
-
hasInternalSubset (void *ctx);
|
47
|
-
XML_DEPRECATED
|
48
|
-
XMLPUBFUN int
|
49
|
-
hasExternalSubset (void *ctx);
|
50
|
-
|
51
|
-
XML_DEPRECATED
|
52
|
-
XMLPUBFUN void
|
53
|
-
internalSubset (void *ctx,
|
54
|
-
const xmlChar *name,
|
55
|
-
const xmlChar *ExternalID,
|
56
|
-
const xmlChar *SystemID);
|
57
|
-
XML_DEPRECATED
|
58
|
-
XMLPUBFUN void
|
59
|
-
externalSubset (void *ctx,
|
60
|
-
const xmlChar *name,
|
61
|
-
const xmlChar *ExternalID,
|
62
|
-
const xmlChar *SystemID);
|
63
|
-
XML_DEPRECATED
|
64
|
-
XMLPUBFUN xmlEntityPtr
|
65
|
-
getEntity (void *ctx,
|
66
|
-
const xmlChar *name);
|
67
|
-
XML_DEPRECATED
|
68
|
-
XMLPUBFUN xmlEntityPtr
|
69
|
-
getParameterEntity (void *ctx,
|
70
|
-
const xmlChar *name);
|
71
|
-
XML_DEPRECATED
|
72
|
-
XMLPUBFUN xmlParserInputPtr
|
73
|
-
resolveEntity (void *ctx,
|
74
|
-
const xmlChar *publicId,
|
75
|
-
const xmlChar *systemId);
|
76
|
-
|
77
|
-
XML_DEPRECATED
|
78
|
-
XMLPUBFUN void
|
79
|
-
entityDecl (void *ctx,
|
80
|
-
const xmlChar *name,
|
81
|
-
int type,
|
82
|
-
const xmlChar *publicId,
|
83
|
-
const xmlChar *systemId,
|
84
|
-
xmlChar *content);
|
85
|
-
XML_DEPRECATED
|
86
|
-
XMLPUBFUN void
|
87
|
-
attributeDecl (void *ctx,
|
88
|
-
const xmlChar *elem,
|
89
|
-
const xmlChar *fullname,
|
90
|
-
int type,
|
91
|
-
int def,
|
92
|
-
const xmlChar *defaultValue,
|
93
|
-
xmlEnumerationPtr tree);
|
94
|
-
XML_DEPRECATED
|
95
|
-
XMLPUBFUN void
|
96
|
-
elementDecl (void *ctx,
|
97
|
-
const xmlChar *name,
|
98
|
-
int type,
|
99
|
-
xmlElementContentPtr content);
|
100
|
-
XML_DEPRECATED
|
101
|
-
XMLPUBFUN void
|
102
|
-
notationDecl (void *ctx,
|
103
|
-
const xmlChar *name,
|
104
|
-
const xmlChar *publicId,
|
105
|
-
const xmlChar *systemId);
|
106
|
-
XML_DEPRECATED
|
107
|
-
XMLPUBFUN void
|
108
|
-
unparsedEntityDecl (void *ctx,
|
109
|
-
const xmlChar *name,
|
110
|
-
const xmlChar *publicId,
|
111
|
-
const xmlChar *systemId,
|
112
|
-
const xmlChar *notationName);
|
113
|
-
|
114
|
-
XML_DEPRECATED
|
115
|
-
XMLPUBFUN void
|
116
|
-
startDocument (void *ctx);
|
117
|
-
XML_DEPRECATED
|
118
|
-
XMLPUBFUN void
|
119
|
-
endDocument (void *ctx);
|
120
|
-
XML_DEPRECATED
|
121
|
-
XMLPUBFUN void
|
122
|
-
attribute (void *ctx,
|
123
|
-
const xmlChar *fullname,
|
124
|
-
const xmlChar *value);
|
125
|
-
XML_DEPRECATED
|
126
|
-
XMLPUBFUN void
|
127
|
-
startElement (void *ctx,
|
128
|
-
const xmlChar *fullname,
|
129
|
-
const xmlChar **atts);
|
130
|
-
XML_DEPRECATED
|
131
|
-
XMLPUBFUN void
|
132
|
-
endElement (void *ctx,
|
133
|
-
const xmlChar *name);
|
134
|
-
XML_DEPRECATED
|
135
|
-
XMLPUBFUN void
|
136
|
-
reference (void *ctx,
|
137
|
-
const xmlChar *name);
|
138
|
-
XML_DEPRECATED
|
139
|
-
XMLPUBFUN void
|
140
|
-
characters (void *ctx,
|
141
|
-
const xmlChar *ch,
|
142
|
-
int len);
|
143
|
-
XML_DEPRECATED
|
144
|
-
XMLPUBFUN void
|
145
|
-
ignorableWhitespace (void *ctx,
|
146
|
-
const xmlChar *ch,
|
147
|
-
int len);
|
148
|
-
XML_DEPRECATED
|
149
|
-
XMLPUBFUN void
|
150
|
-
processingInstruction (void *ctx,
|
151
|
-
const xmlChar *target,
|
152
|
-
const xmlChar *data);
|
153
|
-
XML_DEPRECATED
|
154
|
-
XMLPUBFUN void
|
155
|
-
globalNamespace (void *ctx,
|
156
|
-
const xmlChar *href,
|
157
|
-
const xmlChar *prefix);
|
158
|
-
XML_DEPRECATED
|
159
|
-
XMLPUBFUN void
|
160
|
-
setNamespace (void *ctx,
|
161
|
-
const xmlChar *name);
|
162
|
-
XML_DEPRECATED
|
163
|
-
XMLPUBFUN xmlNsPtr
|
164
|
-
getNamespace (void *ctx);
|
165
|
-
XML_DEPRECATED
|
166
|
-
XMLPUBFUN int
|
167
|
-
checkNamespace (void *ctx,
|
168
|
-
xmlChar *nameSpace);
|
169
|
-
XML_DEPRECATED
|
170
|
-
XMLPUBFUN void
|
171
|
-
namespaceDecl (void *ctx,
|
172
|
-
const xmlChar *href,
|
173
|
-
const xmlChar *prefix);
|
174
|
-
XML_DEPRECATED
|
175
|
-
XMLPUBFUN void
|
176
|
-
comment (void *ctx,
|
177
|
-
const xmlChar *value);
|
178
|
-
XML_DEPRECATED
|
179
|
-
XMLPUBFUN void
|
180
|
-
cdataBlock (void *ctx,
|
181
|
-
const xmlChar *value,
|
182
|
-
int len);
|
183
|
-
|
184
|
-
#ifdef LIBXML_SAX1_ENABLED
|
185
|
-
XML_DEPRECATED
|
186
|
-
XMLPUBFUN void
|
187
|
-
initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,
|
188
|
-
int warning);
|
189
|
-
#ifdef LIBXML_HTML_ENABLED
|
190
|
-
XML_DEPRECATED
|
191
|
-
XMLPUBFUN void
|
192
|
-
inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
|
193
|
-
#endif
|
194
|
-
#endif /* LIBXML_SAX1_ENABLED */
|
195
|
-
|
196
|
-
#ifdef __cplusplus
|
197
|
-
}
|
198
|
-
#endif
|
199
|
-
|
200
|
-
#endif /* LIBXML_LEGACY_ENABLED */
|
201
17
|
|
202
18
|
#endif /* __XML_SAX_H__ */
|
lxml/includes/libxml/SAX2.h
CHANGED
@@ -95,16 +95,15 @@ XMLPUBFUN void
|
|
95
95
|
xmlSAX2StartDocument (void *ctx);
|
96
96
|
XMLPUBFUN void
|
97
97
|
xmlSAX2EndDocument (void *ctx);
|
98
|
-
|
99
|
-
defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_LEGACY_ENABLED)
|
98
|
+
XML_DEPRECATED
|
100
99
|
XMLPUBFUN void
|
101
100
|
xmlSAX2StartElement (void *ctx,
|
102
101
|
const xmlChar *fullname,
|
103
102
|
const xmlChar **atts);
|
103
|
+
XML_DEPRECATED
|
104
104
|
XMLPUBFUN void
|
105
105
|
xmlSAX2EndElement (void *ctx,
|
106
106
|
const xmlChar *name);
|
107
|
-
#endif /* LIBXML_SAX1_ENABLED or LIBXML_HTML_ENABLED or LIBXML_LEGACY_ENABLED */
|
108
107
|
XMLPUBFUN void
|
109
108
|
xmlSAX2StartElementNs (void *ctx,
|
110
109
|
const xmlChar *localname,
|
lxml/includes/libxml/catalog.h
CHANGED
lxml/includes/libxml/debugXML.h
CHANGED
@@ -71,144 +71,6 @@ XMLPUBFUN int
|
|
71
71
|
xmlDebugCheckDocument (FILE * output,
|
72
72
|
xmlDocPtr doc);
|
73
73
|
|
74
|
-
/****************************************************************
|
75
|
-
* *
|
76
|
-
* XML shell helpers *
|
77
|
-
* *
|
78
|
-
****************************************************************/
|
79
|
-
|
80
|
-
XMLPUBFUN void
|
81
|
-
xmlLsOneNode (FILE *output, xmlNodePtr node);
|
82
|
-
XMLPUBFUN int
|
83
|
-
xmlLsCountNode (xmlNodePtr node);
|
84
|
-
|
85
|
-
XMLPUBFUN const char *
|
86
|
-
xmlBoolToText (int boolval);
|
87
|
-
|
88
|
-
/****************************************************************
|
89
|
-
* *
|
90
|
-
* The XML shell related structures and functions *
|
91
|
-
* *
|
92
|
-
****************************************************************/
|
93
|
-
|
94
|
-
#ifdef LIBXML_XPATH_ENABLED
|
95
|
-
/**
|
96
|
-
* xmlShellReadlineFunc:
|
97
|
-
* @prompt: a string prompt
|
98
|
-
*
|
99
|
-
* This is a generic signature for the XML shell input function.
|
100
|
-
*
|
101
|
-
* Returns a string which will be freed by the Shell.
|
102
|
-
*/
|
103
|
-
typedef char * (* xmlShellReadlineFunc)(char *prompt);
|
104
|
-
|
105
|
-
/**
|
106
|
-
* xmlShellCtxt:
|
107
|
-
*
|
108
|
-
* A debugging shell context.
|
109
|
-
* TODO: add the defined function tables.
|
110
|
-
*/
|
111
|
-
typedef struct _xmlShellCtxt xmlShellCtxt;
|
112
|
-
typedef xmlShellCtxt *xmlShellCtxtPtr;
|
113
|
-
struct _xmlShellCtxt {
|
114
|
-
char *filename;
|
115
|
-
xmlDocPtr doc;
|
116
|
-
xmlNodePtr node;
|
117
|
-
xmlXPathContextPtr pctxt;
|
118
|
-
int loaded;
|
119
|
-
FILE *output;
|
120
|
-
xmlShellReadlineFunc input;
|
121
|
-
};
|
122
|
-
|
123
|
-
/**
|
124
|
-
* xmlShellCmd:
|
125
|
-
* @ctxt: a shell context
|
126
|
-
* @arg: a string argument
|
127
|
-
* @node: a first node
|
128
|
-
* @node2: a second node
|
129
|
-
*
|
130
|
-
* This is a generic signature for the XML shell functions.
|
131
|
-
*
|
132
|
-
* Returns an int, negative returns indicating errors.
|
133
|
-
*/
|
134
|
-
typedef int (* xmlShellCmd) (xmlShellCtxtPtr ctxt,
|
135
|
-
char *arg,
|
136
|
-
xmlNodePtr node,
|
137
|
-
xmlNodePtr node2);
|
138
|
-
|
139
|
-
XMLPUBFUN void
|
140
|
-
xmlShellPrintXPathError (int errorType,
|
141
|
-
const char *arg);
|
142
|
-
XMLPUBFUN void
|
143
|
-
xmlShellPrintXPathResult(xmlXPathObjectPtr list);
|
144
|
-
XMLPUBFUN int
|
145
|
-
xmlShellList (xmlShellCtxtPtr ctxt,
|
146
|
-
char *arg,
|
147
|
-
xmlNodePtr node,
|
148
|
-
xmlNodePtr node2);
|
149
|
-
XMLPUBFUN int
|
150
|
-
xmlShellBase (xmlShellCtxtPtr ctxt,
|
151
|
-
char *arg,
|
152
|
-
xmlNodePtr node,
|
153
|
-
xmlNodePtr node2);
|
154
|
-
XMLPUBFUN int
|
155
|
-
xmlShellDir (xmlShellCtxtPtr ctxt,
|
156
|
-
char *arg,
|
157
|
-
xmlNodePtr node,
|
158
|
-
xmlNodePtr node2);
|
159
|
-
XMLPUBFUN int
|
160
|
-
xmlShellLoad (xmlShellCtxtPtr ctxt,
|
161
|
-
char *filename,
|
162
|
-
xmlNodePtr node,
|
163
|
-
xmlNodePtr node2);
|
164
|
-
#ifdef LIBXML_OUTPUT_ENABLED
|
165
|
-
XMLPUBFUN void
|
166
|
-
xmlShellPrintNode (xmlNodePtr node);
|
167
|
-
XMLPUBFUN int
|
168
|
-
xmlShellCat (xmlShellCtxtPtr ctxt,
|
169
|
-
char *arg,
|
170
|
-
xmlNodePtr node,
|
171
|
-
xmlNodePtr node2);
|
172
|
-
XMLPUBFUN int
|
173
|
-
xmlShellWrite (xmlShellCtxtPtr ctxt,
|
174
|
-
char *filename,
|
175
|
-
xmlNodePtr node,
|
176
|
-
xmlNodePtr node2);
|
177
|
-
XMLPUBFUN int
|
178
|
-
xmlShellSave (xmlShellCtxtPtr ctxt,
|
179
|
-
char *filename,
|
180
|
-
xmlNodePtr node,
|
181
|
-
xmlNodePtr node2);
|
182
|
-
#endif /* LIBXML_OUTPUT_ENABLED */
|
183
|
-
#ifdef LIBXML_VALID_ENABLED
|
184
|
-
XMLPUBFUN int
|
185
|
-
xmlShellValidate (xmlShellCtxtPtr ctxt,
|
186
|
-
char *dtd,
|
187
|
-
xmlNodePtr node,
|
188
|
-
xmlNodePtr node2);
|
189
|
-
#endif /* LIBXML_VALID_ENABLED */
|
190
|
-
XMLPUBFUN int
|
191
|
-
xmlShellDu (xmlShellCtxtPtr ctxt,
|
192
|
-
char *arg,
|
193
|
-
xmlNodePtr tree,
|
194
|
-
xmlNodePtr node2);
|
195
|
-
XMLPUBFUN int
|
196
|
-
xmlShellPwd (xmlShellCtxtPtr ctxt,
|
197
|
-
char *buffer,
|
198
|
-
xmlNodePtr node,
|
199
|
-
xmlNodePtr node2);
|
200
|
-
|
201
|
-
/*
|
202
|
-
* The Shell interface.
|
203
|
-
*/
|
204
|
-
XMLPUBFUN void
|
205
|
-
xmlShell (xmlDocPtr doc,
|
206
|
-
const char *filename,
|
207
|
-
xmlShellReadlineFunc input,
|
208
|
-
FILE *output);
|
209
|
-
|
210
|
-
#endif /* LIBXML_XPATH_ENABLED */
|
211
|
-
|
212
74
|
#ifdef __cplusplus
|
213
75
|
}
|
214
76
|
#endif
|