nokogiri 1.14.3-x64-mingw-ucrt → 1.15.0-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of nokogiri might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +9 -8
- data/dependencies.yml +6 -6
- data/ext/nokogiri/extconf.rb +66 -22
- data/ext/nokogiri/html4_document.c +1 -2
- data/ext/nokogiri/html4_element_description.c +19 -14
- data/ext/nokogiri/html4_sax_parser_context.c +10 -16
- data/ext/nokogiri/html4_sax_push_parser.c +2 -2
- data/ext/nokogiri/include/libexslt/exsltconfig.h +3 -3
- data/ext/nokogiri/include/libxml2/libxml/HTMLparser.h +52 -38
- data/ext/nokogiri/include/libxml2/libxml/HTMLtree.h +18 -18
- data/ext/nokogiri/include/libxml2/libxml/SAX.h +36 -36
- data/ext/nokogiri/include/libxml2/libxml/SAX2.h +37 -36
- data/ext/nokogiri/include/libxml2/libxml/c14n.h +4 -4
- data/ext/nokogiri/include/libxml2/libxml/catalog.h +36 -36
- data/ext/nokogiri/include/libxml2/libxml/chvalid.h +9 -9
- data/ext/nokogiri/include/libxml2/libxml/debugXML.h +28 -28
- data/ext/nokogiri/include/libxml2/libxml/dict.h +13 -13
- data/ext/nokogiri/include/libxml2/libxml/encoding.h +20 -19
- data/ext/nokogiri/include/libxml2/libxml/entities.h +19 -21
- data/ext/nokogiri/include/libxml2/libxml/globals.h +89 -59
- data/ext/nokogiri/include/libxml2/libxml/hash.h +25 -25
- data/ext/nokogiri/include/libxml2/libxml/list.h +26 -26
- data/ext/nokogiri/include/libxml2/libxml/nanoftp.h +22 -22
- data/ext/nokogiri/include/libxml2/libxml/nanohttp.h +17 -17
- data/ext/nokogiri/include/libxml2/libxml/parser.h +100 -79
- data/ext/nokogiri/include/libxml2/libxml/parserInternals.h +149 -143
- data/ext/nokogiri/include/libxml2/libxml/pattern.h +15 -15
- data/ext/nokogiri/include/libxml2/libxml/relaxng.h +26 -26
- data/ext/nokogiri/include/libxml2/libxml/schemasInternals.h +2 -2
- data/ext/nokogiri/include/libxml2/libxml/schematron.h +18 -18
- data/ext/nokogiri/include/libxml2/libxml/threads.h +23 -20
- data/ext/nokogiri/include/libxml2/libxml/tree.h +166 -164
- data/ext/nokogiri/include/libxml2/libxml/uri.h +15 -15
- data/ext/nokogiri/include/libxml2/libxml/valid.h +72 -87
- data/ext/nokogiri/include/libxml2/libxml/xinclude.h +10 -10
- data/ext/nokogiri/include/libxml2/libxml/xlink.h +5 -5
- data/ext/nokogiri/include/libxml2/libxml/xmlIO.h +60 -59
- data/ext/nokogiri/include/libxml2/libxml/xmlautomata.h +21 -21
- data/ext/nokogiri/include/libxml2/libxml/xmlerror.h +18 -46
- data/ext/nokogiri/include/libxml2/libxml/xmlexports.h +14 -41
- data/ext/nokogiri/include/libxml2/libxml/xmlmemory.h +26 -24
- data/ext/nokogiri/include/libxml2/libxml/xmlmodule.h +4 -4
- data/ext/nokogiri/include/libxml2/libxml/xmlreader.h +87 -87
- data/ext/nokogiri/include/libxml2/libxml/xmlregexp.h +30 -30
- data/ext/nokogiri/include/libxml2/libxml/xmlsave.h +10 -10
- data/ext/nokogiri/include/libxml2/libxml/xmlschemas.h +30 -30
- data/ext/nokogiri/include/libxml2/libxml/xmlschemastypes.h +34 -34
- data/ext/nokogiri/include/libxml2/libxml/xmlstring.h +30 -30
- data/ext/nokogiri/include/libxml2/libxml/xmlunicode.h +166 -166
- data/ext/nokogiri/include/libxml2/libxml/xmlversion.h +50 -27
- data/ext/nokogiri/include/libxml2/libxml/xmlwriter.h +80 -80
- data/ext/nokogiri/include/libxml2/libxml/xpath.h +41 -41
- data/ext/nokogiri/include/libxml2/libxml/xpathInternals.h +117 -117
- data/ext/nokogiri/include/libxml2/libxml/xpointer.h +21 -21
- data/ext/nokogiri/include/libxslt/attributes.h +1 -0
- data/ext/nokogiri/include/libxslt/variables.h +3 -3
- data/ext/nokogiri/include/libxslt/xsltInternals.h +14 -4
- data/ext/nokogiri/include/libxslt/xsltconfig.h +4 -4
- data/ext/nokogiri/include/libxslt/xsltlocale.h +14 -54
- data/ext/nokogiri/include/libxslt/xsltutils.h +35 -2
- data/ext/nokogiri/nokogiri.c +46 -24
- data/ext/nokogiri/nokogiri.h +13 -2
- data/ext/nokogiri/xml_attr.c +1 -1
- data/ext/nokogiri/xml_cdata.c +10 -2
- data/ext/nokogiri/xml_comment.c +1 -1
- data/ext/nokogiri/xml_document.c +102 -22
- data/ext/nokogiri/xml_document_fragment.c +1 -1
- data/ext/nokogiri/xml_dtd.c +1 -1
- data/ext/nokogiri/xml_element_content.c +32 -29
- data/ext/nokogiri/xml_element_decl.c +5 -5
- data/ext/nokogiri/xml_encoding_handler.c +12 -4
- data/ext/nokogiri/xml_entity_reference.c +1 -1
- data/ext/nokogiri/xml_namespace.c +11 -12
- data/ext/nokogiri/xml_node.c +7 -7
- data/ext/nokogiri/xml_node_set.c +125 -105
- data/ext/nokogiri/xml_processing_instruction.c +1 -1
- data/ext/nokogiri/xml_reader.c +37 -28
- data/ext/nokogiri/xml_relax_ng.c +65 -78
- data/ext/nokogiri/xml_sax_parser.c +24 -5
- data/ext/nokogiri/xml_sax_parser_context.c +46 -25
- data/ext/nokogiri/xml_sax_push_parser.c +29 -8
- data/ext/nokogiri/xml_schema.c +90 -116
- data/ext/nokogiri/xml_text.c +10 -2
- data/ext/nokogiri/xml_xpath_context.c +156 -83
- data/ext/nokogiri/xslt_stylesheet.c +103 -50
- data/lib/nokogiri/3.1/nokogiri.so +0 -0
- data/lib/nokogiri/3.2/nokogiri.so +0 -0
- data/lib/nokogiri/css/xpath_visitor.rb +2 -2
- data/lib/nokogiri/extension.rb +1 -1
- data/lib/nokogiri/html4/document_fragment.rb +1 -1
- data/lib/nokogiri/html4/element_description_defaults.rb +1821 -353
- data/lib/nokogiri/html5/document_fragment.rb +1 -1
- data/lib/nokogiri/html5/node.rb +5 -0
- data/lib/nokogiri/html5.rb +5 -2
- data/lib/nokogiri/jruby/nokogiri_jars.rb +6 -6
- data/lib/nokogiri/version/constant.rb +1 -1
- data/lib/nokogiri/xml/attribute_decl.rb +4 -2
- data/lib/nokogiri/xml/document_fragment.rb +1 -1
- data/lib/nokogiri/xml/element_content.rb +10 -2
- data/lib/nokogiri/xml/element_decl.rb +4 -2
- data/lib/nokogiri/xml/entity_decl.rb +4 -2
- data/lib/nokogiri/xml/node/save_options.rb +8 -0
- data/lib/nokogiri/xml/node.rb +22 -13
- data/lib/nokogiri/xml/pp/node.rb +23 -12
- data/lib/nokogiri/xml/sax/document.rb +1 -1
- data/lib/nokogiri/xml/searchable.rb +18 -10
- data/lib/nokogiri/xslt.rb +73 -3
- data/lib/nokogiri.rb +12 -4
- data/lib/xsd/xmlparser/nokogiri.rb +1 -1
- metadata +2 -2
@@ -49,43 +49,43 @@ struct _xmlURI {
|
|
49
49
|
* xmlChar * xmlNodeGetBase (xmlDocPtr doc,
|
50
50
|
* xmlNodePtr cur);
|
51
51
|
*/
|
52
|
-
XMLPUBFUN xmlURIPtr
|
52
|
+
XMLPUBFUN xmlURIPtr
|
53
53
|
xmlCreateURI (void);
|
54
|
-
XMLPUBFUN xmlChar *
|
54
|
+
XMLPUBFUN xmlChar *
|
55
55
|
xmlBuildURI (const xmlChar *URI,
|
56
56
|
const xmlChar *base);
|
57
|
-
XMLPUBFUN xmlChar *
|
57
|
+
XMLPUBFUN xmlChar *
|
58
58
|
xmlBuildRelativeURI (const xmlChar *URI,
|
59
59
|
const xmlChar *base);
|
60
|
-
XMLPUBFUN xmlURIPtr
|
60
|
+
XMLPUBFUN xmlURIPtr
|
61
61
|
xmlParseURI (const char *str);
|
62
|
-
XMLPUBFUN xmlURIPtr
|
62
|
+
XMLPUBFUN xmlURIPtr
|
63
63
|
xmlParseURIRaw (const char *str,
|
64
64
|
int raw);
|
65
|
-
XMLPUBFUN int
|
65
|
+
XMLPUBFUN int
|
66
66
|
xmlParseURIReference (xmlURIPtr uri,
|
67
67
|
const char *str);
|
68
|
-
XMLPUBFUN xmlChar *
|
68
|
+
XMLPUBFUN xmlChar *
|
69
69
|
xmlSaveUri (xmlURIPtr uri);
|
70
|
-
XMLPUBFUN void
|
70
|
+
XMLPUBFUN void
|
71
71
|
xmlPrintURI (FILE *stream,
|
72
72
|
xmlURIPtr uri);
|
73
|
-
XMLPUBFUN xmlChar *
|
73
|
+
XMLPUBFUN xmlChar *
|
74
74
|
xmlURIEscapeStr (const xmlChar *str,
|
75
75
|
const xmlChar *list);
|
76
|
-
XMLPUBFUN char *
|
76
|
+
XMLPUBFUN char *
|
77
77
|
xmlURIUnescapeString (const char *str,
|
78
78
|
int len,
|
79
79
|
char *target);
|
80
|
-
XMLPUBFUN int
|
80
|
+
XMLPUBFUN int
|
81
81
|
xmlNormalizeURIPath (char *path);
|
82
|
-
XMLPUBFUN xmlChar *
|
82
|
+
XMLPUBFUN xmlChar *
|
83
83
|
xmlURIEscape (const xmlChar *str);
|
84
|
-
XMLPUBFUN void
|
84
|
+
XMLPUBFUN void
|
85
85
|
xmlFreeURI (xmlURIPtr uri);
|
86
|
-
XMLPUBFUN xmlChar*
|
86
|
+
XMLPUBFUN xmlChar*
|
87
87
|
xmlCanonicPath (const xmlChar *path);
|
88
|
-
XMLPUBFUN xmlChar*
|
88
|
+
XMLPUBFUN xmlChar*
|
89
89
|
xmlPathToURI (const xmlChar *path);
|
90
90
|
|
91
91
|
#ifdef __cplusplus
|
@@ -39,7 +39,7 @@ typedef xmlValidState *xmlValidStatePtr;
|
|
39
39
|
* Callback called when a validity error is found. This is a message
|
40
40
|
* oriented function similar to an *printf function.
|
41
41
|
*/
|
42
|
-
typedef void (
|
42
|
+
typedef void (*xmlValidityErrorFunc) (void *ctx,
|
43
43
|
const char *msg,
|
44
44
|
...) LIBXML_ATTR_FORMAT(2,3);
|
45
45
|
|
@@ -54,25 +54,10 @@ typedef void (XMLCDECL *xmlValidityErrorFunc) (void *ctx,
|
|
54
54
|
* Callback called when a validity warning is found. This is a message
|
55
55
|
* oriented function similar to an *printf function.
|
56
56
|
*/
|
57
|
-
typedef void (
|
57
|
+
typedef void (*xmlValidityWarningFunc) (void *ctx,
|
58
58
|
const char *msg,
|
59
59
|
...) LIBXML_ATTR_FORMAT(2,3);
|
60
60
|
|
61
|
-
#ifdef IN_LIBXML
|
62
|
-
/**
|
63
|
-
* XML_VCTXT_DTD_VALIDATED:
|
64
|
-
*
|
65
|
-
* Set after xmlValidateDtdFinal was called.
|
66
|
-
*/
|
67
|
-
#define XML_VCTXT_DTD_VALIDATED (1u << 0)
|
68
|
-
/**
|
69
|
-
* XML_VCTXT_USE_PCTXT:
|
70
|
-
*
|
71
|
-
* Set if the validation context is part of a parser context.
|
72
|
-
*/
|
73
|
-
#define XML_VCTXT_USE_PCTXT (1u << 1)
|
74
|
-
#endif
|
75
|
-
|
76
61
|
/*
|
77
62
|
* xmlValidCtxt:
|
78
63
|
* An xmlValidCtxt is used for error reporting when validating.
|
@@ -150,55 +135,55 @@ typedef struct _xmlHashTable xmlRefTable;
|
|
150
135
|
typedef xmlRefTable *xmlRefTablePtr;
|
151
136
|
|
152
137
|
/* Notation */
|
153
|
-
XMLPUBFUN xmlNotationPtr
|
138
|
+
XMLPUBFUN xmlNotationPtr
|
154
139
|
xmlAddNotationDecl (xmlValidCtxtPtr ctxt,
|
155
140
|
xmlDtdPtr dtd,
|
156
141
|
const xmlChar *name,
|
157
142
|
const xmlChar *PublicID,
|
158
143
|
const xmlChar *SystemID);
|
159
144
|
#ifdef LIBXML_TREE_ENABLED
|
160
|
-
XMLPUBFUN xmlNotationTablePtr
|
145
|
+
XMLPUBFUN xmlNotationTablePtr
|
161
146
|
xmlCopyNotationTable (xmlNotationTablePtr table);
|
162
147
|
#endif /* LIBXML_TREE_ENABLED */
|
163
|
-
XMLPUBFUN void
|
148
|
+
XMLPUBFUN void
|
164
149
|
xmlFreeNotationTable (xmlNotationTablePtr table);
|
165
150
|
#ifdef LIBXML_OUTPUT_ENABLED
|
166
|
-
XMLPUBFUN void
|
151
|
+
XMLPUBFUN void
|
167
152
|
xmlDumpNotationDecl (xmlBufferPtr buf,
|
168
153
|
xmlNotationPtr nota);
|
169
|
-
XMLPUBFUN void
|
154
|
+
XMLPUBFUN void
|
170
155
|
xmlDumpNotationTable (xmlBufferPtr buf,
|
171
156
|
xmlNotationTablePtr table);
|
172
157
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
173
158
|
|
174
159
|
/* Element Content */
|
175
160
|
/* the non Doc version are being deprecated */
|
176
|
-
XMLPUBFUN xmlElementContentPtr
|
161
|
+
XMLPUBFUN xmlElementContentPtr
|
177
162
|
xmlNewElementContent (const xmlChar *name,
|
178
163
|
xmlElementContentType type);
|
179
|
-
XMLPUBFUN xmlElementContentPtr
|
164
|
+
XMLPUBFUN xmlElementContentPtr
|
180
165
|
xmlCopyElementContent (xmlElementContentPtr content);
|
181
|
-
XMLPUBFUN void
|
166
|
+
XMLPUBFUN void
|
182
167
|
xmlFreeElementContent (xmlElementContentPtr cur);
|
183
168
|
/* the new versions with doc argument */
|
184
|
-
XMLPUBFUN xmlElementContentPtr
|
169
|
+
XMLPUBFUN xmlElementContentPtr
|
185
170
|
xmlNewDocElementContent (xmlDocPtr doc,
|
186
171
|
const xmlChar *name,
|
187
172
|
xmlElementContentType type);
|
188
|
-
XMLPUBFUN xmlElementContentPtr
|
173
|
+
XMLPUBFUN xmlElementContentPtr
|
189
174
|
xmlCopyDocElementContent(xmlDocPtr doc,
|
190
175
|
xmlElementContentPtr content);
|
191
|
-
XMLPUBFUN void
|
176
|
+
XMLPUBFUN void
|
192
177
|
xmlFreeDocElementContent(xmlDocPtr doc,
|
193
178
|
xmlElementContentPtr cur);
|
194
|
-
XMLPUBFUN void
|
179
|
+
XMLPUBFUN void
|
195
180
|
xmlSnprintfElementContent(char *buf,
|
196
181
|
int size,
|
197
182
|
xmlElementContentPtr content,
|
198
183
|
int englob);
|
199
184
|
#ifdef LIBXML_OUTPUT_ENABLED
|
200
185
|
/* DEPRECATED */
|
201
|
-
XMLPUBFUN void
|
186
|
+
XMLPUBFUN void
|
202
187
|
xmlSprintfElementContent(char *buf,
|
203
188
|
xmlElementContentPtr content,
|
204
189
|
int englob);
|
@@ -206,39 +191,39 @@ XMLPUBFUN void XMLCALL
|
|
206
191
|
/* DEPRECATED */
|
207
192
|
|
208
193
|
/* Element */
|
209
|
-
XMLPUBFUN xmlElementPtr
|
194
|
+
XMLPUBFUN xmlElementPtr
|
210
195
|
xmlAddElementDecl (xmlValidCtxtPtr ctxt,
|
211
196
|
xmlDtdPtr dtd,
|
212
197
|
const xmlChar *name,
|
213
198
|
xmlElementTypeVal type,
|
214
199
|
xmlElementContentPtr content);
|
215
200
|
#ifdef LIBXML_TREE_ENABLED
|
216
|
-
XMLPUBFUN xmlElementTablePtr
|
201
|
+
XMLPUBFUN xmlElementTablePtr
|
217
202
|
xmlCopyElementTable (xmlElementTablePtr table);
|
218
203
|
#endif /* LIBXML_TREE_ENABLED */
|
219
|
-
XMLPUBFUN void
|
204
|
+
XMLPUBFUN void
|
220
205
|
xmlFreeElementTable (xmlElementTablePtr table);
|
221
206
|
#ifdef LIBXML_OUTPUT_ENABLED
|
222
|
-
XMLPUBFUN void
|
207
|
+
XMLPUBFUN void
|
223
208
|
xmlDumpElementTable (xmlBufferPtr buf,
|
224
209
|
xmlElementTablePtr table);
|
225
|
-
XMLPUBFUN void
|
210
|
+
XMLPUBFUN void
|
226
211
|
xmlDumpElementDecl (xmlBufferPtr buf,
|
227
212
|
xmlElementPtr elem);
|
228
213
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
229
214
|
|
230
215
|
/* Enumeration */
|
231
|
-
XMLPUBFUN xmlEnumerationPtr
|
216
|
+
XMLPUBFUN xmlEnumerationPtr
|
232
217
|
xmlCreateEnumeration (const xmlChar *name);
|
233
|
-
XMLPUBFUN void
|
218
|
+
XMLPUBFUN void
|
234
219
|
xmlFreeEnumeration (xmlEnumerationPtr cur);
|
235
220
|
#ifdef LIBXML_TREE_ENABLED
|
236
|
-
XMLPUBFUN xmlEnumerationPtr
|
221
|
+
XMLPUBFUN xmlEnumerationPtr
|
237
222
|
xmlCopyEnumeration (xmlEnumerationPtr cur);
|
238
223
|
#endif /* LIBXML_TREE_ENABLED */
|
239
224
|
|
240
225
|
/* Attribute */
|
241
|
-
XMLPUBFUN xmlAttributePtr
|
226
|
+
XMLPUBFUN xmlAttributePtr
|
242
227
|
xmlAddAttributeDecl (xmlValidCtxtPtr ctxt,
|
243
228
|
xmlDtdPtr dtd,
|
244
229
|
const xmlChar *elem,
|
@@ -249,60 +234,60 @@ XMLPUBFUN xmlAttributePtr XMLCALL
|
|
249
234
|
const xmlChar *defaultValue,
|
250
235
|
xmlEnumerationPtr tree);
|
251
236
|
#ifdef LIBXML_TREE_ENABLED
|
252
|
-
XMLPUBFUN xmlAttributeTablePtr
|
237
|
+
XMLPUBFUN xmlAttributeTablePtr
|
253
238
|
xmlCopyAttributeTable (xmlAttributeTablePtr table);
|
254
239
|
#endif /* LIBXML_TREE_ENABLED */
|
255
|
-
XMLPUBFUN void
|
240
|
+
XMLPUBFUN void
|
256
241
|
xmlFreeAttributeTable (xmlAttributeTablePtr table);
|
257
242
|
#ifdef LIBXML_OUTPUT_ENABLED
|
258
|
-
XMLPUBFUN void
|
243
|
+
XMLPUBFUN void
|
259
244
|
xmlDumpAttributeTable (xmlBufferPtr buf,
|
260
245
|
xmlAttributeTablePtr table);
|
261
|
-
XMLPUBFUN void
|
246
|
+
XMLPUBFUN void
|
262
247
|
xmlDumpAttributeDecl (xmlBufferPtr buf,
|
263
248
|
xmlAttributePtr attr);
|
264
249
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
265
250
|
|
266
251
|
/* IDs */
|
267
|
-
XMLPUBFUN xmlIDPtr
|
252
|
+
XMLPUBFUN xmlIDPtr
|
268
253
|
xmlAddID (xmlValidCtxtPtr ctxt,
|
269
254
|
xmlDocPtr doc,
|
270
255
|
const xmlChar *value,
|
271
256
|
xmlAttrPtr attr);
|
272
|
-
XMLPUBFUN void
|
257
|
+
XMLPUBFUN void
|
273
258
|
xmlFreeIDTable (xmlIDTablePtr table);
|
274
|
-
XMLPUBFUN xmlAttrPtr
|
259
|
+
XMLPUBFUN xmlAttrPtr
|
275
260
|
xmlGetID (xmlDocPtr doc,
|
276
261
|
const xmlChar *ID);
|
277
|
-
XMLPUBFUN int
|
262
|
+
XMLPUBFUN int
|
278
263
|
xmlIsID (xmlDocPtr doc,
|
279
264
|
xmlNodePtr elem,
|
280
265
|
xmlAttrPtr attr);
|
281
|
-
XMLPUBFUN int
|
266
|
+
XMLPUBFUN int
|
282
267
|
xmlRemoveID (xmlDocPtr doc,
|
283
268
|
xmlAttrPtr attr);
|
284
269
|
|
285
270
|
/* IDREFs */
|
286
271
|
XML_DEPRECATED
|
287
|
-
XMLPUBFUN xmlRefPtr
|
272
|
+
XMLPUBFUN xmlRefPtr
|
288
273
|
xmlAddRef (xmlValidCtxtPtr ctxt,
|
289
274
|
xmlDocPtr doc,
|
290
275
|
const xmlChar *value,
|
291
276
|
xmlAttrPtr attr);
|
292
277
|
XML_DEPRECATED
|
293
|
-
XMLPUBFUN void
|
278
|
+
XMLPUBFUN void
|
294
279
|
xmlFreeRefTable (xmlRefTablePtr table);
|
295
280
|
XML_DEPRECATED
|
296
|
-
XMLPUBFUN int
|
281
|
+
XMLPUBFUN int
|
297
282
|
xmlIsRef (xmlDocPtr doc,
|
298
283
|
xmlNodePtr elem,
|
299
284
|
xmlAttrPtr attr);
|
300
285
|
XML_DEPRECATED
|
301
|
-
XMLPUBFUN int
|
286
|
+
XMLPUBFUN int
|
302
287
|
xmlRemoveRef (xmlDocPtr doc,
|
303
288
|
xmlAttrPtr attr);
|
304
289
|
XML_DEPRECATED
|
305
|
-
XMLPUBFUN xmlListPtr
|
290
|
+
XMLPUBFUN xmlListPtr
|
306
291
|
xmlGetRefs (xmlDocPtr doc,
|
307
292
|
const xmlChar *ID);
|
308
293
|
|
@@ -311,146 +296,146 @@ XMLPUBFUN xmlListPtr XMLCALL
|
|
311
296
|
*/
|
312
297
|
#ifdef LIBXML_VALID_ENABLED
|
313
298
|
/* Allocate/Release Validation Contexts */
|
314
|
-
XMLPUBFUN xmlValidCtxtPtr
|
299
|
+
XMLPUBFUN xmlValidCtxtPtr
|
315
300
|
xmlNewValidCtxt(void);
|
316
|
-
XMLPUBFUN void
|
301
|
+
XMLPUBFUN void
|
317
302
|
xmlFreeValidCtxt(xmlValidCtxtPtr);
|
318
303
|
|
319
|
-
XMLPUBFUN int
|
304
|
+
XMLPUBFUN int
|
320
305
|
xmlValidateRoot (xmlValidCtxtPtr ctxt,
|
321
306
|
xmlDocPtr doc);
|
322
|
-
XMLPUBFUN int
|
307
|
+
XMLPUBFUN int
|
323
308
|
xmlValidateElementDecl (xmlValidCtxtPtr ctxt,
|
324
309
|
xmlDocPtr doc,
|
325
310
|
xmlElementPtr elem);
|
326
|
-
XMLPUBFUN xmlChar *
|
311
|
+
XMLPUBFUN xmlChar *
|
327
312
|
xmlValidNormalizeAttributeValue(xmlDocPtr doc,
|
328
313
|
xmlNodePtr elem,
|
329
314
|
const xmlChar *name,
|
330
315
|
const xmlChar *value);
|
331
|
-
XMLPUBFUN xmlChar *
|
316
|
+
XMLPUBFUN xmlChar *
|
332
317
|
xmlValidCtxtNormalizeAttributeValue(xmlValidCtxtPtr ctxt,
|
333
318
|
xmlDocPtr doc,
|
334
319
|
xmlNodePtr elem,
|
335
320
|
const xmlChar *name,
|
336
321
|
const xmlChar *value);
|
337
|
-
XMLPUBFUN int
|
322
|
+
XMLPUBFUN int
|
338
323
|
xmlValidateAttributeDecl(xmlValidCtxtPtr ctxt,
|
339
324
|
xmlDocPtr doc,
|
340
325
|
xmlAttributePtr attr);
|
341
|
-
XMLPUBFUN int
|
326
|
+
XMLPUBFUN int
|
342
327
|
xmlValidateAttributeValue(xmlAttributeType type,
|
343
328
|
const xmlChar *value);
|
344
|
-
XMLPUBFUN int
|
329
|
+
XMLPUBFUN int
|
345
330
|
xmlValidateNotationDecl (xmlValidCtxtPtr ctxt,
|
346
331
|
xmlDocPtr doc,
|
347
332
|
xmlNotationPtr nota);
|
348
|
-
XMLPUBFUN int
|
333
|
+
XMLPUBFUN int
|
349
334
|
xmlValidateDtd (xmlValidCtxtPtr ctxt,
|
350
335
|
xmlDocPtr doc,
|
351
336
|
xmlDtdPtr dtd);
|
352
|
-
XMLPUBFUN int
|
337
|
+
XMLPUBFUN int
|
353
338
|
xmlValidateDtdFinal (xmlValidCtxtPtr ctxt,
|
354
339
|
xmlDocPtr doc);
|
355
|
-
XMLPUBFUN int
|
340
|
+
XMLPUBFUN int
|
356
341
|
xmlValidateDocument (xmlValidCtxtPtr ctxt,
|
357
342
|
xmlDocPtr doc);
|
358
|
-
XMLPUBFUN int
|
343
|
+
XMLPUBFUN int
|
359
344
|
xmlValidateElement (xmlValidCtxtPtr ctxt,
|
360
345
|
xmlDocPtr doc,
|
361
346
|
xmlNodePtr elem);
|
362
|
-
XMLPUBFUN int
|
347
|
+
XMLPUBFUN int
|
363
348
|
xmlValidateOneElement (xmlValidCtxtPtr ctxt,
|
364
349
|
xmlDocPtr doc,
|
365
350
|
xmlNodePtr elem);
|
366
|
-
XMLPUBFUN int
|
351
|
+
XMLPUBFUN int
|
367
352
|
xmlValidateOneAttribute (xmlValidCtxtPtr ctxt,
|
368
353
|
xmlDocPtr doc,
|
369
354
|
xmlNodePtr elem,
|
370
355
|
xmlAttrPtr attr,
|
371
356
|
const xmlChar *value);
|
372
|
-
XMLPUBFUN int
|
357
|
+
XMLPUBFUN int
|
373
358
|
xmlValidateOneNamespace (xmlValidCtxtPtr ctxt,
|
374
359
|
xmlDocPtr doc,
|
375
360
|
xmlNodePtr elem,
|
376
361
|
const xmlChar *prefix,
|
377
362
|
xmlNsPtr ns,
|
378
363
|
const xmlChar *value);
|
379
|
-
XMLPUBFUN int
|
364
|
+
XMLPUBFUN int
|
380
365
|
xmlValidateDocumentFinal(xmlValidCtxtPtr ctxt,
|
381
366
|
xmlDocPtr doc);
|
382
367
|
#endif /* LIBXML_VALID_ENABLED */
|
383
368
|
|
384
369
|
#if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
385
|
-
XMLPUBFUN int
|
370
|
+
XMLPUBFUN int
|
386
371
|
xmlValidateNotationUse (xmlValidCtxtPtr ctxt,
|
387
372
|
xmlDocPtr doc,
|
388
373
|
const xmlChar *notationName);
|
389
374
|
#endif /* LIBXML_VALID_ENABLED or LIBXML_SCHEMAS_ENABLED */
|
390
375
|
|
391
|
-
XMLPUBFUN int
|
376
|
+
XMLPUBFUN int
|
392
377
|
xmlIsMixedElement (xmlDocPtr doc,
|
393
378
|
const xmlChar *name);
|
394
|
-
XMLPUBFUN xmlAttributePtr
|
379
|
+
XMLPUBFUN xmlAttributePtr
|
395
380
|
xmlGetDtdAttrDesc (xmlDtdPtr dtd,
|
396
381
|
const xmlChar *elem,
|
397
382
|
const xmlChar *name);
|
398
|
-
XMLPUBFUN xmlAttributePtr
|
383
|
+
XMLPUBFUN xmlAttributePtr
|
399
384
|
xmlGetDtdQAttrDesc (xmlDtdPtr dtd,
|
400
385
|
const xmlChar *elem,
|
401
386
|
const xmlChar *name,
|
402
387
|
const xmlChar *prefix);
|
403
|
-
XMLPUBFUN xmlNotationPtr
|
388
|
+
XMLPUBFUN xmlNotationPtr
|
404
389
|
xmlGetDtdNotationDesc (xmlDtdPtr dtd,
|
405
390
|
const xmlChar *name);
|
406
|
-
XMLPUBFUN xmlElementPtr
|
391
|
+
XMLPUBFUN xmlElementPtr
|
407
392
|
xmlGetDtdQElementDesc (xmlDtdPtr dtd,
|
408
393
|
const xmlChar *name,
|
409
394
|
const xmlChar *prefix);
|
410
|
-
XMLPUBFUN xmlElementPtr
|
395
|
+
XMLPUBFUN xmlElementPtr
|
411
396
|
xmlGetDtdElementDesc (xmlDtdPtr dtd,
|
412
397
|
const xmlChar *name);
|
413
398
|
|
414
399
|
#ifdef LIBXML_VALID_ENABLED
|
415
400
|
|
416
|
-
XMLPUBFUN int
|
401
|
+
XMLPUBFUN int
|
417
402
|
xmlValidGetPotentialChildren(xmlElementContent *ctree,
|
418
403
|
const xmlChar **names,
|
419
404
|
int *len,
|
420
405
|
int max);
|
421
406
|
|
422
|
-
XMLPUBFUN int
|
407
|
+
XMLPUBFUN int
|
423
408
|
xmlValidGetValidElements(xmlNode *prev,
|
424
409
|
xmlNode *next,
|
425
410
|
const xmlChar **names,
|
426
411
|
int max);
|
427
|
-
XMLPUBFUN int
|
412
|
+
XMLPUBFUN int
|
428
413
|
xmlValidateNameValue (const xmlChar *value);
|
429
|
-
XMLPUBFUN int
|
414
|
+
XMLPUBFUN int
|
430
415
|
xmlValidateNamesValue (const xmlChar *value);
|
431
|
-
XMLPUBFUN int
|
416
|
+
XMLPUBFUN int
|
432
417
|
xmlValidateNmtokenValue (const xmlChar *value);
|
433
|
-
XMLPUBFUN int
|
418
|
+
XMLPUBFUN int
|
434
419
|
xmlValidateNmtokensValue(const xmlChar *value);
|
435
420
|
|
436
421
|
#ifdef LIBXML_REGEXP_ENABLED
|
437
422
|
/*
|
438
423
|
* Validation based on the regexp support
|
439
424
|
*/
|
440
|
-
XMLPUBFUN int
|
425
|
+
XMLPUBFUN int
|
441
426
|
xmlValidBuildContentModel(xmlValidCtxtPtr ctxt,
|
442
427
|
xmlElementPtr elem);
|
443
428
|
|
444
|
-
XMLPUBFUN int
|
429
|
+
XMLPUBFUN int
|
445
430
|
xmlValidatePushElement (xmlValidCtxtPtr ctxt,
|
446
431
|
xmlDocPtr doc,
|
447
432
|
xmlNodePtr elem,
|
448
433
|
const xmlChar *qname);
|
449
|
-
XMLPUBFUN int
|
434
|
+
XMLPUBFUN int
|
450
435
|
xmlValidatePushCData (xmlValidCtxtPtr ctxt,
|
451
436
|
const xmlChar *data,
|
452
437
|
int len);
|
453
|
-
XMLPUBFUN int
|
438
|
+
XMLPUBFUN int
|
454
439
|
xmlValidatePopElement (xmlValidCtxtPtr ctxt,
|
455
440
|
xmlDocPtr doc,
|
456
441
|
xmlNodePtr elem,
|
@@ -89,35 +89,35 @@ typedef xmlXIncludeCtxt *xmlXIncludeCtxtPtr;
|
|
89
89
|
/*
|
90
90
|
* standalone processing
|
91
91
|
*/
|
92
|
-
XMLPUBFUN int
|
92
|
+
XMLPUBFUN int
|
93
93
|
xmlXIncludeProcess (xmlDocPtr doc);
|
94
|
-
XMLPUBFUN int
|
94
|
+
XMLPUBFUN int
|
95
95
|
xmlXIncludeProcessFlags (xmlDocPtr doc,
|
96
96
|
int flags);
|
97
|
-
XMLPUBFUN int
|
97
|
+
XMLPUBFUN int
|
98
98
|
xmlXIncludeProcessFlagsData(xmlDocPtr doc,
|
99
99
|
int flags,
|
100
100
|
void *data);
|
101
|
-
XMLPUBFUN int
|
101
|
+
XMLPUBFUN int
|
102
102
|
xmlXIncludeProcessTreeFlagsData(xmlNodePtr tree,
|
103
103
|
int flags,
|
104
104
|
void *data);
|
105
|
-
XMLPUBFUN int
|
105
|
+
XMLPUBFUN int
|
106
106
|
xmlXIncludeProcessTree (xmlNodePtr tree);
|
107
|
-
XMLPUBFUN int
|
107
|
+
XMLPUBFUN int
|
108
108
|
xmlXIncludeProcessTreeFlags(xmlNodePtr tree,
|
109
109
|
int flags);
|
110
110
|
/*
|
111
111
|
* contextual processing
|
112
112
|
*/
|
113
|
-
XMLPUBFUN xmlXIncludeCtxtPtr
|
113
|
+
XMLPUBFUN xmlXIncludeCtxtPtr
|
114
114
|
xmlXIncludeNewContext (xmlDocPtr doc);
|
115
|
-
XMLPUBFUN int
|
115
|
+
XMLPUBFUN int
|
116
116
|
xmlXIncludeSetFlags (xmlXIncludeCtxtPtr ctxt,
|
117
117
|
int flags);
|
118
|
-
XMLPUBFUN void
|
118
|
+
XMLPUBFUN void
|
119
119
|
xmlXIncludeFreeContext (xmlXIncludeCtxtPtr ctxt);
|
120
|
-
XMLPUBFUN int
|
120
|
+
XMLPUBFUN int
|
121
121
|
xmlXIncludeProcessNode (xmlXIncludeCtxtPtr ctxt,
|
122
122
|
xmlNodePtr tree);
|
123
123
|
#ifdef __cplusplus
|
@@ -160,23 +160,23 @@ struct _xlinkHandler {
|
|
160
160
|
* detection callbacks.
|
161
161
|
*/
|
162
162
|
|
163
|
-
XMLPUBFUN xlinkNodeDetectFunc
|
163
|
+
XMLPUBFUN xlinkNodeDetectFunc
|
164
164
|
xlinkGetDefaultDetect (void);
|
165
|
-
XMLPUBFUN void
|
165
|
+
XMLPUBFUN void
|
166
166
|
xlinkSetDefaultDetect (xlinkNodeDetectFunc func);
|
167
167
|
|
168
168
|
/*
|
169
169
|
* Routines to set/get the default handlers.
|
170
170
|
*/
|
171
|
-
XMLPUBFUN xlinkHandlerPtr
|
171
|
+
XMLPUBFUN xlinkHandlerPtr
|
172
172
|
xlinkGetDefaultHandler (void);
|
173
|
-
XMLPUBFUN void
|
173
|
+
XMLPUBFUN void
|
174
174
|
xlinkSetDefaultHandler (xlinkHandlerPtr handler);
|
175
175
|
|
176
176
|
/*
|
177
177
|
* Link detection module itself.
|
178
178
|
*/
|
179
|
-
XMLPUBFUN xlinkType
|
179
|
+
XMLPUBFUN xlinkType
|
180
180
|
xlinkIsLink (xmlDocPtr doc,
|
181
181
|
xmlNodePtr node);
|
182
182
|
|