lxml 6.0.0__cp310-cp310-musllinux_1_2_armv7l.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.
Files changed (174) hide show
  1. lxml/ElementInclude.py +244 -0
  2. lxml/__init__.py +22 -0
  3. lxml/_elementpath.cpython-310-arm-linux-gnueabihf.so +0 -0
  4. lxml/_elementpath.py +343 -0
  5. lxml/apihelpers.pxi +1801 -0
  6. lxml/builder.cpython-310-arm-linux-gnueabihf.so +0 -0
  7. lxml/builder.py +243 -0
  8. lxml/classlookup.pxi +580 -0
  9. lxml/cleanup.pxi +215 -0
  10. lxml/cssselect.py +101 -0
  11. lxml/debug.pxi +36 -0
  12. lxml/docloader.pxi +178 -0
  13. lxml/doctestcompare.py +488 -0
  14. lxml/dtd.pxi +479 -0
  15. lxml/etree.cpython-310-arm-linux-gnueabihf.so +0 -0
  16. lxml/etree.h +244 -0
  17. lxml/etree.pyx +3853 -0
  18. lxml/etree_api.h +204 -0
  19. lxml/extensions.pxi +830 -0
  20. lxml/html/ElementSoup.py +10 -0
  21. lxml/html/__init__.py +1927 -0
  22. lxml/html/_diffcommand.py +86 -0
  23. lxml/html/_difflib.cpython-310-arm-linux-gnueabihf.so +0 -0
  24. lxml/html/_difflib.py +2106 -0
  25. lxml/html/_html5builder.py +100 -0
  26. lxml/html/_setmixin.py +56 -0
  27. lxml/html/builder.py +173 -0
  28. lxml/html/clean.py +21 -0
  29. lxml/html/defs.py +135 -0
  30. lxml/html/diff.cpython-310-arm-linux-gnueabihf.so +0 -0
  31. lxml/html/diff.py +972 -0
  32. lxml/html/formfill.py +299 -0
  33. lxml/html/html5parser.py +260 -0
  34. lxml/html/soupparser.py +314 -0
  35. lxml/html/usedoctest.py +13 -0
  36. lxml/includes/__init__.pxd +0 -0
  37. lxml/includes/__init__.py +0 -0
  38. lxml/includes/c14n.pxd +25 -0
  39. lxml/includes/config.pxd +3 -0
  40. lxml/includes/dtdvalid.pxd +18 -0
  41. lxml/includes/etree_defs.h +379 -0
  42. lxml/includes/etreepublic.pxd +237 -0
  43. lxml/includes/extlibs/__init__.py +0 -0
  44. lxml/includes/extlibs/libcharset.h +45 -0
  45. lxml/includes/extlibs/localcharset.h +137 -0
  46. lxml/includes/extlibs/zconf.h +543 -0
  47. lxml/includes/extlibs/zlib.h +1938 -0
  48. lxml/includes/htmlparser.pxd +56 -0
  49. lxml/includes/libexslt/__init__.py +0 -0
  50. lxml/includes/libexslt/exslt.h +108 -0
  51. lxml/includes/libexslt/exsltconfig.h +70 -0
  52. lxml/includes/libexslt/exsltexports.h +63 -0
  53. lxml/includes/libxml/HTMLparser.h +339 -0
  54. lxml/includes/libxml/HTMLtree.h +148 -0
  55. lxml/includes/libxml/SAX.h +18 -0
  56. lxml/includes/libxml/SAX2.h +170 -0
  57. lxml/includes/libxml/__init__.py +0 -0
  58. lxml/includes/libxml/c14n.h +115 -0
  59. lxml/includes/libxml/catalog.h +183 -0
  60. lxml/includes/libxml/chvalid.h +230 -0
  61. lxml/includes/libxml/debugXML.h +79 -0
  62. lxml/includes/libxml/dict.h +82 -0
  63. lxml/includes/libxml/encoding.h +307 -0
  64. lxml/includes/libxml/entities.h +147 -0
  65. lxml/includes/libxml/globals.h +25 -0
  66. lxml/includes/libxml/hash.h +251 -0
  67. lxml/includes/libxml/list.h +137 -0
  68. lxml/includes/libxml/nanoftp.h +16 -0
  69. lxml/includes/libxml/nanohttp.h +98 -0
  70. lxml/includes/libxml/parser.h +1633 -0
  71. lxml/includes/libxml/parserInternals.h +591 -0
  72. lxml/includes/libxml/relaxng.h +224 -0
  73. lxml/includes/libxml/schemasInternals.h +959 -0
  74. lxml/includes/libxml/schematron.h +143 -0
  75. lxml/includes/libxml/threads.h +81 -0
  76. lxml/includes/libxml/tree.h +1326 -0
  77. lxml/includes/libxml/uri.h +106 -0
  78. lxml/includes/libxml/valid.h +485 -0
  79. lxml/includes/libxml/xinclude.h +141 -0
  80. lxml/includes/libxml/xlink.h +193 -0
  81. lxml/includes/libxml/xmlIO.h +419 -0
  82. lxml/includes/libxml/xmlautomata.h +163 -0
  83. lxml/includes/libxml/xmlerror.h +962 -0
  84. lxml/includes/libxml/xmlexports.h +96 -0
  85. lxml/includes/libxml/xmlmemory.h +188 -0
  86. lxml/includes/libxml/xmlmodule.h +61 -0
  87. lxml/includes/libxml/xmlreader.h +444 -0
  88. lxml/includes/libxml/xmlregexp.h +116 -0
  89. lxml/includes/libxml/xmlsave.h +111 -0
  90. lxml/includes/libxml/xmlschemas.h +254 -0
  91. lxml/includes/libxml/xmlschemastypes.h +152 -0
  92. lxml/includes/libxml/xmlstring.h +140 -0
  93. lxml/includes/libxml/xmlunicode.h +15 -0
  94. lxml/includes/libxml/xmlversion.h +332 -0
  95. lxml/includes/libxml/xmlwriter.h +489 -0
  96. lxml/includes/libxml/xpath.h +569 -0
  97. lxml/includes/libxml/xpathInternals.h +639 -0
  98. lxml/includes/libxml/xpointer.h +48 -0
  99. lxml/includes/libxslt/__init__.py +0 -0
  100. lxml/includes/libxslt/attributes.h +39 -0
  101. lxml/includes/libxslt/documents.h +93 -0
  102. lxml/includes/libxslt/extensions.h +262 -0
  103. lxml/includes/libxslt/extra.h +72 -0
  104. lxml/includes/libxslt/functions.h +78 -0
  105. lxml/includes/libxslt/imports.h +75 -0
  106. lxml/includes/libxslt/keys.h +53 -0
  107. lxml/includes/libxslt/namespaces.h +68 -0
  108. lxml/includes/libxslt/numbersInternals.h +73 -0
  109. lxml/includes/libxslt/pattern.h +84 -0
  110. lxml/includes/libxslt/preproc.h +43 -0
  111. lxml/includes/libxslt/security.h +104 -0
  112. lxml/includes/libxslt/templates.h +77 -0
  113. lxml/includes/libxslt/transform.h +207 -0
  114. lxml/includes/libxslt/variables.h +118 -0
  115. lxml/includes/libxslt/xslt.h +110 -0
  116. lxml/includes/libxslt/xsltInternals.h +1995 -0
  117. lxml/includes/libxslt/xsltconfig.h +146 -0
  118. lxml/includes/libxslt/xsltexports.h +64 -0
  119. lxml/includes/libxslt/xsltlocale.h +44 -0
  120. lxml/includes/libxslt/xsltutils.h +343 -0
  121. lxml/includes/lxml-version.h +3 -0
  122. lxml/includes/relaxng.pxd +64 -0
  123. lxml/includes/schematron.pxd +34 -0
  124. lxml/includes/tree.pxd +492 -0
  125. lxml/includes/uri.pxd +5 -0
  126. lxml/includes/xinclude.pxd +22 -0
  127. lxml/includes/xmlerror.pxd +852 -0
  128. lxml/includes/xmlparser.pxd +303 -0
  129. lxml/includes/xmlschema.pxd +35 -0
  130. lxml/includes/xpath.pxd +136 -0
  131. lxml/includes/xslt.pxd +190 -0
  132. lxml/isoschematron/__init__.py +348 -0
  133. lxml/isoschematron/resources/rng/iso-schematron.rng +709 -0
  134. lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl +75 -0
  135. lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl +77 -0
  136. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl +313 -0
  137. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl +1160 -0
  138. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl +55 -0
  139. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl +1796 -0
  140. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl +588 -0
  141. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt +84 -0
  142. lxml/iterparse.pxi +438 -0
  143. lxml/lxml.etree.h +244 -0
  144. lxml/lxml.etree_api.h +204 -0
  145. lxml/nsclasses.pxi +281 -0
  146. lxml/objectify.cpython-310-arm-linux-gnueabihf.so +0 -0
  147. lxml/objectify.pyx +2149 -0
  148. lxml/objectpath.pxi +332 -0
  149. lxml/parser.pxi +2059 -0
  150. lxml/parsertarget.pxi +180 -0
  151. lxml/proxy.pxi +619 -0
  152. lxml/public-api.pxi +178 -0
  153. lxml/pyclasslookup.py +3 -0
  154. lxml/readonlytree.pxi +565 -0
  155. lxml/relaxng.pxi +165 -0
  156. lxml/sax.cpython-310-arm-linux-gnueabihf.so +0 -0
  157. lxml/sax.py +286 -0
  158. lxml/saxparser.pxi +875 -0
  159. lxml/schematron.pxi +173 -0
  160. lxml/serializer.pxi +1849 -0
  161. lxml/usedoctest.py +13 -0
  162. lxml/xinclude.pxi +67 -0
  163. lxml/xmlerror.pxi +1654 -0
  164. lxml/xmlid.pxi +179 -0
  165. lxml/xmlschema.pxi +215 -0
  166. lxml/xpath.pxi +487 -0
  167. lxml/xslt.pxi +957 -0
  168. lxml/xsltext.pxi +242 -0
  169. lxml-6.0.0.dist-info/METADATA +163 -0
  170. lxml-6.0.0.dist-info/RECORD +174 -0
  171. lxml-6.0.0.dist-info/WHEEL +5 -0
  172. lxml-6.0.0.dist-info/licenses/LICENSE.txt +31 -0
  173. lxml-6.0.0.dist-info/licenses/LICENSES.txt +29 -0
  174. lxml-6.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Summary: library of generic URI related routines
3
+ * Description: library of generic URI related routines
4
+ * Implements RFC 2396
5
+ *
6
+ * Copy: See Copyright for the status of this software.
7
+ *
8
+ * Author: Daniel Veillard
9
+ */
10
+
11
+ #ifndef __XML_URI_H__
12
+ #define __XML_URI_H__
13
+
14
+ #include <stdio.h>
15
+ #include <libxml/xmlversion.h>
16
+ #include <libxml/xmlstring.h>
17
+
18
+ #ifdef __cplusplus
19
+ extern "C" {
20
+ #endif
21
+
22
+ /**
23
+ * xmlURI:
24
+ *
25
+ * A parsed URI reference. This is a struct containing the various fields
26
+ * as described in RFC 2396 but separated for further processing.
27
+ *
28
+ * Note: query is a deprecated field which is incorrectly unescaped.
29
+ * query_raw takes precedence over query if the former is set.
30
+ * See: http://mail.gnome.org/archives/xml/2007-April/thread.html#00127
31
+ */
32
+ typedef struct _xmlURI xmlURI;
33
+ typedef xmlURI *xmlURIPtr;
34
+ struct _xmlURI {
35
+ char *scheme; /* the URI scheme */
36
+ char *opaque; /* opaque part */
37
+ char *authority; /* the authority part */
38
+ char *server; /* the server part */
39
+ char *user; /* the user part */
40
+ int port; /* the port number */
41
+ char *path; /* the path string */
42
+ char *query; /* the query string (deprecated - use with caution) */
43
+ char *fragment; /* the fragment identifier */
44
+ int cleanup; /* parsing potentially unclean URI */
45
+ char *query_raw; /* the query string (as it appears in the URI) */
46
+ };
47
+
48
+ /*
49
+ * This function is in tree.h:
50
+ * xmlChar * xmlNodeGetBase (xmlDocPtr doc,
51
+ * xmlNodePtr cur);
52
+ */
53
+ XMLPUBFUN xmlURIPtr
54
+ xmlCreateURI (void);
55
+ XMLPUBFUN int
56
+ xmlBuildURISafe (const xmlChar *URI,
57
+ const xmlChar *base,
58
+ xmlChar **out);
59
+ XMLPUBFUN xmlChar *
60
+ xmlBuildURI (const xmlChar *URI,
61
+ const xmlChar *base);
62
+ XMLPUBFUN int
63
+ xmlBuildRelativeURISafe (const xmlChar *URI,
64
+ const xmlChar *base,
65
+ xmlChar **out);
66
+ XMLPUBFUN xmlChar *
67
+ xmlBuildRelativeURI (const xmlChar *URI,
68
+ const xmlChar *base);
69
+ XMLPUBFUN xmlURIPtr
70
+ xmlParseURI (const char *str);
71
+ XMLPUBFUN int
72
+ xmlParseURISafe (const char *str,
73
+ xmlURIPtr *uri);
74
+ XMLPUBFUN xmlURIPtr
75
+ xmlParseURIRaw (const char *str,
76
+ int raw);
77
+ XMLPUBFUN int
78
+ xmlParseURIReference (xmlURIPtr uri,
79
+ const char *str);
80
+ XMLPUBFUN xmlChar *
81
+ xmlSaveUri (xmlURIPtr uri);
82
+ XMLPUBFUN void
83
+ xmlPrintURI (FILE *stream,
84
+ xmlURIPtr uri);
85
+ XMLPUBFUN xmlChar *
86
+ xmlURIEscapeStr (const xmlChar *str,
87
+ const xmlChar *list);
88
+ XMLPUBFUN char *
89
+ xmlURIUnescapeString (const char *str,
90
+ int len,
91
+ char *target);
92
+ XMLPUBFUN int
93
+ xmlNormalizeURIPath (char *path);
94
+ XMLPUBFUN xmlChar *
95
+ xmlURIEscape (const xmlChar *str);
96
+ XMLPUBFUN void
97
+ xmlFreeURI (xmlURIPtr uri);
98
+ XMLPUBFUN xmlChar*
99
+ xmlCanonicPath (const xmlChar *path);
100
+ XMLPUBFUN xmlChar*
101
+ xmlPathToURI (const xmlChar *path);
102
+
103
+ #ifdef __cplusplus
104
+ }
105
+ #endif
106
+ #endif /* __XML_URI_H__ */
@@ -0,0 +1,485 @@
1
+ /*
2
+ * Summary: The DTD validation
3
+ * Description: API for the DTD handling and the validity checking
4
+ *
5
+ * Copy: See Copyright for the status of this software.
6
+ *
7
+ * Author: Daniel Veillard
8
+ */
9
+
10
+
11
+ #ifndef __XML_VALID_H__
12
+ #define __XML_VALID_H__
13
+
14
+ /** DOC_DISABLE */
15
+ #include <libxml/xmlversion.h>
16
+ #include <libxml/xmlerror.h>
17
+ #define XML_TREE_INTERNALS
18
+ #include <libxml/tree.h>
19
+ #undef XML_TREE_INTERNALS
20
+ #include <libxml/list.h>
21
+ #include <libxml/xmlautomata.h>
22
+ #include <libxml/xmlregexp.h>
23
+ /** DOC_ENABLE */
24
+
25
+ #ifdef __cplusplus
26
+ extern "C" {
27
+ #endif
28
+
29
+ /*
30
+ * Validation state added for non-determinist content model.
31
+ */
32
+ typedef struct _xmlValidState xmlValidState;
33
+ typedef xmlValidState *xmlValidStatePtr;
34
+
35
+ /**
36
+ * xmlValidityErrorFunc:
37
+ * @ctx: usually an xmlValidCtxtPtr to a validity error context,
38
+ * but comes from ctxt->userData (which normally contains such
39
+ * a pointer); ctxt->userData can be changed by the user.
40
+ * @msg: the string to format *printf like vararg
41
+ * @...: remaining arguments to the format
42
+ *
43
+ * Callback called when a validity error is found. This is a message
44
+ * oriented function similar to an *printf function.
45
+ */
46
+ typedef void (*xmlValidityErrorFunc) (void *ctx,
47
+ const char *msg,
48
+ ...) LIBXML_ATTR_FORMAT(2,3);
49
+
50
+ /**
51
+ * xmlValidityWarningFunc:
52
+ * @ctx: usually an xmlValidCtxtPtr to a validity error context,
53
+ * but comes from ctxt->userData (which normally contains such
54
+ * a pointer); ctxt->userData can be changed by the user.
55
+ * @msg: the string to format *printf like vararg
56
+ * @...: remaining arguments to the format
57
+ *
58
+ * Callback called when a validity warning is found. This is a message
59
+ * oriented function similar to an *printf function.
60
+ */
61
+ typedef void (*xmlValidityWarningFunc) (void *ctx,
62
+ const char *msg,
63
+ ...) LIBXML_ATTR_FORMAT(2,3);
64
+
65
+ /*
66
+ * xmlValidCtxt:
67
+ * An xmlValidCtxt is used for error reporting when validating.
68
+ */
69
+ typedef struct _xmlValidCtxt xmlValidCtxt;
70
+ typedef xmlValidCtxt *xmlValidCtxtPtr;
71
+ struct _xmlValidCtxt {
72
+ void *userData; /* user specific data block */
73
+ xmlValidityErrorFunc error; /* the callback in case of errors */
74
+ xmlValidityWarningFunc warning; /* the callback in case of warning */
75
+
76
+ /* Node analysis stack used when validating within entities */
77
+ xmlNodePtr node; /* Current parsed Node */
78
+ int nodeNr; /* Depth of the parsing stack */
79
+ int nodeMax; /* Max depth of the parsing stack */
80
+ xmlNodePtr *nodeTab; /* array of nodes */
81
+
82
+ unsigned int flags; /* internal flags */
83
+ xmlDocPtr doc; /* the document */
84
+ int valid; /* temporary validity check result */
85
+
86
+ /* state state used for non-determinist content validation */
87
+ xmlValidState *vstate; /* current state */
88
+ int vstateNr; /* Depth of the validation stack */
89
+ int vstateMax; /* Max depth of the validation stack */
90
+ xmlValidState *vstateTab; /* array of validation states */
91
+
92
+ #ifdef LIBXML_REGEXP_ENABLED
93
+ xmlAutomataPtr am; /* the automata */
94
+ xmlAutomataStatePtr state; /* used to build the automata */
95
+ #else
96
+ void *am;
97
+ void *state;
98
+ #endif
99
+ };
100
+
101
+ /*
102
+ * ALL notation declarations are stored in a table.
103
+ * There is one table per DTD.
104
+ */
105
+
106
+ typedef struct _xmlHashTable xmlNotationTable;
107
+ typedef xmlNotationTable *xmlNotationTablePtr;
108
+
109
+ /*
110
+ * ALL element declarations are stored in a table.
111
+ * There is one table per DTD.
112
+ */
113
+
114
+ typedef struct _xmlHashTable xmlElementTable;
115
+ typedef xmlElementTable *xmlElementTablePtr;
116
+
117
+ /*
118
+ * ALL attribute declarations are stored in a table.
119
+ * There is one table per DTD.
120
+ */
121
+
122
+ typedef struct _xmlHashTable xmlAttributeTable;
123
+ typedef xmlAttributeTable *xmlAttributeTablePtr;
124
+
125
+ /*
126
+ * ALL IDs attributes are stored in a table.
127
+ * There is one table per document.
128
+ */
129
+
130
+ typedef struct _xmlHashTable xmlIDTable;
131
+ typedef xmlIDTable *xmlIDTablePtr;
132
+
133
+ /*
134
+ * ALL Refs attributes are stored in a table.
135
+ * There is one table per document.
136
+ */
137
+
138
+ typedef struct _xmlHashTable xmlRefTable;
139
+ typedef xmlRefTable *xmlRefTablePtr;
140
+
141
+ /* Notation */
142
+ XML_DEPRECATED
143
+ XMLPUBFUN xmlNotationPtr
144
+ xmlAddNotationDecl (xmlValidCtxtPtr ctxt,
145
+ xmlDtdPtr dtd,
146
+ const xmlChar *name,
147
+ const xmlChar *PublicID,
148
+ const xmlChar *SystemID);
149
+ XML_DEPRECATED
150
+ XMLPUBFUN xmlNotationTablePtr
151
+ xmlCopyNotationTable (xmlNotationTablePtr table);
152
+ XML_DEPRECATED
153
+ XMLPUBFUN void
154
+ xmlFreeNotationTable (xmlNotationTablePtr table);
155
+ #ifdef LIBXML_OUTPUT_ENABLED
156
+ XML_DEPRECATED
157
+ XMLPUBFUN void
158
+ xmlDumpNotationDecl (xmlBufferPtr buf,
159
+ xmlNotationPtr nota);
160
+ /* XML_DEPRECATED, still used in lxml */
161
+ XMLPUBFUN void
162
+ xmlDumpNotationTable (xmlBufferPtr buf,
163
+ xmlNotationTablePtr table);
164
+ #endif /* LIBXML_OUTPUT_ENABLED */
165
+
166
+ /* Element Content */
167
+ /* the non Doc version are being deprecated */
168
+ XML_DEPRECATED
169
+ XMLPUBFUN xmlElementContentPtr
170
+ xmlNewElementContent (const xmlChar *name,
171
+ xmlElementContentType type);
172
+ XML_DEPRECATED
173
+ XMLPUBFUN xmlElementContentPtr
174
+ xmlCopyElementContent (xmlElementContentPtr content);
175
+ XML_DEPRECATED
176
+ XMLPUBFUN void
177
+ xmlFreeElementContent (xmlElementContentPtr cur);
178
+ /* the new versions with doc argument */
179
+ XML_DEPRECATED
180
+ XMLPUBFUN xmlElementContentPtr
181
+ xmlNewDocElementContent (xmlDocPtr doc,
182
+ const xmlChar *name,
183
+ xmlElementContentType type);
184
+ XML_DEPRECATED
185
+ XMLPUBFUN xmlElementContentPtr
186
+ xmlCopyDocElementContent(xmlDocPtr doc,
187
+ xmlElementContentPtr content);
188
+ XML_DEPRECATED
189
+ XMLPUBFUN void
190
+ xmlFreeDocElementContent(xmlDocPtr doc,
191
+ xmlElementContentPtr cur);
192
+ XML_DEPRECATED
193
+ XMLPUBFUN void
194
+ xmlSnprintfElementContent(char *buf,
195
+ int size,
196
+ xmlElementContentPtr content,
197
+ int englob);
198
+ #ifdef LIBXML_OUTPUT_ENABLED
199
+ XML_DEPRECATED
200
+ XMLPUBFUN void
201
+ xmlSprintfElementContent(char *buf,
202
+ xmlElementContentPtr content,
203
+ int englob);
204
+ #endif /* LIBXML_OUTPUT_ENABLED */
205
+
206
+ /* Element */
207
+ XML_DEPRECATED
208
+ XMLPUBFUN xmlElementPtr
209
+ xmlAddElementDecl (xmlValidCtxtPtr ctxt,
210
+ xmlDtdPtr dtd,
211
+ const xmlChar *name,
212
+ xmlElementTypeVal type,
213
+ xmlElementContentPtr content);
214
+ XML_DEPRECATED
215
+ XMLPUBFUN xmlElementTablePtr
216
+ xmlCopyElementTable (xmlElementTablePtr table);
217
+ XML_DEPRECATED
218
+ XMLPUBFUN void
219
+ xmlFreeElementTable (xmlElementTablePtr table);
220
+ #ifdef LIBXML_OUTPUT_ENABLED
221
+ XML_DEPRECATED
222
+ XMLPUBFUN void
223
+ xmlDumpElementTable (xmlBufferPtr buf,
224
+ xmlElementTablePtr table);
225
+ XML_DEPRECATED
226
+ XMLPUBFUN void
227
+ xmlDumpElementDecl (xmlBufferPtr buf,
228
+ xmlElementPtr elem);
229
+ #endif /* LIBXML_OUTPUT_ENABLED */
230
+
231
+ /* Enumeration */
232
+ XML_DEPRECATED
233
+ XMLPUBFUN xmlEnumerationPtr
234
+ xmlCreateEnumeration (const xmlChar *name);
235
+ /* XML_DEPRECATED, needed for custom attributeDecl SAX handler */
236
+ XMLPUBFUN void
237
+ xmlFreeEnumeration (xmlEnumerationPtr cur);
238
+ XML_DEPRECATED
239
+ XMLPUBFUN xmlEnumerationPtr
240
+ xmlCopyEnumeration (xmlEnumerationPtr cur);
241
+
242
+ /* Attribute */
243
+ XML_DEPRECATED
244
+ XMLPUBFUN xmlAttributePtr
245
+ xmlAddAttributeDecl (xmlValidCtxtPtr ctxt,
246
+ xmlDtdPtr dtd,
247
+ const xmlChar *elem,
248
+ const xmlChar *name,
249
+ const xmlChar *ns,
250
+ xmlAttributeType type,
251
+ xmlAttributeDefault def,
252
+ const xmlChar *defaultValue,
253
+ xmlEnumerationPtr tree);
254
+ XML_DEPRECATED
255
+ XMLPUBFUN xmlAttributeTablePtr
256
+ xmlCopyAttributeTable (xmlAttributeTablePtr table);
257
+ XML_DEPRECATED
258
+ XMLPUBFUN void
259
+ xmlFreeAttributeTable (xmlAttributeTablePtr table);
260
+ #ifdef LIBXML_OUTPUT_ENABLED
261
+ XML_DEPRECATED
262
+ XMLPUBFUN void
263
+ xmlDumpAttributeTable (xmlBufferPtr buf,
264
+ xmlAttributeTablePtr table);
265
+ XML_DEPRECATED
266
+ XMLPUBFUN void
267
+ xmlDumpAttributeDecl (xmlBufferPtr buf,
268
+ xmlAttributePtr attr);
269
+ #endif /* LIBXML_OUTPUT_ENABLED */
270
+
271
+ /* IDs */
272
+ XMLPUBFUN int
273
+ xmlAddIDSafe (xmlAttrPtr attr,
274
+ const xmlChar *value);
275
+ XMLPUBFUN xmlIDPtr
276
+ xmlAddID (xmlValidCtxtPtr ctxt,
277
+ xmlDocPtr doc,
278
+ const xmlChar *value,
279
+ xmlAttrPtr attr);
280
+ XMLPUBFUN void
281
+ xmlFreeIDTable (xmlIDTablePtr table);
282
+ XMLPUBFUN xmlAttrPtr
283
+ xmlGetID (xmlDocPtr doc,
284
+ const xmlChar *ID);
285
+ XMLPUBFUN int
286
+ xmlIsID (xmlDocPtr doc,
287
+ xmlNodePtr elem,
288
+ xmlAttrPtr attr);
289
+ XMLPUBFUN int
290
+ xmlRemoveID (xmlDocPtr doc,
291
+ xmlAttrPtr attr);
292
+
293
+ /* IDREFs */
294
+ XML_DEPRECATED
295
+ XMLPUBFUN xmlRefPtr
296
+ xmlAddRef (xmlValidCtxtPtr ctxt,
297
+ xmlDocPtr doc,
298
+ const xmlChar *value,
299
+ xmlAttrPtr attr);
300
+ XML_DEPRECATED
301
+ XMLPUBFUN void
302
+ xmlFreeRefTable (xmlRefTablePtr table);
303
+ XML_DEPRECATED
304
+ XMLPUBFUN int
305
+ xmlIsRef (xmlDocPtr doc,
306
+ xmlNodePtr elem,
307
+ xmlAttrPtr attr);
308
+ XML_DEPRECATED
309
+ XMLPUBFUN int
310
+ xmlRemoveRef (xmlDocPtr doc,
311
+ xmlAttrPtr attr);
312
+ XML_DEPRECATED
313
+ XMLPUBFUN xmlListPtr
314
+ xmlGetRefs (xmlDocPtr doc,
315
+ const xmlChar *ID);
316
+
317
+ /**
318
+ * The public function calls related to validity checking.
319
+ */
320
+ #ifdef LIBXML_VALID_ENABLED
321
+ /* Allocate/Release Validation Contexts */
322
+ XMLPUBFUN xmlValidCtxtPtr
323
+ xmlNewValidCtxt(void);
324
+ XMLPUBFUN void
325
+ xmlFreeValidCtxt(xmlValidCtxtPtr);
326
+
327
+ XML_DEPRECATED
328
+ XMLPUBFUN int
329
+ xmlValidateRoot (xmlValidCtxtPtr ctxt,
330
+ xmlDocPtr doc);
331
+ XML_DEPRECATED
332
+ XMLPUBFUN int
333
+ xmlValidateElementDecl (xmlValidCtxtPtr ctxt,
334
+ xmlDocPtr doc,
335
+ xmlElementPtr elem);
336
+ XML_DEPRECATED
337
+ XMLPUBFUN xmlChar *
338
+ xmlValidNormalizeAttributeValue(xmlDocPtr doc,
339
+ xmlNodePtr elem,
340
+ const xmlChar *name,
341
+ const xmlChar *value);
342
+ XML_DEPRECATED
343
+ XMLPUBFUN xmlChar *
344
+ xmlValidCtxtNormalizeAttributeValue(xmlValidCtxtPtr ctxt,
345
+ xmlDocPtr doc,
346
+ xmlNodePtr elem,
347
+ const xmlChar *name,
348
+ const xmlChar *value);
349
+ XML_DEPRECATED
350
+ XMLPUBFUN int
351
+ xmlValidateAttributeDecl(xmlValidCtxtPtr ctxt,
352
+ xmlDocPtr doc,
353
+ xmlAttributePtr attr);
354
+ XML_DEPRECATED
355
+ XMLPUBFUN int
356
+ xmlValidateAttributeValue(xmlAttributeType type,
357
+ const xmlChar *value);
358
+ XML_DEPRECATED
359
+ XMLPUBFUN int
360
+ xmlValidateNotationDecl (xmlValidCtxtPtr ctxt,
361
+ xmlDocPtr doc,
362
+ xmlNotationPtr nota);
363
+ XMLPUBFUN int
364
+ xmlValidateDtd (xmlValidCtxtPtr ctxt,
365
+ xmlDocPtr doc,
366
+ xmlDtdPtr dtd);
367
+ XML_DEPRECATED
368
+ XMLPUBFUN int
369
+ xmlValidateDtdFinal (xmlValidCtxtPtr ctxt,
370
+ xmlDocPtr doc);
371
+ XMLPUBFUN int
372
+ xmlValidateDocument (xmlValidCtxtPtr ctxt,
373
+ xmlDocPtr doc);
374
+ XMLPUBFUN int
375
+ xmlValidateElement (xmlValidCtxtPtr ctxt,
376
+ xmlDocPtr doc,
377
+ xmlNodePtr elem);
378
+ XML_DEPRECATED
379
+ XMLPUBFUN int
380
+ xmlValidateOneElement (xmlValidCtxtPtr ctxt,
381
+ xmlDocPtr doc,
382
+ xmlNodePtr elem);
383
+ XML_DEPRECATED
384
+ XMLPUBFUN int
385
+ xmlValidateOneAttribute (xmlValidCtxtPtr ctxt,
386
+ xmlDocPtr doc,
387
+ xmlNodePtr elem,
388
+ xmlAttrPtr attr,
389
+ const xmlChar *value);
390
+ XML_DEPRECATED
391
+ XMLPUBFUN int
392
+ xmlValidateOneNamespace (xmlValidCtxtPtr ctxt,
393
+ xmlDocPtr doc,
394
+ xmlNodePtr elem,
395
+ const xmlChar *prefix,
396
+ xmlNsPtr ns,
397
+ const xmlChar *value);
398
+ XML_DEPRECATED
399
+ XMLPUBFUN int
400
+ xmlValidateDocumentFinal(xmlValidCtxtPtr ctxt,
401
+ xmlDocPtr doc);
402
+ XML_DEPRECATED
403
+ XMLPUBFUN int
404
+ xmlValidateNotationUse (xmlValidCtxtPtr ctxt,
405
+ xmlDocPtr doc,
406
+ const xmlChar *notationName);
407
+ #endif /* LIBXML_VALID_ENABLED */
408
+
409
+ XMLPUBFUN int
410
+ xmlIsMixedElement (xmlDocPtr doc,
411
+ const xmlChar *name);
412
+ XMLPUBFUN xmlAttributePtr
413
+ xmlGetDtdAttrDesc (xmlDtdPtr dtd,
414
+ const xmlChar *elem,
415
+ const xmlChar *name);
416
+ XMLPUBFUN xmlAttributePtr
417
+ xmlGetDtdQAttrDesc (xmlDtdPtr dtd,
418
+ const xmlChar *elem,
419
+ const xmlChar *name,
420
+ const xmlChar *prefix);
421
+ XMLPUBFUN xmlNotationPtr
422
+ xmlGetDtdNotationDesc (xmlDtdPtr dtd,
423
+ const xmlChar *name);
424
+ XMLPUBFUN xmlElementPtr
425
+ xmlGetDtdQElementDesc (xmlDtdPtr dtd,
426
+ const xmlChar *name,
427
+ const xmlChar *prefix);
428
+ XMLPUBFUN xmlElementPtr
429
+ xmlGetDtdElementDesc (xmlDtdPtr dtd,
430
+ const xmlChar *name);
431
+
432
+ #ifdef LIBXML_VALID_ENABLED
433
+
434
+ XMLPUBFUN int
435
+ xmlValidGetPotentialChildren(xmlElementContent *ctree,
436
+ const xmlChar **names,
437
+ int *len,
438
+ int max);
439
+
440
+ XMLPUBFUN int
441
+ xmlValidGetValidElements(xmlNode *prev,
442
+ xmlNode *next,
443
+ const xmlChar **names,
444
+ int max);
445
+ XMLPUBFUN int
446
+ xmlValidateNameValue (const xmlChar *value);
447
+ XMLPUBFUN int
448
+ xmlValidateNamesValue (const xmlChar *value);
449
+ XMLPUBFUN int
450
+ xmlValidateNmtokenValue (const xmlChar *value);
451
+ XMLPUBFUN int
452
+ xmlValidateNmtokensValue(const xmlChar *value);
453
+
454
+ #ifdef LIBXML_REGEXP_ENABLED
455
+ /*
456
+ * Validation based on the regexp support
457
+ */
458
+ XML_DEPRECATED
459
+ XMLPUBFUN int
460
+ xmlValidBuildContentModel(xmlValidCtxtPtr ctxt,
461
+ xmlElementPtr elem);
462
+
463
+ XML_DEPRECATED
464
+ XMLPUBFUN int
465
+ xmlValidatePushElement (xmlValidCtxtPtr ctxt,
466
+ xmlDocPtr doc,
467
+ xmlNodePtr elem,
468
+ const xmlChar *qname);
469
+ XML_DEPRECATED
470
+ XMLPUBFUN int
471
+ xmlValidatePushCData (xmlValidCtxtPtr ctxt,
472
+ const xmlChar *data,
473
+ int len);
474
+ XML_DEPRECATED
475
+ XMLPUBFUN int
476
+ xmlValidatePopElement (xmlValidCtxtPtr ctxt,
477
+ xmlDocPtr doc,
478
+ xmlNodePtr elem,
479
+ const xmlChar *qname);
480
+ #endif /* LIBXML_REGEXP_ENABLED */
481
+ #endif /* LIBXML_VALID_ENABLED */
482
+ #ifdef __cplusplus
483
+ }
484
+ #endif
485
+ #endif /* __XML_VALID_H__ */