diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/Makefile.in | 1 | ||||
-rwxr-xr-x | python/generator.py | 109 | ||||
-rw-r--r-- | python/libxml.c | 50 | ||||
-rw-r--r-- | python/libxml.py | 21 | ||||
-rw-r--r-- | python/libxml2-py.c | 1834 | ||||
-rw-r--r-- | python/libxml2-python-api.xml | 12 | ||||
-rwxr-xr-x | python/setup.py | 2 | ||||
-rw-r--r-- | python/tests/Makefile.am | 1 | ||||
-rw-r--r-- | python/tests/Makefile.in | 2 | ||||
-rwxr-xr-x | python/tests/nsdel.py | 62 |
10 files changed, 1503 insertions, 591 deletions
diff --git a/python/Makefile.in b/python/Makefile.in index 4464fa4..08a5540 100644 --- a/python/Makefile.in +++ b/python/Makefile.in @@ -98,6 +98,7 @@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ +BASE_THREAD_LIBS = @BASE_THREAD_LIBS@ C14N_OBJ = @C14N_OBJ@ CATALOG_OBJ = @CATALOG_OBJ@ CC = @CC@ diff --git a/python/generator.py b/python/generator.py index 6144e54..f9a8930 100755 --- a/python/generator.py +++ b/python/generator.py @@ -114,6 +114,7 @@ class docParser: self._data = [] self.in_function = 1 self.function = None + self.function_cond = None self.function_args = [] self.function_descr = None self.function_return = None @@ -122,6 +123,8 @@ class docParser: self.function = attrs['name'] if attrs.has_key('file'): self.function_file = attrs['file'] + elif tag == 'cond': + self._data = [] elif tag == 'info': self._data = [] elif tag == 'arg': @@ -156,7 +159,7 @@ class docParser: if self.function != None: function(self.function, self.function_descr, self.function_return, self.function_args, - self.function_file) + self.function_file, self.function_cond) self.in_function = 0 elif tag == 'arg': if self.in_function == 1: @@ -174,10 +177,16 @@ class docParser: str = str + c if self.in_function == 1: self.function_descr = str + elif tag == 'cond': + str = '' + for c in self._data: + str = str + c + if self.in_function == 1: + self.function_cond = str -def function(name, desc, ret, args, file): - functions[name] = (desc, ret, args, file) +def function(name, desc, ret, args, file, cond): + functions[name] = (desc, ret, args, file, cond) def enum(type, name, value): if not enums.has_key(type): @@ -390,7 +399,7 @@ def print_function_wrapper(name, output, export, include): global skipped_modules try: - (desc, ret, args, file) = functions[name] + (desc, ret, args, file, cond) = functions[name] except: print "failed to get function %s infos" return @@ -486,39 +495,10 @@ def print_function_wrapper(name, output, export, include): unknown_types[ret[0]] = [name] return -1 - if file == "debugXML": - include.write("#ifdef LIBXML_DEBUG_ENABLED\n"); - export.write("#ifdef LIBXML_DEBUG_ENABLED\n"); - output.write("#ifdef LIBXML_DEBUG_ENABLED\n"); - elif file == "HTMLtree" or file == "HTMLparser" or name[0:4] == "html": - include.write("#ifdef LIBXML_HTML_ENABLED\n"); - export.write("#ifdef LIBXML_HTML_ENABLED\n"); - output.write("#ifdef LIBXML_HTML_ENABLED\n"); - elif file == "c14n": - include.write("#ifdef LIBXML_C14N_ENABLED\n"); - export.write("#ifdef LIBXML_C14N_ENABLED\n"); - output.write("#ifdef LIBXML_C14N_ENABLED\n"); - elif file == "xpathInternals" or file == "xpath": - include.write("#ifdef LIBXML_XPATH_ENABLED\n"); - export.write("#ifdef LIBXML_XPATH_ENABLED\n"); - output.write("#ifdef LIBXML_XPATH_ENABLED\n"); - elif file == "xpointer": - include.write("#ifdef LIBXML_XPTR_ENABLED\n"); - export.write("#ifdef LIBXML_XPTR_ENABLED\n"); - output.write("#ifdef LIBXML_XPTR_ENABLED\n"); - elif file == "xinclude": - include.write("#ifdef LIBXML_XINCLUDE_ENABLED\n"); - export.write("#ifdef LIBXML_XINCLUDE_ENABLED\n"); - output.write("#ifdef LIBXML_XINCLUDE_ENABLED\n"); - elif file == "xmlregexp": - include.write("#ifdef LIBXML_REGEXP_ENABLED\n"); - export.write("#ifdef LIBXML_REGEXP_ENABLED\n"); - output.write("#ifdef LIBXML_REGEXP_ENABLED\n"); - elif file == "xmlschemas" or file == "xmlschemastypes" or \ - file == "relaxng": - include.write("#ifdef LIBXML_SCHEMAS_ENABLED\n"); - export.write("#ifdef LIBXML_SCHEMAS_ENABLED\n"); - output.write("#ifdef LIBXML_SCHEMAS_ENABLED\n"); + if cond != None and cond != "": + include.write("#if %s\n" % cond) + export.write("#if %s\n" % cond) + output.write("#if %s\n" % cond) include.write("PyObject * ") include.write("libxml_%s(PyObject *self, PyObject *args);\n" % (name)); @@ -528,17 +508,17 @@ def print_function_wrapper(name, output, export, include): if file == "python": # Those have been manually generated - if name[0:4] == "html": - include.write("#endif /* LIBXML_HTML_ENABLED */\n"); - export.write("#endif /* LIBXML_HTML_ENABLED */\n"); - output.write("#endif /* LIBXML_HTML_ENABLED */\n"); + if cond != None and cond != "": + include.write("#endif\n"); + export.write("#endif\n"); + output.write("#endif\n"); return 1 if file == "python_accessor" and ret[0] != "void" and ret[2] is None: # Those have been manually generated - if name[0:4] == "html": - include.write("#endif /* LIBXML_HTML_ENABLED */\n"); - export.write("#endif /* LIBXML_HTML_ENABLED */\n"); - output.write("#endif /* LIBXML_HTML_ENABLED */\n"); + if cond != None and cond != "": + include.write("#endif\n"); + export.write("#endif\n"); + output.write("#endif\n"); return 1 output.write("PyObject *\n") @@ -563,39 +543,10 @@ def print_function_wrapper(name, output, export, include): output.write(c_call) output.write(ret_convert) output.write("}\n\n") - if file == "debugXML": - include.write("#endif /* LIBXML_DEBUG_ENABLED */\n"); - export.write("#endif /* LIBXML_DEBUG_ENABLED */\n"); - output.write("#endif /* LIBXML_DEBUG_ENABLED */\n"); - elif file == "HTMLtree" or file == "HTMLparser" or name[0:4] == "html": - include.write("#endif /* LIBXML_HTML_ENABLED */\n"); - export.write("#endif /* LIBXML_HTML_ENABLED */\n"); - output.write("#endif /* LIBXML_HTML_ENABLED */\n"); - elif file == "c14n": - include.write("#endif /* LIBXML_C14N_ENABLED */\n"); - export.write("#endif /* LIBXML_C14N_ENABLED */\n"); - output.write("#endif /* LIBXML_C14N_ENABLED */\n"); - elif file == "xpathInternals" or file == "xpath": - include.write("#endif /* LIBXML_XPATH_ENABLED */\n"); - export.write("#endif /* LIBXML_XPATH_ENABLED */\n"); - output.write("#endif /* LIBXML_XPATH_ENABLED */\n"); - elif file == "xpointer": - include.write("#endif /* LIBXML_XPTR_ENABLED */\n"); - export.write("#endif /* LIBXML_XPTR_ENABLED */\n"); - output.write("#endif /* LIBXML_XPTR_ENABLED */\n"); - elif file == "xinclude": - include.write("#endif /* LIBXML_XINCLUDE_ENABLED */\n"); - export.write("#endif /* LIBXML_XINCLUDE_ENABLED */\n"); - output.write("#endif /* LIBXML_XINCLUDE_ENABLED */\n"); - elif file == "xmlregexp": - include.write("#endif /* LIBXML_REGEXP_ENABLED */\n"); - export.write("#endif /* LIBXML_REGEXP_ENABLED */\n"); - output.write("#endif /* LIBXML_REGEXP_ENABLED */\n"); - elif file == "xmlschemas" or file == "xmlschemastypes" or \ - file == "relaxng": - include.write("#endif /* LIBXML_SCHEMAS_ENABLED */\n"); - export.write("#endif /* LIBXML_SCHEMAS_ENABLED */\n"); - output.write("#endif /* LIBXML_SCHEMAS_ENABLED */\n"); + if cond != None and cond != "": + include.write("#endif /* %s */\n" % cond) + export.write("#endif /* %s */\n" % cond) + output.write("#endif /* %s */\n" % cond) return 1 def buildStubs(): @@ -961,7 +912,7 @@ def buildWrappers(): for name in functions.keys(): found = 0; - (desc, ret, args, file) = functions[name] + (desc, ret, args, file, cond) = functions[name] for type in ctypes: classe = classes_type[type][2] diff --git a/python/libxml.c b/python/libxml.c index b18f887..8fc63f8 100644 --- a/python/libxml.c +++ b/python/libxml.c @@ -2661,6 +2661,55 @@ libxml_xmlNodeGetNsDefs(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) } PyObject * +libxml_xmlNodeRemoveNsDef(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) +{ + PyObject *py_retval; + xmlNsPtr ns, prev; + xmlNodePtr node; + PyObject *pyobj_node; + xmlChar *href; + xmlNsPtr c_retval; + + if (!PyArg_ParseTuple + (args, (char *) "Oz:xmlNodeRemoveNsDef", &pyobj_node, &href)) + return (NULL); + node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); + ns = NULL; + + if ((node == NULL) || (node->type != XML_ELEMENT_NODE)) { + Py_INCREF(Py_None); + return (Py_None); + } + + if (href == NULL) { + ns = node->nsDef; + node->nsDef = NULL; + c_retval = 0; + } + else { + prev = NULL; + ns = node->nsDef; + while (ns != NULL) { + if (xmlStrEqual(ns->href, href)) { + if (prev != NULL) + prev->next = ns->next; + else + node->nsDef = ns->next; + ns->next = NULL; + c_retval = 0; + break; + } + prev = ns; + ns = ns->next; + } + } + + c_retval = ns; + py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); + return (py_retval); +} + +PyObject * libxml_xmlNodeGetNs(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) { PyObject *py_retval; @@ -3640,6 +3689,7 @@ static PyMethodDef libxmlMethods[] = { {(char *) "type", libxml_type, METH_VARARGS, NULL}, {(char *) "doc", libxml_doc, METH_VARARGS, NULL}, {(char *) "xmlNewNode", libxml_xmlNewNode, METH_VARARGS, NULL}, + {(char *) "xmlNodeRemoveNsDef", libxml_xmlNodeRemoveNsDef, METH_VARARGS, NULL}, {(char *)"xmlSetValidErrors", libxml_xmlSetValidErrors, METH_VARARGS, NULL}, {(char *)"xmlFreeValidCtxt", libxml_xmlFreeValidCtxt, METH_VARARGS, NULL}, #ifdef LIBXML_OUTPUT_ENABLED diff --git a/python/libxml.py b/python/libxml.py index 2eca71e..86bdd92 100644 --- a/python/libxml.py +++ b/python/libxml.py @@ -429,6 +429,27 @@ class xmlCore: def xpathEval2(self, expr): return self.xpathEval(expr) + # Remove namespaces + def removeNsDef(self, href): + """ + Remove a namespace definition from a node. If href is None, + remove all of the ns definitions on that node. The removed + namespaces are returned as a linked list. + + Note: If any child nodes referred to the removed namespaces, + they will be left with dangling links. You should call + renciliateNs() to fix those pointers. + + Note: This method does not free memory taken by the ns + definitions. You will need to free it manually with the + freeNsList() method on the returns xmlNs object. + """ + + ret = libxml2mod.xmlNodeRemoveNsDef(self._o, href) + if ret is None:return None + __tmp = xmlNs(_obj=ret) + return __tmp + # support for python2 iterators def walk_depth_first(self): return xmlCoreDepthFirstItertor(self) diff --git a/python/libxml2-py.c b/python/libxml2-py.c index f0821d2..598f238 100644 --- a/python/libxml2-py.c +++ b/python/libxml2-py.c @@ -24,6 +24,7 @@ libxml_xmlGetDocEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsBopomofo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -38,7 +39,8 @@ libxml_xmlUCSIsBopomofo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNsLookup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -56,7 +58,7 @@ libxml_xmlXPathNsLookup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlStrstr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -72,6 +74,7 @@ libxml_xmlStrstr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderForFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -88,6 +91,8 @@ libxml_xmlReaderForFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderExpand(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -104,6 +109,7 @@ libxml_xmlTextReaderExpand(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlFreeParserInputBuffer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserInputBufferPtr in; @@ -118,6 +124,7 @@ libxml_xmlFreeParserInputBuffer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMathematicalAlphanumericSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -132,7 +139,8 @@ libxml_xmlUCSIsMathematicalAlphanumericSymbols(PyObject *self ATTRIBUTE_UNUSED, return(py_retval); } -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -151,7 +159,8 @@ libxml_xmlDebugDumpNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsHangulJamo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -166,7 +175,8 @@ libxml_xmlUCSIsHangulJamo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaWhiteSpaceReplace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -181,7 +191,8 @@ libxml_xmlSchemaWhiteSpaceReplace(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_FTP_ENABLED) PyObject * libxml_xmlNanoFTPCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -190,6 +201,8 @@ libxml_xmlNanoFTPCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBU return(Py_None); } +#endif /* defined(LIBXML_FTP_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateOneElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -212,6 +225,7 @@ libxml_xmlValidateOneElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlGetID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -229,6 +243,7 @@ libxml_xmlGetID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMalayalam(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -243,7 +258,8 @@ libxml_xmlUCSIsMalayalam(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlXPathInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -252,8 +268,8 @@ libxml_xmlXPathInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UN return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlRelaxNGParserCtxtPtr ctxt; @@ -268,7 +284,7 @@ libxml_xmlRelaxNGFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlCheckLanguageID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -283,7 +299,7 @@ libxml_xmlCheckLanguageID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaSetValidOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -301,7 +317,8 @@ libxml_xmlSchemaSetValidOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidCtxtNormalizeAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -326,6 +343,7 @@ libxml_xmlValidCtxtNormalizeAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyOb return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlFreeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNsPtr cur; @@ -340,7 +358,7 @@ libxml_xmlFreeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNormalizeFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -356,7 +374,7 @@ libxml_xmlXPathNormalizeFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlGetNoNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -406,6 +424,7 @@ libxml_xmlNodeAddContentLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlRegisterDefaultOutputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -414,7 +433,8 @@ libxml_xmlRegisterDefaultOutputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObje return(Py_None); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_htmlNodeDumpFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * out; @@ -435,8 +455,8 @@ libxml_htmlNodeDumpFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathModValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -451,8 +471,8 @@ libxml_xmlXPathModValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPTR_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPTR_ENABLED) PyObject * libxml_xmlXPtrRangeToFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -468,7 +488,8 @@ libxml_xmlXPtrRangeToFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPTR_ENABLED */ +#endif /* defined(LIBXML_XPTR_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogIsEmpty(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -485,6 +506,8 @@ libxml_xmlCatalogIsEmpty(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderClose(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -501,6 +524,8 @@ libxml_xmlTextReaderClose(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlLoadSGMLSuperCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -515,6 +540,7 @@ libxml_xmlLoadSGMLSuperCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * libxml_xmlCopyChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -531,7 +557,7 @@ libxml_xmlCopyChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaNewMemParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -547,7 +573,7 @@ libxml_xmlSchemaNewMemParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlGetDtdQElementDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -566,6 +592,7 @@ libxml_xmlGetDtdQElementDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) PyObject * libxml_xmlValidatePopElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -589,7 +616,8 @@ libxml_xmlValidatePopElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathLocalNameFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -605,7 +633,8 @@ libxml_xmlXPathLocalNameFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlParserHandleReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -620,6 +649,8 @@ libxml_xmlParserHandleReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } +#endif /* defined(LIBXML_LEGACY_ENABLED) */ +#if defined(LIBXML_HTTP_ENABLED) PyObject * libxml_xmlNanoHTTPInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -628,6 +659,7 @@ libxml_xmlNanoHTTPInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE return(Py_None); } +#endif /* defined(LIBXML_HTTP_ENABLED) */ PyObject * libxml_xmlCopyNamespaceList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -644,6 +676,7 @@ libxml_xmlCopyNamespaceList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSpecials(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -658,6 +691,7 @@ libxml_xmlUCSIsSpecials(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseCDSect(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -672,6 +706,7 @@ libxml_xmlParseCDSect(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLatinExtendedB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -686,6 +721,8 @@ libxml_xmlUCSIsLatinExtendedB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLatinExtendedA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -700,6 +737,8 @@ libxml_xmlUCSIsLatinExtendedA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlCopyDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -716,6 +755,8 @@ libxml_xmlCopyDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlNodeListGetRawString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -736,6 +777,7 @@ libxml_xmlNodeListGetRawString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) */ PyObject * libxml_xmlErrorGetLine(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -773,7 +815,7 @@ libxml_xmlNewDocNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlParseDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -789,8 +831,8 @@ libxml_htmlParseDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGInitTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { PyObject *py_retval; @@ -801,7 +843,8 @@ libxml_xmlRelaxNGInitTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRI return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMiscellaneousMathematicalSymbolsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -816,7 +859,8 @@ libxml_xmlUCSIsMiscellaneousMathematicalSymbolsA(PyObject *self ATTRIBUTE_UNUSED return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathFreeParserContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -831,7 +875,7 @@ libxml_xmlXPathFreeParserContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlURIGetAuthority(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -873,7 +917,7 @@ libxml_xmlStrcat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlSchemaParserCtxtPtr ctxt; @@ -888,7 +932,8 @@ libxml_xmlSchemaFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderGetParserLineNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -905,6 +950,8 @@ libxml_xmlTextReaderGetParserLineNumber(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsKhmerSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -919,6 +966,7 @@ libxml_xmlUCSIsKhmerSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseMarkupDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -951,6 +999,7 @@ libxml_xmlHasNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlAddPrevSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -970,6 +1019,7 @@ libxml_xmlAddPrevSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlGetDtdAttrDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -988,7 +1038,7 @@ libxml_xmlGetDtdAttrDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlGetMetaEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1005,7 +1055,8 @@ libxml_htmlGetMetaEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsEnclosedCJKLettersandMonths(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1020,6 +1071,7 @@ libxml_xmlUCSIsEnclosedCJKLettersandMonths(PyObject *self ATTRIBUTE_UNUSED, PyOb return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlGetIntSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1044,6 +1096,7 @@ libxml_xmlCleanupInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateRoot(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1063,6 +1116,7 @@ libxml_xmlValidateRoot(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlNormalizeURIPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1077,6 +1131,7 @@ libxml_xmlNormalizeURIPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstXmlVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1093,6 +1148,8 @@ libxml_xmlTextReaderConstXmlVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCombiningDiacriticalMarksforSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1107,6 +1164,7 @@ libxml_xmlUCSIsCombiningDiacriticalMarksforSymbols(PyObject *self ATTRIBUTE_UNUS return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParserInputBufferRead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1124,6 +1182,7 @@ libxml_xmlParserInputBufferRead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#if defined(LIBXML_HTTP_ENABLED) PyObject * libxml_xmlIOHTTPMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1138,7 +1197,8 @@ libxml_xmlIOHTTPMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_HTTP_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNewFloat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1153,7 +1213,8 @@ libxml_xmlXPathNewFloat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatCc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1168,6 +1229,7 @@ libxml_xmlUCSIsCatCc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlURISetServer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlURIPtr URI; @@ -1184,6 +1246,7 @@ libxml_xmlURISetServer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSpacingModifierLetters(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1198,8 +1261,10 @@ libxml_xmlUCSIsSpacingModifierLetters(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } -#ifdef LIBXML_HTML_ENABLED -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) +#endif +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsHighPrivateUseSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1214,6 +1279,7 @@ libxml_xmlUCSIsHighPrivateUseSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -1222,6 +1288,7 @@ libxml_xmlDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsBraillePatterns(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1236,6 +1303,7 @@ libxml_xmlUCSIsBraillePatterns(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseAttValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1269,7 +1337,7 @@ libxml_xmlStringGetNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlHandleOmittedElem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1284,8 +1352,8 @@ libxml_htmlHandleOmittedElem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathTrueFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -1301,7 +1369,8 @@ libxml_xmlXPathTrueFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogAdd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1318,6 +1387,8 @@ libxml_xmlCatalogAdd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCombiningDiacriticalMarks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1332,7 +1403,8 @@ libxml_xmlUCSIsCombiningDiacriticalMarks(PyObject *self ATTRIBUTE_UNUSED, PyObje return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathEqualValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1349,7 +1421,7 @@ libxml_xmlXPathEqualValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlCtxtUseOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1367,6 +1439,7 @@ libxml_xmlCtxtUseOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsShavian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1381,6 +1454,8 @@ libxml_xmlUCSIsShavian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsHebrew(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1395,7 +1470,8 @@ libxml_xmlUCSIsHebrew(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathLangFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -1411,8 +1487,8 @@ libxml_xmlXPathLangFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaValidateDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1432,7 +1508,7 @@ libxml_xmlSchemaValidateDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlCopyError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1452,7 +1528,7 @@ libxml_xmlCopyError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGValidateDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1472,7 +1548,8 @@ libxml_xmlRelaxNGValidateDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlNodeSetSpacePreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr cur; @@ -1488,6 +1565,8 @@ libxml_xmlNodeSetSpacePreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } +#endif /* defined(LIBXML_TREE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsArmenian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1502,7 +1581,8 @@ libxml_xmlUCSIsArmenian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCastNodeToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1519,7 +1599,7 @@ libxml_xmlXPathCastNodeToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlUTF8Size(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1601,7 +1681,7 @@ libxml_xmlNewReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNewValueTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1618,7 +1698,8 @@ libxml_xmlXPathNewValueTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSupplementalMathematicalOperators(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1633,6 +1714,8 @@ libxml_xmlUCSIsSupplementalMathematicalOperators(PyObject *self ATTRIBUTE_UNUSED return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlOutputBufferWriteString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1650,6 +1733,8 @@ libxml_xmlOutputBufferWriteString(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1672,6 +1757,7 @@ libxml_xmlValidateDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlIsBlank(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1686,7 +1772,7 @@ libxml_xmlIsBlank(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPTR_ENABLED +#if defined(LIBXML_XPTR_ENABLED) PyObject * libxml_xmlXPtrNewLocationSetNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1706,7 +1792,8 @@ libxml_xmlXPtrNewLocationSetNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#endif /* LIBXML_XPTR_ENABLED */ +#endif /* defined(LIBXML_XPTR_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCombiningMarksforSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1721,6 +1808,8 @@ libxml_xmlUCSIsCombiningMarksforSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1743,6 +1832,7 @@ libxml_xmlValidateElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlPopInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { PyObject *py_retval; @@ -1753,6 +1843,7 @@ libxml_xmlPopInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTR return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLao(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1767,6 +1858,8 @@ libxml_xmlUCSIsLao(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlNewDocFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1783,7 +1876,8 @@ libxml_xmlNewDocFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_TREE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1803,8 +1897,8 @@ libxml_htmlReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNodeSetFreeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNsPtr ns; @@ -1819,7 +1913,8 @@ libxml_xmlXPathNodeSetFreeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderHasAttributes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1836,6 +1931,8 @@ libxml_xmlTextReaderHasAttributes(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsGothic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1850,6 +1947,8 @@ libxml_xmlUCSIsGothic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlNodeDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlOutputBufferPtr buf; @@ -1873,7 +1972,8 @@ libxml_xmlNodeDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathRegisteredFuncsCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathContextPtr ctxt; @@ -1888,7 +1988,8 @@ libxml_xmlXPathRegisteredFuncsCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsBlock(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1904,6 +2005,8 @@ libxml_xmlUCSIsBlock(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderMoveToNextAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1920,6 +2023,8 @@ libxml_xmlTextReaderMoveToNextAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatNd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1934,6 +2039,7 @@ libxml_xmlUCSIsCatNd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseSDDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1950,6 +2056,7 @@ libxml_xmlParseSDDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderNewWalker(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1969,6 +2076,8 @@ libxml_xmlReaderNewWalker(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatNl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1983,6 +2092,8 @@ libxml_xmlUCSIsCatNl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -1997,6 +2108,7 @@ libxml_xmlUCSIsCatNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlSkipBlankChars(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2013,6 +2125,7 @@ libxml_xmlSkipBlankChars(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateNmtokenValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2027,6 +2140,8 @@ libxml_xmlValidateNmtokenValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlGetNodePath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2043,7 +2158,8 @@ libxml_xmlGetNodePath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_htmlDocContentDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlOutputBufferPtr buf; @@ -2062,8 +2178,8 @@ libxml_htmlDocContentDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathPopBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2080,7 +2196,7 @@ libxml_xmlXPathPopBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlIsIdeographic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2095,6 +2211,7 @@ libxml_xmlIsIdeographic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLatinExtendedAdditional(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2109,6 +2226,7 @@ libxml_xmlUCSIsLatinExtendedAdditional(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlURISetAuthority(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlURIPtr URI; @@ -2125,7 +2243,7 @@ libxml_xmlURISetAuthority(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGValidatePushCData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2144,7 +2262,7 @@ libxml_xmlRelaxNGValidatePushCData(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlGetLastError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { PyObject *py_retval; @@ -2172,6 +2290,7 @@ libxml_xmlEncodeEntitiesReentrant(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlRemoveProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2188,6 +2307,8 @@ libxml_xmlRemoveProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlACatalogDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlCatalogPtr catal; @@ -2205,6 +2326,7 @@ libxml_xmlACatalogDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ PyObject * libxml_xmlReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2221,6 +2343,7 @@ libxml_xmlReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsNumberForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2235,6 +2358,7 @@ libxml_xmlUCSIsNumberForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlStrncmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2251,6 +2375,7 @@ libxml_xmlStrncmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogGetPublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2265,6 +2390,8 @@ libxml_xmlCatalogGetPublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlSaveFormatFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2283,6 +2410,7 @@ libxml_xmlSaveFormatFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ PyObject * libxml_xmlParseXMLDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -2311,7 +2439,7 @@ libxml_xmlNewComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2328,7 +2456,8 @@ libxml_xmlRelaxNGNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsKatakana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2343,6 +2472,8 @@ libxml_xmlUCSIsKatakana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsHalfwidthandFullwidthForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2357,6 +2488,8 @@ libxml_xmlUCSIsHalfwidthandFullwidthForms(PyObject *self ATTRIBUTE_UNUSED, PyObj return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateNamesValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2371,6 +2504,7 @@ libxml_xmlValidateNamesValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlParseURIReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2388,7 +2522,7 @@ libxml_xmlParseURIReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathOrderDocElems(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2405,7 +2539,8 @@ libxml_xmlXPathOrderDocElems(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsGurmukhi(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2420,6 +2555,7 @@ libxml_xmlUCSIsGurmukhi(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_namePush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2437,6 +2573,7 @@ libxml_namePush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) PyObject * libxml_xmlNodeSetBase(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr cur; @@ -2452,6 +2589,8 @@ libxml_xmlNodeSetBase(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlTextReaderRelaxNGSetSchema(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2471,7 +2610,8 @@ libxml_xmlTextReaderRelaxNGSetSchema(PyObject *self ATTRIBUTE_UNUSED, PyObject * return(py_retval); } -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpAttr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -2490,7 +2630,8 @@ libxml_xmlDebugDumpAttr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlCleanupOutputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -2499,6 +2640,8 @@ libxml_xmlCleanupOutputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathSetContextNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathContextPtr ctxt; @@ -2516,6 +2659,8 @@ libxml_xmlXPathSetContextNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlSaveFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2534,6 +2679,8 @@ libxml_xmlSaveFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathGetFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2550,7 +2697,8 @@ libxml_xmlXPathGetFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpOneNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -2569,7 +2717,7 @@ libxml_xmlDebugDumpOneNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) */ PyObject * libxml_xmlNewNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2603,6 +2751,7 @@ libxml_xmlStrcasestr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderReadState(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2619,6 +2768,8 @@ libxml_xmlTextReaderReadState(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsHangulSyllables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2633,6 +2784,8 @@ libxml_xmlUCSIsHangulSyllables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlValidateQName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2648,7 +2801,8 @@ libxml_xmlValidateQName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCompareValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2667,7 +2821,8 @@ libxml_xmlXPathCompareValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSyriac(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2682,6 +2837,7 @@ libxml_xmlUCSIsSyriac(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlStrQEqual(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2713,6 +2869,7 @@ libxml_xmlBuildURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderGetParserColumnNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2729,7 +2886,8 @@ libxml_xmlTextReaderGetParserColumnNumber(PyObject *self ATTRIBUTE_UNUSED, PyObj return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_valuePop(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2746,8 +2904,8 @@ libxml_valuePop(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathContainsFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -2763,8 +2921,8 @@ libxml_xmlXPathContainsFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlCtxtUseOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2782,7 +2940,8 @@ libxml_htmlCtxtUseOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogConvert(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { PyObject *py_retval; @@ -2793,20 +2952,32 @@ libxml_xmlCatalogConvert(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBU return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) PyObject * -libxml_xmlCreateDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { +libxml_xmlValidatePushElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; - xmlParserCtxtPtr c_retval; - xmlChar * cur; + int c_retval; + xmlValidCtxtPtr ctxt; + PyObject *pyobj_ctxt; + xmlDocPtr doc; + PyObject *pyobj_doc; + xmlNodePtr elem; + PyObject *pyobj_elem; + xmlChar * qname; - if (!PyArg_ParseTuple(args, (char *)"z:xmlCreateDocParserCtxt", &cur)) + if (!PyArg_ParseTuple(args, (char *)"OOOz:xmlValidatePushElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &qname)) return(NULL); + ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); + doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); + elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - c_retval = xmlCreateDocParserCtxt(cur); - py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); + c_retval = xmlValidatePushElement(ctxt, doc, elem, qname); + py_retval = libxml_intWrap((int) c_retval); return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) */ PyObject * libxml_xmlResetError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlErrorPtr err; @@ -2821,6 +2992,7 @@ libxml_xmlResetError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsArrows(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2835,6 +3007,8 @@ libxml_xmlUCSIsArrows(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathGetContextSize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2851,6 +3025,8 @@ libxml_xmlXPathGetContextSize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLimbu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2865,6 +3041,7 @@ libxml_xmlUCSIsLimbu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlRemoveID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2902,7 +3079,7 @@ libxml_xmlNewDocPI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathTranslateFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -2918,7 +3095,7 @@ libxml_xmlXPathTranslateFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlNodeGetSpacePreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2943,7 +3120,7 @@ libxml_xmlResetLastError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBU return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlXPathIsNaN(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2958,7 +3135,8 @@ libxml_xmlXPathIsNaN(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateDtdFinal(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2978,6 +3156,7 @@ libxml_xmlValidateDtdFinal(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlParseEncName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -2994,7 +3173,7 @@ libxml_xmlParseEncName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3014,8 +3193,8 @@ libxml_xmlXPathNextAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPTR_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPTR_ENABLED) PyObject * libxml_xmlXPtrEvalRangePredicate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -3030,8 +3209,8 @@ libxml_xmlXPtrEvalRangePredicate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } -#endif /* LIBXML_XPTR_ENABLED */ -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_XPTR_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlAutoCloseTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3052,7 +3231,7 @@ libxml_htmlAutoCloseTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ PyObject * libxml_xmlThrDefLoadExtDtdDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3097,7 +3276,7 @@ libxml_xmlGetDocCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_DEBUG_ENABLED +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpDocumentHead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -3115,8 +3294,8 @@ libxml_xmlDebugDumpDocumentHead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_htmlNodeDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlOutputBufferPtr buf; @@ -3138,8 +3317,8 @@ libxml_htmlNodeDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlParseElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { htmlParserCtxtPtr ctxt; @@ -3154,7 +3333,7 @@ libxml_htmlParseElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ PyObject * libxml_xmlSubstituteEntitiesDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3169,6 +3348,7 @@ libxml_xmlSubstituteEntitiesDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsGreek(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3183,6 +3363,8 @@ libxml_xmlUCSIsGreek(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3204,6 +3386,8 @@ libxml_xmlDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_LEGACY_ENABLED) */ +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlNamespaceParseNSDef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3220,7 +3404,8 @@ libxml_xmlNamespaceParseNSDef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_LEGACY_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCastNumberToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3235,7 +3420,8 @@ libxml_xmlXPathCastNumberToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogRemove(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3250,6 +3436,8 @@ libxml_xmlCatalogRemove(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlOutputBufferWrite(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3268,6 +3456,8 @@ libxml_xmlOutputBufferWrite(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_FTP_ENABLED) PyObject * libxml_xmlIOFTPMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3282,6 +3472,7 @@ libxml_xmlIOFTPMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_FTP_ENABLED) */ PyObject * libxml_xmlParseReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -3296,6 +3487,7 @@ libxml_xmlParseReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_HTTP_ENABLED) PyObject * libxml_xmlNanoHTTPScanProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { char * URL; @@ -3308,6 +3500,8 @@ libxml_xmlNanoHTTPScanProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_HTTP_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatMc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3322,6 +3516,7 @@ libxml_xmlUCSIsCatMc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlStringLenGetNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3340,6 +3535,7 @@ libxml_xmlStringLenGetNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderLocatorBaseURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3356,6 +3552,8 @@ libxml_xmlTextReaderLocatorBaseURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) PyObject * libxml_xmlSetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3377,6 +3575,8 @@ libxml_xmlSetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlSAXDefaultVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3391,6 +3591,8 @@ libxml_xmlSAXDefaultVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_SAX1_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlValidateNotationUse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3411,6 +3613,7 @@ libxml_xmlValidateNotationUse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlGetCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { PyObject *py_retval; @@ -3421,7 +3624,7 @@ libxml_xmlGetCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIB return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlNewDocNoDtD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3437,7 +3640,7 @@ libxml_htmlNewDocNoDtD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ PyObject * libxml_xmlURIEscape(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3452,7 +3655,7 @@ libxml_xmlURIEscape(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_htmlDocContentDumpFormatOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlOutputBufferPtr buf; @@ -3472,7 +3675,7 @@ libxml_htmlDocContentDumpFormatOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ PyObject * libxml_xmlURISetQuery(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlURIPtr URI; @@ -3489,6 +3692,26 @@ libxml_xmlURISetQuery(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) +PyObject * +libxml_xmlTextReaderSchemaValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { + PyObject *py_retval; + int c_retval; + xmlTextReaderPtr reader; + PyObject *pyobj_reader; + char * xsd; + + if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderSchemaValidate", &pyobj_reader, &xsd)) + return(NULL); + reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); + + c_retval = xmlTextReaderSchemaValidate(reader, xsd); + py_retval = libxml_intWrap((int) c_retval); + return(py_retval); +} + +#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsGreekandCoptic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3503,6 +3726,7 @@ libxml_xmlUCSIsGreekandCoptic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlUTF8Strlen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3517,7 +3741,7 @@ libxml_xmlUTF8Strlen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathAddValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -3532,7 +3756,7 @@ libxml_xmlXPathAddValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlStrchr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3563,7 +3787,7 @@ libxml_xmlNewTextLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlXPathIsInf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3578,7 +3802,8 @@ libxml_xmlXPathIsInf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCJKUnifiedIdeographs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3593,6 +3818,8 @@ libxml_xmlUCSIsCJKUnifiedIdeographs(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlValidateName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3608,6 +3835,8 @@ libxml_xmlValidateName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3625,6 +3854,27 @@ libxml_xmlTextReaderConstString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) +PyObject * +libxml_xmlSchemaValidateFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { + PyObject *py_retval; + int c_retval; + xmlSchemaValidCtxtPtr ctxt; + PyObject *pyobj_ctxt; + char * filename; + int options; + + if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlSchemaValidateFile", &pyobj_ctxt, &filename, &options)) + return(NULL); + ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); + + c_retval = xmlSchemaValidateFile(ctxt, filename, options); + py_retval = libxml_intWrap((int) c_retval); + return(py_retval); +} + +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlAddNextSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3644,6 +3894,7 @@ libxml_xmlAddNextSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSupplementalArrowsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3658,6 +3909,8 @@ libxml_xmlUCSIsSupplementalArrowsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSupplementalArrowsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3672,6 +3925,7 @@ libxml_xmlUCSIsSupplementalArrowsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlErrorGetMessage(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3688,9 +3942,9 @@ libxml_xmlErrorGetMessage(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_HTML_ENABLED) +#endif +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathFalseFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -3706,7 +3960,8 @@ libxml_xmlXPathFalseFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderHasValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3723,7 +3978,8 @@ libxml_xmlTextReaderHasValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlRelaxNGDumpTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -3741,8 +3997,8 @@ libxml_xmlRelaxNGDumpTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ -#ifdef LIBXML_REGEXP_ENABLED +#endif /* defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_REGEXP_ENABLED) PyObject * libxml_xmlRegexpPrint(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -3760,7 +4016,8 @@ libxml_xmlRegexpPrint(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_REGEXP_ENABLED */ +#endif /* defined(LIBXML_REGEXP_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { PyObject *py_retval; @@ -3771,6 +4028,7 @@ libxml_xmlNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlURIEscapeStr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3786,7 +4044,7 @@ libxml_xmlURIEscapeStr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCountFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -3802,7 +4060,8 @@ libxml_xmlXPathCountFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderNext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3819,22 +4078,7 @@ libxml_xmlTextReaderNext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -PyObject * -libxml_xmlXPathGetContextNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextNode", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = ctxt->node; - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlParserSetPedantic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -3850,6 +4094,7 @@ libxml_xmlParserSetPedantic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatLu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3864,6 +4109,8 @@ libxml_xmlUCSIsCatLu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatLt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3878,6 +4125,8 @@ libxml_xmlUCSIsCatLt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatLo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3892,6 +4141,7 @@ libxml_xmlUCSIsCatLo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlIsPubidChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3906,6 +4156,7 @@ libxml_xmlIsPubidChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatLm(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3920,6 +4171,8 @@ libxml_xmlUCSIsCatLm(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatLl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3934,6 +4187,7 @@ libxml_xmlUCSIsCatLl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlNewDocProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3952,6 +4206,7 @@ libxml_xmlNewDocProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlLoadACatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3966,7 +4221,8 @@ libxml_xmlLoadACatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_REGEXP_ENABLED +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_REGEXP_ENABLED) PyObject * libxml_xmlRegexpExec(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3984,7 +4240,8 @@ libxml_xmlRegexpExec(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_REGEXP_ENABLED */ +#endif /* defined(LIBXML_REGEXP_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatPe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -3999,6 +4256,7 @@ libxml_xmlUCSIsCatPe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlByteConsumed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4048,6 +4306,7 @@ libxml_xmlURISetScheme(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMiscellaneousSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4062,6 +4321,7 @@ libxml_xmlUCSIsMiscellaneousSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlGetDtdQAttrDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4146,6 +4406,7 @@ libxml_xmlURIUnescapeString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsRunic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4160,6 +4421,7 @@ libxml_xmlUCSIsRunic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlGetParameterEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4195,7 +4457,7 @@ libxml_xmlNewDocTextLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathParseName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4212,7 +4474,7 @@ libxml_xmlXPathParseName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlURISetPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlURIPtr URI; @@ -4262,6 +4524,7 @@ libxml_xmlGetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlACatalogResolveURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4279,6 +4542,8 @@ libxml_xmlACatalogResolveURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsVariationSelectors(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4293,6 +4558,8 @@ libxml_xmlUCSIsVariationSelectors(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlLoadCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4307,7 +4574,8 @@ libxml_xmlLoadCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathEval(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4325,7 +4593,8 @@ libxml_xmlXPathEval(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsTags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4340,6 +4609,7 @@ libxml_xmlUCSIsTags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlNewPI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4355,6 +4625,7 @@ libxml_xmlNewPI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLowSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4369,6 +4640,8 @@ libxml_xmlUCSIsLowSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsOsmanya(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4383,6 +4656,7 @@ libxml_xmlUCSIsOsmanya(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlThrDefDoValidityCheckingDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4397,6 +4671,7 @@ libxml_xmlThrDefDoValidityCheckingDefaultValue(PyObject *self ATTRIBUTE_UNUSED, return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsBoxDrawing(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4411,6 +4686,7 @@ libxml_xmlUCSIsBoxDrawing(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlStrndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4426,6 +4702,7 @@ libxml_xmlStrndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4442,6 +4719,8 @@ libxml_xmlTextReaderIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsByzantineMusicalSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4456,7 +4735,8 @@ libxml_xmlUCSIsByzantineMusicalSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -4465,8 +4745,8 @@ libxml_htmlDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlShellPrintXPathError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { int errorType; @@ -4480,7 +4760,8 @@ libxml_xmlShellPrintXPathError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogResolve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4496,6 +4777,8 @@ libxml_xmlCatalogResolve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4512,7 +4795,8 @@ libxml_xmlTextReaderConstName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4529,7 +4813,8 @@ libxml_xmlSchemaNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsKhmer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4544,6 +4829,7 @@ libxml_xmlUCSIsKhmer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4591,6 +4877,7 @@ libxml_xmlParseVersionNum(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderWalker(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4607,6 +4894,8 @@ libxml_xmlReaderWalker(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderNodeType(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4623,6 +4912,7 @@ libxml_xmlTextReaderNodeType(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlIsBlankNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4639,7 +4929,7 @@ libxml_xmlIsBlankNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGFree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlRelaxNGPtr schema; @@ -4654,7 +4944,7 @@ libxml_xmlRelaxNGFree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlFreeProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlAttrPtr cur; @@ -4684,6 +4974,7 @@ libxml_xmlStrcmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) PyObject * libxml_xmlDocSetRootElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4703,6 +4994,7 @@ libxml_xmlDocSetRootElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */ PyObject * libxml_xmlCheckVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { int version; @@ -4715,7 +5007,7 @@ libxml_xmlCheckVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_REGEXP_ENABLED +#if defined(LIBXML_REGEXP_ENABLED) PyObject * libxml_xmlRegFreeRegexp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlRegexpPtr regexp; @@ -4730,7 +5022,7 @@ libxml_xmlRegFreeRegexp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_REGEXP_ENABLED */ +#endif /* defined(LIBXML_REGEXP_ENABLED) */ PyObject * libxml_xmlSearchNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4751,6 +5043,7 @@ libxml_xmlSearchNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathParserGetContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4767,6 +5060,8 @@ libxml_xmlXPathParserGetContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderReadAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4783,7 +5078,8 @@ libxml_xmlTextReaderReadAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } -#ifdef LIBXML_XINCLUDE_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_XINCLUDE_ENABLED) PyObject * libxml_xmlXIncludeProcessTreeFlags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4801,7 +5097,8 @@ libxml_xmlXIncludeProcessTreeFlags(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } -#endif /* LIBXML_XINCLUDE_ENABLED */ +#endif /* defined(LIBXML_XINCLUDE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsGeorgian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4816,6 +5113,7 @@ libxml_xmlUCSIsGeorgian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParserSetValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -4831,6 +5129,7 @@ libxml_xmlParserSetValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidNormalizeAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4852,6 +5151,7 @@ libxml_xmlValidNormalizeAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlParsePubidLiteral(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4885,6 +5185,7 @@ libxml_xmlNewCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsArabic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4899,6 +5200,8 @@ libxml_xmlUCSIsArabic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMiscellaneousMathematicalSymbolsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4913,6 +5216,8 @@ libxml_xmlUCSIsMiscellaneousMathematicalSymbolsB(PyObject *self ATTRIBUTE_UNUSED return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTTP_ENABLED) PyObject * libxml_xmlNanoHTTPCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -4921,6 +5226,8 @@ libxml_xmlNanoHTTPCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIB return(Py_None); } +#endif /* defined(LIBXML_HTTP_ENABLED) */ +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlParseQuotedString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4937,7 +5244,8 @@ libxml_xmlParseQuotedString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_LEGACY_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCastStringToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4952,8 +5260,8 @@ libxml_xmlXPathCastStringToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNewCString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4968,7 +5276,8 @@ libxml_xmlXPathNewCString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderIsNamespaceDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -4985,6 +5294,7 @@ libxml_xmlTextReaderIsNamespaceDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlStopParser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -5016,6 +5326,7 @@ libxml_xmlReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlACatalogResolveSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5033,29 +5344,22 @@ libxml_xmlACatalogResolveSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * -libxml_xmlValidatePushElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { +libxml_xmlCreateDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlChar * qname; + xmlParserCtxtPtr c_retval; + xmlChar * cur; - if (!PyArg_ParseTuple(args, (char *)"OOOz:xmlValidatePushElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &qname)) + if (!PyArg_ParseTuple(args, (char *)"z:xmlCreateDocParserCtxt", &cur)) return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - c_retval = xmlValidatePushElement(ctxt, doc, elem, qname); - py_retval = libxml_intWrap((int) c_retval); + c_retval = xmlCreateDocParserCtxt(cur); + py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsTaiXuanJingSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5070,7 +5374,8 @@ libxml_xmlUCSIsTaiXuanJingSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_htmlDocDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5090,7 +5395,8 @@ libxml_htmlDocDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlTextReaderRelaxNGValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5108,6 +5414,7 @@ libxml_xmlTextReaderRelaxNGValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlFreeNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr cur; @@ -5122,7 +5429,7 @@ libxml_xmlFreeNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathDivValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -5137,8 +5444,8 @@ libxml_xmlXPathDivValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathPositionFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -5154,7 +5461,8 @@ libxml_xmlXPathPositionFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsTelugu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5169,7 +5477,8 @@ libxml_xmlUCSIsTelugu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlLsCountNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5186,7 +5495,8 @@ libxml_xmlLsCountNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlParseCatalogFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5201,6 +5511,8 @@ libxml_xmlParseCatalogFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathGetFunctionURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5217,6 +5529,8 @@ libxml_xmlXPathGetFunctionURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatMn(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5231,7 +5545,8 @@ libxml_xmlUCSIsCatMn(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGCleanupTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -5240,7 +5555,8 @@ libxml_xmlRelaxNGCleanupTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args AT return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatMe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5255,6 +5571,7 @@ libxml_xmlUCSIsCatMe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlGetEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5269,6 +5586,7 @@ libxml_xmlGetEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlACatalogAdd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5288,6 +5606,7 @@ libxml_xmlACatalogAdd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * libxml_xmlNewNsPropEatName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5323,7 +5642,7 @@ libxml_xmlStrdup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNamespaceURIFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -5339,7 +5658,7 @@ libxml_xmlXPathNamespaceURIFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlCtxtReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5360,6 +5679,7 @@ libxml_xmlCtxtReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderQuoteChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5376,6 +5696,7 @@ libxml_xmlTextReaderQuoteChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlInitCharEncodingHandlers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -5384,7 +5705,7 @@ libxml_xmlInitCharEncodingHandlers(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(Py_None); } -#ifdef LIBXML_REGEXP_ENABLED +#if defined(LIBXML_REGEXP_ENABLED) PyObject * libxml_xmlRegexpCompile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5399,8 +5720,8 @@ libxml_xmlRegexpCompile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_REGEXP_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_REGEXP_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathRegisteredNsCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathContextPtr ctxt; @@ -5415,7 +5736,8 @@ libxml_xmlXPathRegisteredNsCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsKannada(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5430,6 +5752,8 @@ libxml_xmlUCSIsKannada(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5446,6 +5770,8 @@ libxml_xmlTextReaderConstValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_DOCB_ENABLED) PyObject * libxml_docbDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -5454,6 +5780,8 @@ libxml_docbDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } +#endif /* defined(LIBXML_DOCB_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) PyObject * libxml_xmlValidatePushCData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5472,6 +5800,7 @@ libxml_xmlValidatePushCData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) */ PyObject * libxml_xmlErrorGetDomain(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5502,7 +5831,7 @@ libxml_xmlCheckFilename(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathFloorFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -5518,7 +5847,8 @@ libxml_xmlXPathFloorFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsTibetan(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5533,6 +5863,8 @@ libxml_xmlUCSIsTibetan(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlNewGlobalNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5551,7 +5883,8 @@ libxml_xmlNewGlobalNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_LEGACY_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathStringLengthFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -5567,7 +5900,8 @@ libxml_xmlXPathStringLengthFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlDocDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5587,7 +5921,8 @@ libxml_xmlDocDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5607,7 +5942,8 @@ libxml_xmlXPathNextSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCyrillicSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5622,6 +5958,7 @@ libxml_xmlUCSIsCyrillicSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5671,25 +6008,26 @@ libxml_xmlURIGetPort(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * -libxml_htmlSetMetaEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { +libxml_htmlSaveFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; int c_retval; - htmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * encoding; + char * filename; + xmlDocPtr cur; + PyObject *pyobj_cur; - if (!PyArg_ParseTuple(args, (char *)"Oz:htmlSetMetaEncoding", &pyobj_doc, &encoding)) + if (!PyArg_ParseTuple(args, (char *)"zO:htmlSaveFile", &filename, &pyobj_cur)) return(NULL); - doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc); + cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - c_retval = htmlSetMetaEncoding(doc, encoding); + c_retval = htmlSaveFile(filename, cur); py_retval = libxml_intWrap((int) c_retval); return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderCurrentDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5706,6 +6044,7 @@ libxml_xmlTextReaderCurrentDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlParsePITarget(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5769,7 +6108,7 @@ libxml_xmlIsCombining(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5787,7 +6126,8 @@ libxml_htmlReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderNormalization(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5804,7 +6144,8 @@ libxml_xmlTextReaderNormalization(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathEvalExpression(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5822,7 +6163,7 @@ libxml_xmlXPathEvalExpression(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlStrncatNew(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5839,6 +6180,7 @@ libxml_xmlStrncatNew(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogResolvePublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5853,6 +6195,7 @@ libxml_xmlCatalogResolvePublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * libxml_xmlNewCDataBlock(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5887,7 +6230,7 @@ libxml_xmlURIGetServer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_htmlSaveFileFormat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5907,7 +6250,7 @@ libxml_htmlSaveFileFormat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ PyObject * libxml_xmlNodeIsText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5939,7 +6282,7 @@ libxml_xmlParserSetReplaceEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathStringEvalNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5954,7 +6297,7 @@ libxml_xmlXPathStringEvalNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlUTF8Strsize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5970,6 +6313,7 @@ libxml_xmlUTF8Strsize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderStandalone(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -5986,6 +6330,8 @@ libxml_xmlTextReaderStandalone(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlParseStartTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6002,6 +6348,8 @@ libxml_xmlParseStartTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_SAX1_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlSetupParserForBuffer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -6018,6 +6366,8 @@ libxml_xmlSetupParserForBuffer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } +#endif /* defined(LIBXML_SAX1_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlNewTextReaderFilename(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6032,7 +6382,8 @@ libxml_xmlNewTextReaderFilename(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNumberFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -6048,8 +6399,8 @@ libxml_xmlXPathNumberFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlLsOneNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -6067,7 +6418,8 @@ libxml_xmlLsOneNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsGreekExtended(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6082,6 +6434,7 @@ libxml_xmlUCSIsGreekExtended(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlNewDocNodeEatName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6103,6 +6456,7 @@ libxml_xmlNewDocNodeEatName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderForDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6120,6 +6474,29 @@ libxml_xmlReaderForDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +PyObject * +libxml_xmlAddDocEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { + PyObject *py_retval; + xmlEntityPtr c_retval; + xmlDocPtr doc; + PyObject *pyobj_doc; + xmlChar * name; + int type; + xmlChar * ExternalID; + xmlChar * SystemID; + xmlChar * content; + + if (!PyArg_ParseTuple(args, (char *)"Ozizzz:xmlAddDocEntity", &pyobj_doc, &name, &type, &ExternalID, &SystemID, &content)) + return(NULL); + doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); + + c_retval = xmlAddDocEntity(doc, name, type, ExternalID, SystemID, content); + py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); + return(py_retval); +} + +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMyanmar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6134,7 +6511,8 @@ libxml_xmlUCSIsMyanmar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathIsNodeType(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6149,8 +6527,8 @@ libxml_xmlXPathIsNodeType(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathRoot(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -6165,8 +6543,8 @@ libxml_xmlXPathRoot(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathVariableLookup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6184,8 +6562,8 @@ libxml_xmlXPathVariableLookup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextFollowing(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6205,7 +6583,8 @@ libxml_xmlXPathNextFollowing(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsHangulCompatibilityJamo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6220,6 +6599,8 @@ libxml_xmlUCSIsHangulCompatibilityJamo(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlNewTextChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6241,6 +6622,7 @@ libxml_xmlNewTextChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) */ PyObject * libxml_xmlAddChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6260,7 +6642,7 @@ libxml_xmlAddChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathErr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -6276,7 +6658,8 @@ libxml_xmlXPathErr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderDepth(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6293,6 +6676,8 @@ libxml_xmlTextReaderDepth(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsHiragana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6307,7 +6692,8 @@ libxml_xmlUCSIsHiragana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlRelaxNGDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -6325,7 +6711,7 @@ libxml_xmlRelaxNGDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ PyObject * libxml_xmlFreeURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlURIPtr uri; @@ -6340,7 +6726,7 @@ libxml_xmlFreeURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextParent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6360,7 +6746,8 @@ libxml_xmlXPathNextParent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsDevanagari(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6375,6 +6762,7 @@ libxml_xmlUCSIsDevanagari(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlNodeGetContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6391,6 +6779,7 @@ libxml_xmlNodeGetContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderIsEmptyElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6407,6 +6796,8 @@ libxml_xmlTextReaderIsEmptyElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsIPAExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6421,7 +6812,8 @@ libxml_xmlUCSIsIPAExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPTR_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPTR_ENABLED) PyObject * libxml_xmlXPtrNewContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6444,7 +6836,8 @@ libxml_xmlXPtrNewContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPTR_ENABLED */ +#endif /* defined(LIBXML_XPTR_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsYiSyllables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6459,6 +6852,8 @@ libxml_xmlUCSIsYiSyllables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderLookupNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6476,6 +6871,7 @@ libxml_xmlTextReaderLookupNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlNodeGetLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6502,6 +6898,7 @@ libxml_xmlNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUT return(py_retval); } +#if defined(LIBXML_FTP_ENABLED) PyObject * libxml_xmlNanoFTPScanProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { char * URL; @@ -6514,7 +6911,8 @@ libxml_xmlNanoFTPScanProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_FTP_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaFree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlSchemaPtr schema; @@ -6529,7 +6927,8 @@ libxml_xmlSchemaFree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderNextSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6546,6 +6945,7 @@ libxml_xmlTextReaderNextSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlClearParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -6560,6 +6960,7 @@ libxml_xmlClearParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_DEBUG_ENABLED) || defined (LIBXML_HTML_ENABLED) PyObject * libxml_xmlValidateNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6575,6 +6976,7 @@ libxml_xmlValidateNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_DEBUG_ENABLED) || defined (LIBXML_HTML_ENABLED) */ PyObject * libxml_xmlStrlen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6589,7 +6991,7 @@ libxml_xmlStrlen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_DEBUG_ENABLED +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -6607,8 +7009,8 @@ libxml_xmlDebugDumpDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ -#ifdef LIBXML_XPTR_ENABLED +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_XPTR_ENABLED) PyObject * libxml_xmlXPtrEval(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6626,7 +7028,7 @@ libxml_xmlXPtrEval(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPTR_ENABLED */ +#endif /* defined(LIBXML_XPTR_ENABLED) */ PyObject * libxml_xmlPopInput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6643,6 +7045,24 @@ libxml_xmlPopInput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_XPATH_ENABLED) +PyObject * +libxml_xmlXPathBooleanFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { + xmlXPathParserContextPtr ctxt; + PyObject *pyobj_ctxt; + int nargs; + + if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathBooleanFunction", &pyobj_ctxt, &nargs)) + return(NULL); + ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); + + xmlXPathBooleanFunction(ctxt, nargs); + Py_INCREF(Py_None); + return(Py_None); +} + +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderSetParserProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6661,6 +7081,8 @@ libxml_xmlTextReaderSetParserProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderGetRemainder(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6677,6 +7099,8 @@ libxml_xmlTextReaderGetRemainder(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsGujarati(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6691,25 +7115,27 @@ libxml_xmlUCSIsGujarati(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * -libxml_htmlSaveFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { +libxml_htmlSetMetaEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; int c_retval; - char * filename; - xmlDocPtr cur; - PyObject *pyobj_cur; + htmlDocPtr doc; + PyObject *pyobj_doc; + xmlChar * encoding; - if (!PyArg_ParseTuple(args, (char *)"zO:htmlSaveFile", &filename, &pyobj_cur)) + if (!PyArg_ParseTuple(args, (char *)"Oz:htmlSetMetaEncoding", &pyobj_doc, &encoding)) return(NULL); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); + doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc); - c_retval = htmlSaveFile(filename, cur); + c_retval = htmlSetMetaEncoding(doc, encoding); py_retval = libxml_intWrap((int) c_retval); return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6730,6 +7156,8 @@ libxml_xmlReaderNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstPrefix(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6746,6 +7174,8 @@ libxml_xmlTextReaderConstPrefix(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlRecoverDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6760,6 +7190,7 @@ libxml_xmlRecoverDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_SAX1_ENABLED) */ PyObject * libxml_xmlNormalizeWindowsPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6774,7 +7205,7 @@ libxml_xmlNormalizeWindowsPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#ifdef LIBXML_XINCLUDE_ENABLED +#if defined(LIBXML_XINCLUDE_ENABLED) PyObject * libxml_xmlXIncludeProcessTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6791,7 +7222,8 @@ libxml_xmlXIncludeProcessTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XINCLUDE_ENABLED */ +#endif /* defined(LIBXML_XINCLUDE_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlCatalogDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * out; @@ -6806,7 +7238,8 @@ libxml_xmlCatalogDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextDescendantOrSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6826,7 +7259,8 @@ libxml_xmlXPathNextDescendantOrSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlParseNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -6841,6 +7275,7 @@ libxml_xmlParseNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_LEGACY_ENABLED) */ PyObject * libxml_xmlStrcasecmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6856,6 +7291,7 @@ libxml_xmlStrcasecmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderForMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6874,6 +7310,8 @@ libxml_xmlReaderForMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderByteConsumed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6890,6 +7328,7 @@ libxml_xmlTextReaderByteConsumed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlNewDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6909,6 +7348,7 @@ libxml_xmlNewDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsBlockElements(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6923,6 +7363,7 @@ libxml_xmlUCSIsBlockElements(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlNodeGetBase(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6942,7 +7383,7 @@ libxml_xmlNodeGetBase(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextAncestorOrSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6962,8 +7403,8 @@ libxml_xmlXPathNextAncestorOrSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNewString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6978,7 +7419,7 @@ libxml_xmlXPathNewString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlAddSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -6998,6 +7439,7 @@ libxml_xmlAddSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlScanName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7014,6 +7456,7 @@ libxml_xmlScanName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_LEGACY_ENABLED) */ PyObject * libxml_xmlRegisterDefaultInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -7022,7 +7465,7 @@ libxml_xmlRegisterDefaultInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(Py_None); } -#ifdef LIBXML_DEBUG_ENABLED +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -7040,8 +7483,8 @@ libxml_xmlDebugDumpEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextAncestor(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7061,8 +7504,8 @@ libxml_xmlXPathNextAncestor(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCastNumberToBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7077,7 +7520,8 @@ libxml_xmlXPathCastNumberToBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatCs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7092,6 +7536,8 @@ libxml_xmlUCSIsCatCs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatCf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7106,6 +7552,8 @@ libxml_xmlUCSIsCatCf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatCo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7120,6 +7568,8 @@ libxml_xmlUCSIsCatCo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlRecoverMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7136,6 +7586,8 @@ libxml_xmlRecoverMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_SAX1_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderIsDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7152,6 +7604,7 @@ libxml_xmlTextReaderIsDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlParserGetWellFormed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7187,6 +7640,7 @@ libxml_xmlRemoveRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderNewMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7208,6 +7662,8 @@ libxml_xmlReaderNewMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlNewProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7226,6 +7682,7 @@ libxml_xmlNewProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlParserGetDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7250,7 +7707,7 @@ libxml_xmlCleanupCharEncodingHandlers(PyObject *self ATTRIBUTE_UNUSED, PyObject return(Py_None); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGValidatePopElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7273,7 +7730,7 @@ libxml_xmlRelaxNGValidatePopElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlParseEntityRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7290,7 +7747,7 @@ libxml_xmlParseEntityRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlInitAutoClose(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -7299,7 +7756,8 @@ libxml_htmlInitAutoClose(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBU return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderReadOuterXml(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7316,6 +7774,8 @@ libxml_xmlTextReaderReadOuterXml(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsTamil(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7330,7 +7790,8 @@ libxml_xmlUCSIsTamil(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -7346,7 +7807,7 @@ libxml_xmlDebugDumpString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) */ PyObject * libxml_xmlCleanupGlobals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -7355,6 +7816,7 @@ libxml_xmlCleanupGlobals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBU return(Py_None); } +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlEncodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7372,6 +7834,8 @@ libxml_xmlEncodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_LEGACY_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlNewCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7386,6 +7850,7 @@ libxml_xmlNewCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * libxml_xmlStrncasecmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7416,7 +7881,7 @@ libxml_xmlCanonicPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextPrecedingSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7436,7 +7901,8 @@ libxml_xmlXPathNextPrecedingSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -7445,6 +7911,7 @@ libxml_xmlCatalogCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBU return(Py_None); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * libxml_xmlNextChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -7497,6 +7964,7 @@ libxml_xmlParseExtParsedEnt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_FTP_ENABLED) PyObject * libxml_xmlNanoFTPProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { char * host; @@ -7513,6 +7981,7 @@ libxml_xmlNanoFTPProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_FTP_ENABLED) */ PyObject * libxml_xmlStringLenDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7535,6 +8004,7 @@ libxml_xmlStringLenDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCJKUnifiedIdeographsExtensionA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7549,6 +8019,8 @@ libxml_xmlUCSIsCJKUnifiedIdeographsExtensionA(PyObject *self ATTRIBUTE_UNUSED, P return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCJKUnifiedIdeographsExtensionB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7563,7 +8035,8 @@ libxml_xmlUCSIsCJKUnifiedIdeographsExtensionB(PyObject *self ATTRIBUTE_UNUSED, P return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlCreateMemoryParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7580,7 +8053,7 @@ libxml_htmlCreateMemoryParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ PyObject * libxml_xmlIsDigit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7595,6 +8068,7 @@ libxml_xmlIsDigit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogSetDebug(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7609,6 +8083,7 @@ libxml_xmlCatalogSetDebug(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * libxml_xmlParserGetDirectory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7623,7 +8098,7 @@ libxml_xmlParserGetDirectory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaCleanupTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -7632,7 +8107,7 @@ libxml_xmlSchemaCleanupTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATT return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlFreeNsList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNsPtr cur; @@ -7697,7 +8172,7 @@ libxml_nodePop(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextDescendant(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7717,8 +8192,8 @@ libxml_xmlXPathNextDescendant(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNewNodeSet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7735,8 +8210,8 @@ libxml_xmlXPathNewNodeSet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7751,7 +8226,8 @@ libxml_xmlSchemaNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlInitializeCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -7760,6 +8236,8 @@ libxml_xmlInitializeCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTR return(Py_None); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlParseEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7774,6 +8252,7 @@ libxml_xmlParseEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_SAX1_ENABLED) */ PyObject * libxml_xmlDocGetRootElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7790,7 +8269,7 @@ libxml_xmlDocGetRootElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathPopString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7807,8 +8286,8 @@ libxml_xmlXPathPopString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlCreateFileParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7824,7 +8303,8 @@ libxml_htmlCreateFileParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7841,6 +8321,8 @@ libxml_xmlTextReaderConstEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateOneAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7867,6 +8349,7 @@ libxml_xmlValidateOneAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlAddEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7882,6 +8365,7 @@ libxml_xmlAddEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderMoveToAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7899,6 +8383,8 @@ libxml_xmlTextReaderMoveToAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCJKCompatibilityForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7913,6 +8399,28 @@ libxml_xmlUCSIsCJKCompatibilityForms(PyObject *self ATTRIBUTE_UNUSED, PyObject * return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) +PyObject * +libxml_xmlTextReaderSetSchema(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { + PyObject *py_retval; + int c_retval; + xmlTextReaderPtr reader; + PyObject *pyobj_reader; + xmlSchemaPtr schema; + PyObject *pyobj_schema; + + if (!PyArg_ParseTuple(args, (char *)"OO:xmlTextReaderSetSchema", &pyobj_reader, &pyobj_schema)) + return(NULL); + reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); + schema = (xmlSchemaPtr) PySchema_Get(pyobj_schema); + + c_retval = xmlTextReaderSetSchema(reader, schema); + py_retval = libxml_intWrap((int) c_retval); + return(py_retval); +} + +#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlCharStrdup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -7927,6 +8435,7 @@ libxml_xmlCharStrdup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlElemDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * f; @@ -7947,7 +8456,8 @@ libxml_xmlElemDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathConcatFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -7963,8 +8473,8 @@ libxml_xmlXPathConcatFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpAttrList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -7983,7 +8493,8 @@ libxml_xmlDebugDumpAttrList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderReadString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8000,6 +8511,8 @@ libxml_xmlTextReaderReadString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLinearBIdeograms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8014,6 +8527,7 @@ libxml_xmlUCSIsLinearBIdeograms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseCharData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -8029,6 +8543,7 @@ libxml_xmlParseCharData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsThai(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8043,7 +8558,8 @@ libxml_xmlUCSIsThai(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlCtxtReset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { htmlParserCtxtPtr ctxt; @@ -8058,7 +8574,7 @@ libxml_htmlCtxtReset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ PyObject * libxml_xmlCtxtReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8078,6 +8594,7 @@ libxml_xmlCtxtReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogResolveSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8092,6 +8609,8 @@ libxml_xmlCatalogResolveSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstLocalName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8108,7 +8627,8 @@ libxml_xmlTextReaderConstLocalName(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathLastFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -8124,7 +8644,8 @@ libxml_xmlXPathLastFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsOpticalCharacterRecognition(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8139,6 +8660,7 @@ libxml_xmlUCSIsOpticalCharacterRecognition(PyObject *self ATTRIBUTE_UNUSED, PyOb return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlThrDefSubstituteEntitiesDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8188,6 +8710,7 @@ libxml_xmlThrDefIndentTreeOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsYijingHexagramSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8202,6 +8725,8 @@ libxml_xmlUCSIsYijingHexagramSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject * return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderNewFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8222,6 +8747,7 @@ libxml_xmlReaderNewFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlCreateMemoryParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8271,7 +8797,7 @@ libxml_xmlCopyNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCastStringToBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8286,7 +8812,8 @@ libxml_xmlXPathCastStringToBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderMoveToElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8303,7 +8830,8 @@ libxml_xmlTextReaderMoveToElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlIsAutoClosed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8323,7 +8851,8 @@ libxml_htmlIsAutoClosed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsUgaritic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8338,6 +8867,8 @@ libxml_xmlUCSIsUgaritic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCJKCompatibilityIdeographsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8352,6 +8883,8 @@ libxml_xmlUCSIsCJKCompatibilityIdeographsSupplement(PyObject *self ATTRIBUTE_UNU return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlReconciliateNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8371,6 +8904,8 @@ libxml_xmlReconciliateNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlNewChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8392,6 +8927,8 @@ libxml_xmlNewChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsKangxiRadicals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8406,6 +8943,7 @@ libxml_xmlUCSIsKangxiRadicals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlCreateIntSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8425,7 +8963,7 @@ libxml_xmlCreateIntSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathSubValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -8440,7 +8978,8 @@ libxml_xmlXPathSubValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsArabicPresentationFormsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8455,6 +8994,8 @@ libxml_xmlUCSIsArabicPresentationFormsA(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsArabicPresentationFormsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8469,6 +9010,8 @@ libxml_xmlUCSIsArabicPresentationFormsB(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsGeometricShapes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8483,6 +9026,7 @@ libxml_xmlUCSIsGeometricShapes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlGetPredefinedEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8497,6 +9041,7 @@ libxml_xmlGetPredefinedEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlSaveFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8514,7 +9059,8 @@ libxml_xmlSaveFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8534,7 +9080,8 @@ libxml_xmlXPathNextNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsBuhid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8549,7 +9096,8 @@ libxml_xmlUCSIsBuhid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaValidateOneElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8569,7 +9117,7 @@ libxml_xmlSchemaValidateOneElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8587,6 +9135,7 @@ libxml_xmlReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderNewFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8606,6 +9155,7 @@ libxml_xmlReaderNewFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlFreeDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlDtdPtr cur; @@ -8637,7 +9187,7 @@ libxml_xmlSetListDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlCtxtReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8657,7 +9207,7 @@ libxml_htmlCtxtReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ PyObject * libxml_xmlThrDefLineNumbersDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8672,6 +9222,7 @@ libxml_xmlThrDefLineNumbersDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCombiningHalfMarks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8686,6 +9237,8 @@ libxml_xmlUCSIsCombiningHalfMarks(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatSc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8700,6 +9253,8 @@ libxml_xmlUCSIsCatSc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatSo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8714,6 +9269,8 @@ libxml_xmlUCSIsCatSo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatSk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8728,7 +9285,8 @@ libxml_xmlUCSIsCatSk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathFreeContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathContextPtr ctxt; @@ -8743,7 +9301,7 @@ libxml_xmlXPathFreeContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlEncodeSpecialChars(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8824,6 +9382,7 @@ libxml_xmlThrDefGetWarningsDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMongolian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8838,6 +9397,7 @@ libxml_xmlUCSIsMongolian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlURIGetFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8854,6 +9414,7 @@ libxml_xmlURIGetFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCJKRadicalsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8868,7 +9429,8 @@ libxml_xmlUCSIsCJKRadicalsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject * return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathSumFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -8884,7 +9446,7 @@ libxml_xmlXPathSumFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlCopyNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8901,6 +9463,7 @@ libxml_xmlCopyNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCyrillic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8915,6 +9478,7 @@ libxml_xmlUCSIsCyrillic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlURISetFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlURIPtr URI; @@ -8950,7 +9514,7 @@ libxml_xmlAddChildList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) PyObject * libxml_htmlParseChunk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -8971,8 +9535,8 @@ libxml_htmlParseChunk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathIdFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -8988,7 +9552,7 @@ libxml_xmlXPathIdFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlCreateURLParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9004,6 +9568,7 @@ libxml_xmlCreateURLParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderRead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9020,6 +9585,7 @@ libxml_xmlTextReaderRead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlSaveUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9050,7 +9616,7 @@ libxml_xmlIsChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlCtxtReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9071,7 +9637,7 @@ libxml_htmlCtxtReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ PyObject * libxml_xmlPedanticParserDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9086,6 +9652,7 @@ libxml_xmlPedanticParserDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlParseDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9100,7 +9667,8 @@ libxml_xmlParseDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_SAX1_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathParseNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9117,7 +9685,7 @@ libxml_xmlXPathParseNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlLineNumbersDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9132,6 +9700,7 @@ libxml_xmlLineNumbersDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlConvertSGMLCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9148,6 +9717,7 @@ libxml_xmlConvertSGMLCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * libxml_xmlNodeAddContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr cur; @@ -9179,7 +9749,7 @@ libxml_xmlErrorGetLevel(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNewParserContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9197,7 +9767,7 @@ libxml_xmlXPathNewParserContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlParseDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9228,7 +9798,7 @@ libxml_xmlFreeNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGValidatePushElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9251,7 +9821,8 @@ libxml_xmlRelaxNGValidatePushElement(PyObject *self ATTRIBUTE_UNUSED, PyObject * return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSinhala(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9266,6 +9837,7 @@ libxml_xmlUCSIsSinhala(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParserInputBufferPush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9313,6 +9885,7 @@ libxml_xmlStrEqual(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderPreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9329,6 +9902,8 @@ libxml_xmlTextReaderPreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsKatakanaPhoneticExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9343,7 +9918,8 @@ libxml_xmlUCSIsKatakanaPhoneticExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObj return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9358,7 +9934,8 @@ libxml_xmlRelaxNGNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathSetContextDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathContextPtr ctxt; @@ -9376,28 +9953,26 @@ libxml_xmlXPathSetContextDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * -libxml_xmlIsRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { +libxml_xmlSchemaIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlAttrPtr attr; - PyObject *pyobj_attr; + xmlSchemaValidCtxtPtr ctxt; + PyObject *pyobj_ctxt; - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlIsRef", &pyobj_doc, &pyobj_elem, &pyobj_attr)) + if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaIsValid", &pyobj_ctxt)) return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); + ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); - c_retval = xmlIsRef(doc, elem, attr); + c_retval = xmlSchemaIsValid(ctxt); py_retval = libxml_intWrap((int) c_retval); return(py_retval); } +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsKanbun(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9412,6 +9987,8 @@ libxml_xmlUCSIsKanbun(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLatin1Supplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9426,6 +10003,8 @@ libxml_xmlUCSIsLatin1Supplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlNodeSetName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr cur; @@ -9441,6 +10020,7 @@ libxml_xmlNodeSetName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_TREE_ENABLED) */ PyObject * libxml_xmlUTF8Strloc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9456,7 +10036,7 @@ libxml_xmlUTF8Strloc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9473,7 +10053,8 @@ libxml_htmlReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsDingbats(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9488,7 +10069,8 @@ libxml_xmlUCSIsDingbats(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9505,7 +10087,7 @@ libxml_xmlSchemaParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlThrDefDefaultBufferSize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9520,6 +10102,7 @@ libxml_xmlThrDefDefaultBufferSize(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsPrivateUse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9534,6 +10117,8 @@ libxml_xmlUCSIsPrivateUse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlRecoverFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9548,7 +10133,8 @@ libxml_xmlRecoverFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_SAX1_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextFollowingSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9568,7 +10154,7 @@ libxml_xmlXPathNextFollowingSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlIsExtender(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9583,7 +10169,7 @@ libxml_xmlIsExtender(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCastBooleanToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9598,7 +10184,7 @@ libxml_xmlXPathCastBooleanToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlUTF8Charcmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9614,7 +10200,7 @@ libxml_xmlUTF8Charcmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPTR_ENABLED +#if defined(LIBXML_XPTR_ENABLED) PyObject * libxml_xmlXPtrNewRangeNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9634,7 +10220,7 @@ libxml_xmlXPtrNewRangeNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPTR_ENABLED */ +#endif /* defined(LIBXML_XPTR_ENABLED) */ PyObject * libxml_xmlStringDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9656,7 +10242,7 @@ libxml_xmlStringDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNotEqualValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9673,7 +10259,8 @@ libxml_xmlXPathNotEqualValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderMoveToAttributeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9692,6 +10279,8 @@ libxml_xmlTextReaderMoveToAttributeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsOgham(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9706,6 +10295,7 @@ libxml_xmlUCSIsOgham(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlNewDocComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9723,6 +10313,7 @@ libxml_xmlNewDocComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsBopomofoExtended(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9737,6 +10328,8 @@ libxml_xmlUCSIsBopomofoExtended(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCJKCompatibility(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9751,7 +10344,8 @@ libxml_xmlUCSIsCJKCompatibility(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGValidateFullElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9774,7 +10368,8 @@ libxml_xmlRelaxNGValidateFullElement(PyObject *self ATTRIBUTE_UNUSED, PyObject * return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9794,6 +10389,8 @@ libxml_xmlValidateDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatPc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9808,6 +10405,8 @@ libxml_xmlUCSIsCatPc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatPf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9822,6 +10421,8 @@ libxml_xmlUCSIsCatPf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatPd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9836,7 +10437,8 @@ libxml_xmlUCSIsCatPd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlCtxtReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9859,7 +10461,8 @@ libxml_htmlCtxtReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatPi(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9874,6 +10477,26 @@ libxml_xmlUCSIsCatPi(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) +PyObject * +libxml_xmlXPathGetContextNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { + PyObject *py_retval; + xmlNodePtr c_retval; + xmlXPathContextPtr ctxt; + PyObject *pyobj_ctxt; + + if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextNode", &pyobj_ctxt)) + return(NULL); + ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); + + c_retval = ctxt->node; + py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); + return(py_retval); +} + +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatPo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9888,6 +10511,8 @@ libxml_xmlUCSIsCatPo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatPs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9902,6 +10527,8 @@ libxml_xmlUCSIsCatPs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsHighSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9916,27 +10543,8 @@ libxml_xmlUCSIsHighSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -PyObject * -libxml_xmlAddDocEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlEntityPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - int type; - xmlChar * ExternalID; - xmlChar * SystemID; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"Ozizzz:xmlAddDocEntity", &pyobj_doc, &name, &type, &ExternalID, &SystemID, &content)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlAddDocEntity(doc, name, type, ExternalID, SystemID, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogResolveURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9951,6 +10559,7 @@ libxml_xmlCatalogResolveURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * libxml_xmlURIGetScheme(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9967,6 +10576,7 @@ libxml_xmlURIGetScheme(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderLocatorLineNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9983,7 +10593,8 @@ libxml_xmlTextReaderLocatorLineNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGNewMemParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -9999,7 +10610,8 @@ libxml_xmlRelaxNGNewMemParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderAttributeCount(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10016,6 +10628,7 @@ libxml_xmlTextReaderAttributeCount(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlCharStrndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10047,6 +10660,7 @@ libxml_xmlParseEncodingDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsUnifiedCanadianAboriginalSyllabics(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10061,6 +10675,7 @@ libxml_xmlUCSIsUnifiedCanadianAboriginalSyllabics(PyObject *self ATTRIBUTE_UNUSE return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlCopyPropList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10080,6 +10695,7 @@ libxml_xmlCopyPropList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlDocFormatDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10100,6 +10716,7 @@ libxml_xmlDocFormatDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ PyObject * libxml_xmlCtxtReset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -10115,6 +10732,28 @@ libxml_xmlCtxtReset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { } PyObject * +libxml_xmlIsRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { + PyObject *py_retval; + int c_retval; + xmlDocPtr doc; + PyObject *pyobj_doc; + xmlNodePtr elem; + PyObject *pyobj_elem; + xmlAttrPtr attr; + PyObject *pyobj_attr; + + if (!PyArg_ParseTuple(args, (char *)"OOO:xmlIsRef", &pyobj_doc, &pyobj_elem, &pyobj_attr)) + return(NULL); + doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); + elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); + attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); + + c_retval = xmlIsRef(doc, elem, attr); + py_retval = libxml_intWrap((int) c_retval); + return(py_retval); +} + +PyObject * libxml_xmlUTF8Strndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; xmlChar * c_retval; @@ -10129,6 +10768,7 @@ libxml_xmlUTF8Strndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathGetContextDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10145,6 +10785,8 @@ libxml_xmlXPathGetContextDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsTaiLe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10159,6 +10801,7 @@ libxml_xmlUCSIsTaiLe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -10173,7 +10816,7 @@ libxml_xmlParseComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathSubstringAfterFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -10189,7 +10832,8 @@ libxml_xmlXPathSubstringAfterFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlSaveFormatFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10209,7 +10853,8 @@ libxml_xmlSaveFormatFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10226,7 +10871,7 @@ libxml_xmlRelaxNGParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlParseNmtoken(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10259,6 +10904,7 @@ libxml_xmlParserGetIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMathematicalOperators(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10273,7 +10919,8 @@ libxml_xmlUCSIsMathematicalOperators(PyObject *self ATTRIBUTE_UNUSED, PyObject * return(py_retval); } -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpDTD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -10291,8 +10938,8 @@ libxml_xmlDebugDumpDTD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ -#ifdef LIBXML_XPTR_ENABLED +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_XPTR_ENABLED) PyObject * libxml_xmlXPtrNewCollapsedRange(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10309,8 +10956,8 @@ libxml_xmlXPtrNewCollapsedRange(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_XPTR_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPTR_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNotFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -10326,7 +10973,7 @@ libxml_xmlXPathNotFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlTextConcat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10359,6 +11006,7 @@ libxml_xmlParsePI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlLoadCatalogs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { char * pathss; @@ -10371,7 +11019,8 @@ libxml_xmlLoadCatalogs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlCtxtReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10392,7 +11041,8 @@ libxml_htmlCtxtReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_PUSH_ENABLED) PyObject * libxml_xmlParseChunk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10413,7 +11063,8 @@ libxml_xmlParseChunk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_PUSH_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_htmlSaveFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10432,7 +11083,7 @@ libxml_htmlSaveFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ PyObject * libxml_xmlParseElementDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10449,6 +11100,7 @@ libxml_xmlParseElementDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlReaderForFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10466,6 +11118,8 @@ libxml_xmlReaderForFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCJKCompatibilityIdeographs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10480,6 +11134,8 @@ libxml_xmlUCSIsCJKCompatibilityIdeographs(PyObject *self ATTRIBUTE_UNUSED, PyObj return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderMoveToFirstAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10496,6 +11152,8 @@ libxml_xmlTextReaderMoveToFirstAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObje return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlNewTextReader(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10513,6 +11171,8 @@ libxml_xmlNewTextReader(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderGetAttributeNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10530,6 +11190,8 @@ libxml_xmlTextReaderGetAttributeNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderGetAttributeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10548,6 +11210,7 @@ libxml_xmlTextReaderGetAttributeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlURIGetQuery(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10564,6 +11227,7 @@ libxml_xmlURIGetQuery(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsGeneralPunctuation(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10578,6 +11242,8 @@ libxml_xmlUCSIsGeneralPunctuation(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsControlPictures(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10592,7 +11258,8 @@ libxml_xmlUCSIsControlPictures(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlIsBooleanAttr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10607,7 +11274,7 @@ libxml_htmlIsBooleanAttr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ PyObject * libxml_xmlNodeListGetString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10628,6 +11295,7 @@ libxml_xmlNodeListGetString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsBengali(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10642,6 +11310,7 @@ libxml_xmlUCSIsBengali(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlBuildQName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10673,7 +11342,7 @@ libxml_xmlFreePropList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathStringFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -10689,7 +11358,7 @@ libxml_xmlXPathStringFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlInitParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10706,6 +11375,7 @@ libxml_xmlInitParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsTagbanwa(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10720,6 +11390,8 @@ libxml_xmlUCSIsTagbanwa(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstBaseUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10736,6 +11408,8 @@ libxml_xmlTextReaderConstBaseUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsDeseret(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10750,7 +11424,8 @@ libxml_xmlUCSIsDeseret(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathRoundFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -10766,7 +11441,8 @@ libxml_xmlXPathRoundFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatSm(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10781,6 +11457,8 @@ libxml_xmlUCSIsCatSm(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderMoveToAttributeNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10798,6 +11476,7 @@ libxml_xmlTextReaderMoveToAttributeNo(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlParserHandlePEReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -10812,7 +11491,7 @@ libxml_xmlParserHandlePEReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNewBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10827,7 +11506,8 @@ libxml_xmlXPathNewBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsPrivateUseArea(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10842,6 +11522,7 @@ libxml_xmlUCSIsPrivateUseArea(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlCtxtReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10862,6 +11543,7 @@ libxml_xmlCtxtReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsAlphabeticPresentationForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10876,6 +11558,8 @@ libxml_xmlUCSIsAlphabeticPresentationForms(PyObject *self ATTRIBUTE_UNUSED, PyOb return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCypriotSyllabary(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10890,6 +11574,7 @@ libxml_xmlUCSIsCypriotSyllabary(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlGetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10908,6 +11593,7 @@ libxml_xmlGetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatC(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10922,6 +11608,8 @@ libxml_xmlUCSIsCatC(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatN(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10936,6 +11624,8 @@ libxml_xmlUCSIsCatN(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatL(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10950,6 +11640,8 @@ libxml_xmlUCSIsCatL(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatM(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10964,6 +11656,7 @@ libxml_xmlUCSIsCatM(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlCtxtResetPush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10985,6 +11678,7 @@ libxml_xmlCtxtResetPush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatS(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -10999,6 +11693,8 @@ libxml_xmlUCSIsCatS(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatP(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11013,6 +11709,8 @@ libxml_xmlUCSIsCatP(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlCatalogGetSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11027,6 +11725,8 @@ libxml_xmlCatalogGetSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatZ(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11041,6 +11741,8 @@ libxml_xmlUCSIsCatZ(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSuperscriptsandSubscripts(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11055,6 +11757,8 @@ libxml_xmlUCSIsSuperscriptsandSubscripts(PyObject *self ATTRIBUTE_UNUSED, PyObje return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsTagalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11069,6 +11773,7 @@ libxml_xmlUCSIsTagalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlGetDtdElementDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11086,6 +11791,7 @@ libxml_xmlGetDtdElementDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsPhoneticExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11100,7 +11806,8 @@ libxml_xmlUCSIsPhoneticExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCastNodeToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11117,7 +11824,7 @@ libxml_xmlXPathCastNodeToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlURISetPort(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlURIPtr URI; @@ -11133,6 +11840,7 @@ libxml_xmlURISetPort(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlNamespaceParseNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11149,6 +11857,7 @@ libxml_xmlNamespaceParseNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_LEGACY_ENABLED) */ PyObject * libxml_xmlInitGlobals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -11157,6 +11866,7 @@ libxml_xmlInitGlobals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_ return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsEthiopic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11171,7 +11881,8 @@ libxml_xmlUCSIsEthiopic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlParseFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11187,8 +11898,8 @@ libxml_htmlParseFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugCheckDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11208,8 +11919,8 @@ libxml_xmlDebugCheckDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_DEBUG_ENABLED */ -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11227,7 +11938,8 @@ libxml_htmlReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathGetContextPosition(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11244,7 +11956,8 @@ libxml_xmlXPathGetContextPosition(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_htmlNodeDumpFileFormat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11269,7 +11982,8 @@ libxml_htmlNodeDumpFileFormat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstXmlLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11286,6 +12000,8 @@ libxml_xmlTextReaderConstXmlLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCherokee(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11300,6 +12016,7 @@ libxml_xmlUCSIsCherokee(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlNodeSetContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr cur; @@ -11329,7 +12046,7 @@ libxml_xmlUnlinkNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_DEBUG_ENABLED +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlBoolToText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11344,7 +12061,7 @@ libxml_xmlBoolToText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) */ PyObject * libxml_xmlSetCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { int mode; @@ -11357,7 +12074,7 @@ libxml_xmlSetCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlParseDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11374,8 +12091,8 @@ libxml_htmlParseDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathSubstringFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -11391,8 +12108,8 @@ libxml_xmlXPathSubstringFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) PyObject * libxml_xmlDebugDumpNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -11411,7 +12128,8 @@ libxml_xmlDebugDumpNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlCopyDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11429,6 +12147,7 @@ libxml_xmlCopyDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlCtxtReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11495,7 +12214,7 @@ libxml_xmlParseAttributeListDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } -#ifdef LIBXML_SCHEMAS_ENABLED +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaNewDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11512,7 +12231,7 @@ libxml_xmlSchemaNewDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_nodePush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11532,7 +12251,7 @@ libxml_nodePush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XINCLUDE_ENABLED +#if defined(LIBXML_XINCLUDE_ENABLED) PyObject * libxml_xmlXIncludeProcess(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11549,8 +12268,8 @@ libxml_xmlXIncludeProcess(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XINCLUDE_ENABLED */ -#ifdef LIBXML_REGEXP_ENABLED +#endif /* defined(LIBXML_XINCLUDE_ENABLED) */ +#if defined(LIBXML_REGEXP_ENABLED) PyObject * libxml_xmlRegexpIsDeterminist(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11567,8 +12286,8 @@ libxml_xmlRegexpIsDeterminist(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_REGEXP_ENABLED */ -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_REGEXP_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11584,7 +12303,8 @@ libxml_htmlNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11600,7 +12320,8 @@ libxml_xmlUCSIsCat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlIsScriptAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11615,7 +12336,8 @@ libxml_htmlIsScriptAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlInitializePredefinedEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -11624,6 +12346,8 @@ libxml_xmlInitializePredefinedEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject return(Py_None); } +#endif /* defined(LIBXML_LEGACY_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMiscellaneousTechnical(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11638,7 +12362,8 @@ libxml_xmlUCSIsMiscellaneousTechnical(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } -#ifdef LIBXML_DEBUG_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlShellPrintNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr node; @@ -11653,7 +12378,8 @@ libxml_xmlShellPrintNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_DEBUG_ENABLED */ +#endif /* defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlValidateNMToken(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11669,6 +12395,7 @@ libxml_xmlValidateNMToken(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlErrorGetCode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11685,6 +12412,7 @@ libxml_xmlErrorGetCode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateNameValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11699,7 +12427,8 @@ libxml_xmlValidateNameValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_VALID_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNewContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11716,8 +12445,8 @@ libxml_xmlXPathNewContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxNGNewDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11734,7 +12463,7 @@ libxml_xmlRelaxNGNewDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlBuildRelativeURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11750,6 +12479,7 @@ libxml_xmlBuildRelativeURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlACatalogResolvePublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11767,6 +12497,7 @@ libxml_xmlACatalogResolvePublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ PyObject * libxml_xmlThrDefParserDebugEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11781,6 +12512,7 @@ libxml_xmlThrDefParserDebugEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlFreeCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlCatalogPtr catal; @@ -11795,6 +12527,8 @@ libxml_xmlFreeCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCJKSymbolsandPunctuation(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11809,6 +12543,8 @@ libxml_xmlUCSIsCJKSymbolsandPunctuation(PyObject *self ATTRIBUTE_UNUSED, PyObjec return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMusicalSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11823,6 +12559,8 @@ libxml_xmlUCSIsMusicalSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_FTP_ENABLED) PyObject * libxml_xmlNanoFTPInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -11831,6 +12569,7 @@ libxml_xmlNanoFTPInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_ return(Py_None); } +#endif /* defined(LIBXML_FTP_ENABLED) */ PyObject * libxml_xmlURIGetUser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11898,6 +12637,7 @@ libxml_xmlParseNotationDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlNewDocRawNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11919,7 +12659,8 @@ libxml_xmlNewDocRawNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_TREE_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaCollapseString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11934,7 +12675,8 @@ libxml_xmlSchemaCollapseString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderConstNamespaceUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11951,6 +12693,8 @@ libxml_xmlTextReaderConstNamespaceUri(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsBasicLatin(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -11965,6 +12709,7 @@ libxml_xmlUCSIsBasicLatin(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseMisc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -11996,7 +12741,7 @@ libxml_xmlParserInputBufferGrow(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12016,7 +12761,8 @@ libxml_xmlXPathNextChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderGetParserProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12034,6 +12780,7 @@ libxml_xmlTextReaderGetParserProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlStrncat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12050,7 +12797,9 @@ libxml_xmlStrncat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) +#endif +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPatherror(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -12068,7 +12817,8 @@ libxml_xmlXPatherror(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlParseMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12085,6 +12835,7 @@ libxml_xmlParseMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_SAX1_ENABLED) */ PyObject * libxml_xmlCleanupEncodingAliases(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -12093,7 +12844,7 @@ libxml_xmlCleanupEncodingAliases(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCeilingFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -12109,7 +12860,8 @@ libxml_xmlXPathCeilingFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSmallFormVariants(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12124,6 +12876,7 @@ libxml_xmlUCSIsSmallFormVariants(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlInitParser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -12132,7 +12885,7 @@ libxml_xmlInitParser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_U return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathStartsWithFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -12148,7 +12901,7 @@ libxml_xmlXPathStartsWithFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *arg return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ PyObject * libxml_xmlSearchNsByHref(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12183,7 +12936,7 @@ libxml_xmlParseTextDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathNextPreceding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12203,8 +12956,8 @@ libxml_xmlXPathNextPreceding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathRegisterAllFunctions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathContextPtr ctxt; @@ -12219,8 +12972,8 @@ libxml_xmlXPathRegisterAllFunctions(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathRegisteredVariablesCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathContextPtr ctxt; @@ -12235,7 +12988,8 @@ libxml_xmlXPathRegisteredVariablesCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObj return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlHandleEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -12253,6 +13007,8 @@ libxml_xmlHandleEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_LEGACY_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlACatalogResolve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12271,7 +13027,8 @@ libxml_xmlACatalogResolve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaValidCtxtGetOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12288,7 +13045,8 @@ libxml_xmlSchemaValidCtxtGetOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlParseDTD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12304,6 +13062,8 @@ libxml_xmlParseDTD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateDocumentFinal(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12323,6 +13083,7 @@ libxml_xmlValidateDocumentFinal(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ PyObject * libxml_xmlIsLetter(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12373,7 +13134,7 @@ libxml_xmlPrintURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathValueFlipSign(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -12388,8 +13149,8 @@ libxml_xmlXPathValueFlipSign(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlRelaxParserSetFlag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12407,7 +13168,7 @@ libxml_xmlRelaxParserSetFlag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlParserSetLoadSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -12423,6 +13184,7 @@ libxml_xmlParserSetLoadSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_VALID_ENABLED) PyObject * libxml_xmlValidateOneNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12450,6 +13212,8 @@ libxml_xmlValidateOneNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_VALID_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) PyObject * libxml_xmlReplaceNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12469,6 +13233,7 @@ libxml_xmlReplaceNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */ PyObject * libxml_xmlSetDocCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlDocPtr doc; @@ -12484,7 +13249,7 @@ libxml_xmlSetDocCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPTR_ENABLED +#if defined(LIBXML_XPTR_ENABLED) PyObject * libxml_xmlXPtrNewRange(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12506,8 +13271,8 @@ libxml_xmlXPtrNewRange(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPTR_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPTR_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathMultValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -12522,8 +13287,8 @@ libxml_xmlXPathMultValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_xmlSchemaDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { FILE * output; @@ -12541,7 +13306,8 @@ libxml_xmlSchemaDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlParseFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12556,6 +13322,8 @@ libxml_xmlParseFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_SAX1_ENABLED) */ +#if defined(LIBXML_SAX1_ENABLED) PyObject * libxml_xmlParseEndTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -12570,6 +13338,8 @@ libxml_xmlParseEndTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_SAX1_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsHanunoo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12584,6 +13354,7 @@ libxml_xmlUCSIsHanunoo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParserSetLineNumbers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -12627,6 +13398,7 @@ libxml_xmlDelEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlNodeSetContentLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr cur; @@ -12643,6 +13415,7 @@ libxml_xmlNodeSetContentLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_TREE_ENABLED) */ PyObject * libxml_xmlThrDefPedanticParserDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12672,6 +13445,7 @@ libxml_xmlUTF8Strpos(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlUnsetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12692,7 +13466,8 @@ libxml_xmlUnsetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathRegisterNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12711,7 +13486,8 @@ libxml_xmlXPathRegisterNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCurrencySymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12726,7 +13502,8 @@ libxml_xmlUCSIsCurrencySymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCmpNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12746,8 +13523,8 @@ libxml_xmlXPathCmpNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathVariableLookupNS(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12766,8 +13543,8 @@ libxml_xmlXPathVariableLookupNS(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ -#ifdef LIBXML_XINCLUDE_ENABLED +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_XINCLUDE_ENABLED) PyObject * libxml_xmlXIncludeProcessFlags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12785,7 +13562,7 @@ libxml_xmlXIncludeProcessFlags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -#endif /* LIBXML_XINCLUDE_ENABLED */ +#endif /* defined(LIBXML_XINCLUDE_ENABLED) */ PyObject * libxml_xmlUTF8Strsub(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12819,6 +13596,7 @@ libxml_xmlIsMixedElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsMiscellaneousSymbolsandArrows(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12833,7 +13611,8 @@ libxml_xmlUCSIsMiscellaneousSymbolsandArrows(PyObject *self ATTRIBUTE_UNUSED, Py return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) PyObject * libxml_htmlNodeDumpFormatOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlOutputBufferPtr buf; @@ -12856,7 +13635,7 @@ libxml_htmlNodeDumpFormatOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ PyObject * libxml_xmlParseExternalSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -12897,6 +13676,7 @@ libxml_xmlDictCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_ return(Py_None); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderReadInnerXml(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12913,6 +13693,7 @@ libxml_xmlTextReaderReadInnerXml(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlThrDefKeepBlanksDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12927,23 +13708,23 @@ libxml_xmlThrDefKeepBlanksDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_VALID_ENABLED) PyObject * -libxml_xmlXPathBooleanFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; +libxml_xmlValidateNmtokensValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { + PyObject *py_retval; + int c_retval; + xmlChar * value; - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathBooleanFunction", &pyobj_ctxt, &nargs)) + if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNmtokensValue", &value)) return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - xmlXPathBooleanFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); + c_retval = xmlValidateNmtokensValue(value); + py_retval = libxml_intWrap((int) c_retval); + return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_VALID_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsThaana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12958,6 +13739,7 @@ libxml_xmlUCSIsThaana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlStrsub(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12974,6 +13756,7 @@ libxml_xmlStrsub(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsYiRadicals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -12988,6 +13771,8 @@ libxml_xmlUCSIsYiRadicals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_LEGACY_ENABLED) PyObject * libxml_xmlCleanupPredefinedEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -12996,7 +13781,8 @@ libxml_xmlCleanupPredefinedEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(Py_None); } -#ifdef LIBXML_SCHEMAS_ENABLED +#endif /* defined(LIBXML_LEGACY_ENABLED) */ +#if defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlSchemaInitTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -13005,7 +13791,7 @@ libxml_xmlSchemaInitTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIB return(Py_None); } -#endif /* LIBXML_SCHEMAS_ENABLED */ +#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ PyObject * libxml_xmlParseElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; @@ -13020,6 +13806,7 @@ libxml_xmlParseElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsOriya(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13034,6 +13821,7 @@ libxml_xmlUCSIsOriya(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseVersionInfo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13050,7 +13838,7 @@ libxml_xmlParseVersionInfo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathSubstringBeforeFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -13066,7 +13854,8 @@ libxml_xmlXPathSubstringBeforeFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_OUTPUT_ENABLED) && defined(LIBXML_HTTP_ENABLED) PyObject * libxml_xmlRegisterHTTPPostCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { @@ -13075,6 +13864,7 @@ libxml_xmlRegisterHTTPPostCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *a return(Py_None); } +#endif /* defined(LIBXML_OUTPUT_ENABLED) && defined(LIBXML_HTTP_ENABLED) */ PyObject * libxml_xmlSetTreeDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr tree; @@ -13108,7 +13898,7 @@ libxml_xmlCopyNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlParseCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13125,7 +13915,8 @@ libxml_htmlParseCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsAegeanNumbers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13140,6 +13931,7 @@ libxml_xmlUCSIsAegeanNumbers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlCheckUTF8(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13154,6 +13946,7 @@ libxml_xmlCheckUTF8(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsOldItalic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13168,7 +13961,8 @@ libxml_xmlUCSIsOldItalic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathPopNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13185,7 +13979,8 @@ libxml_xmlXPathPopNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsEnclosedAlphanumerics(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13200,7 +13995,8 @@ libxml_xmlUCSIsEnclosedAlphanumerics(PyObject *self ATTRIBUTE_UNUSED, PyObject * return(py_retval); } -#ifdef LIBXML_XPATH_ENABLED +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathCastBooleanToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13215,7 +14011,8 @@ libxml_xmlXPathCastBooleanToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *ar return(py_retval); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsIdeographicDescriptionCharacters(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13230,6 +14027,7 @@ libxml_xmlUCSIsIdeographicDescriptionCharacters(PyObject *self ATTRIBUTE_UNUSED, return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlGetLineNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13292,6 +14090,7 @@ libxml_xmlThrDefSaveNoEmptyTags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderGetAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13309,6 +14108,7 @@ libxml_xmlTextReaderGetAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlKeepBlanksDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13323,6 +14123,7 @@ libxml_xmlKeepBlanksDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSupplementaryPrivateUseAreaB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13337,6 +14138,8 @@ libxml_xmlUCSIsSupplementaryPrivateUseAreaB(PyObject *self ATTRIBUTE_UNUSED, PyO return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsSupplementaryPrivateUseAreaA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13351,6 +14154,8 @@ libxml_xmlUCSIsSupplementaryPrivateUseAreaA(PyObject *self ATTRIBUTE_UNUSED, PyO return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_READER_ENABLED) PyObject * libxml_xmlTextReaderCurrentNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13367,20 +14172,7 @@ libxml_xmlTextReaderCurrentNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } -PyObject * -libxml_xmlValidateNmtokensValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNmtokensValue", &value)) - return(NULL); - - c_retval = xmlValidateNmtokensValue(value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - +#endif /* defined(LIBXML_READER_ENABLED) */ PyObject * libxml_xmlNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13395,6 +14187,7 @@ libxml_xmlNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLetterlikeSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13409,6 +14202,8 @@ libxml_xmlUCSIsLetterlikeSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatZp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13423,6 +14218,8 @@ libxml_xmlUCSIsCatZp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatZs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13437,6 +14234,8 @@ libxml_xmlUCSIsCatZs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsCatZl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13451,6 +14250,8 @@ libxml_xmlUCSIsCatZl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_CATALOG_ENABLED) PyObject * libxml_xmlACatalogRemove(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13468,6 +14269,8 @@ libxml_xmlACatalogRemove(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_CATALOG_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) PyObject * libxml_xmlUnsetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13485,7 +14288,8 @@ libxml_xmlUnsetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } -#ifdef LIBXML_HTML_ENABLED +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ +#if defined(LIBXML_HTML_ENABLED) PyObject * libxml_htmlFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { htmlParserCtxtPtr ctxt; @@ -13500,7 +14304,8 @@ libxml_htmlFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_HTML_ENABLED */ +#endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsVariationSelectorsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13515,6 +14320,8 @@ libxml_xmlUCSIsVariationSelectorsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyO return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) PyObject * libxml_xmlSetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13533,6 +14340,8 @@ libxml_xmlSetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(py_retval); } +#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_TREE_ENABLED) PyObject * libxml_xmlNodeSetLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlNodePtr cur; @@ -13548,6 +14357,7 @@ libxml_xmlNodeSetLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } +#endif /* defined(LIBXML_TREE_ENABLED) */ PyObject * libxml_xmlFreeDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlDocPtr cur; @@ -13562,7 +14372,7 @@ libxml_xmlFreeDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#ifdef LIBXML_XPATH_ENABLED +#if defined(LIBXML_XPATH_ENABLED) PyObject * libxml_xmlXPathEvalExpr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlXPathParserContextPtr ctxt; @@ -13577,7 +14387,8 @@ libxml_xmlXPathEvalExpr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } -#endif /* LIBXML_XPATH_ENABLED */ +#endif /* defined(LIBXML_XPATH_ENABLED) */ +#if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsLinearBSyllabary(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *py_retval; @@ -13592,6 +14403,7 @@ libxml_xmlUCSIsLinearBSyllabary(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) return(py_retval); } +#endif /* defined(LIBXML_UNICODE_ENABLED) */ PyObject * libxml_xmlParseDocTypeDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { xmlParserCtxtPtr ctxt; diff --git a/python/libxml2-python-api.xml b/python/libxml2-python-api.xml index b933290..f77a237 100644 --- a/python/libxml2-python-api.xml +++ b/python/libxml2-python-api.xml @@ -2,6 +2,7 @@ <api name='libxml2-python'> <symbols> <function name='xmlRegisterXPathFunction' file='python'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Register a Python written function to the XPath interpreter</info> <return type='int' info="1 in case of success, 0 or -1 in case of error"/> <arg name='ctx' type='xmlXPathContextPtr' info='the xpathContext'/> @@ -23,6 +24,7 @@ <arg name='URI' type='xmlChar *' info='The URI used for base computations'/> </function> <function name='htmlCreatePushParser' file='python'> + <cond>defined(LIBXML_HTML_ENABLED)</cond> <info>Create a progressive HTML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise.</info> <return type='xmlParserCtxtPtr' info="the parser context or None in case of error"/> <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/> @@ -38,6 +40,7 @@ <arg name='recover' type='int' info='allow recovery in case of error'/> </function> <function name='htmlSAXParseFile' file='python'> + <cond>defined(LIBXML_HTML_ENABLED)</cond> <info>Interface to parse an HTML file or resource pointed by an URI to build an event flow to the SAX object</info> <return type='void'/> <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/> @@ -129,48 +132,57 @@ </function> <!-- xmlXPathContextPtr accessors --> <function name='xmlXPathParserGetContext' file='python_accessor'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Get the xpathContext from an xpathParserContext</info> <return type='xmlXPathContextPtr' info="The XPath context" field="context"/> <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath parser context'/> </function> <function name='xmlXPathGetContextDoc' file='python_accessor'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Get the doc from an xpathContext</info> <return type='xmlDocPtr' info="The doc context" field="doc"/> <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> </function> <function name='xmlXPathGetContextNode' file='python_accessor'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Get the current node from an xpathContext</info> <return type='xmlNodePtr' info="The node context" field="node"/> <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> </function> <function name='xmlXPathSetContextDoc' file='python_accessor'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Set the doc of an xpathContext</info> <return type='void'/> <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> <arg name="doc" type='xmlDocPtr' info="The doc context"/> </function> <function name='xmlXPathSetContextNode' file='python_accessor'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Set the current node of an xpathContext</info> <return type='void'/> <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> <arg name="node" type='xmlNodePtr' info="The node context"/> </function> <function name='xmlXPathGetContextPosition' file='python_accessor'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Get the current node from an xpathContext</info> <return type='int' info="The node context" field="proximityPosition"/> <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> </function> <function name='xmlXPathGetContextSize' file='python_accessor'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Get the current node from an xpathContext</info> <return type='int' info="The node context" field="contextSize"/> <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> </function> <function name='xmlXPathGetFunction' file='python_accessor'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Get the current function name xpathContext</info> <return type='const xmlChar *' info="The function name" field="function"/> <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> </function> <function name='xmlXPathGetFunctionURI' file='python_accessor'> + <cond>defined(LIBXML_XPATH_ENABLED)</cond> <info>Get the current function name URI xpathContext</info> <return type='const xmlChar *' info="The function name URI" field="functionURI"/> <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> diff --git a/python/setup.py b/python/setup.py index e1e1cdb..fd3154d 100755 --- a/python/setup.py +++ b/python/setup.py @@ -226,7 +226,7 @@ else: setup (name = "libxml2-python", # On *nix, the version number is created from setup.py.in # On windows, it is set by configure.js - version = "2.6.19", + version = "2.6.20", description = descr, author = "Daniel Veillard", author_email = "veillard@redhat.com", diff --git a/python/tests/Makefile.am b/python/tests/Makefile.am index c6d03e9..3571abf 100644 --- a/python/tests/Makefile.am +++ b/python/tests/Makefile.am @@ -30,6 +30,7 @@ PYTESTS= \ reader8.py \ readernext.py \ walker.py \ + nsdel.py \ ctxterror.py\ readererr.py\ relaxng.py \ diff --git a/python/tests/Makefile.in b/python/tests/Makefile.in index 6769fa1..a344e07 100644 --- a/python/tests/Makefile.in +++ b/python/tests/Makefile.in @@ -58,6 +58,7 @@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ +BASE_THREAD_LIBS = @BASE_THREAD_LIBS@ C14N_OBJ = @C14N_OBJ@ CATALOG_OBJ = @CATALOG_OBJ@ CC = @CC@ @@ -286,6 +287,7 @@ PYTESTS = \ reader8.py \ readernext.py \ walker.py \ + nsdel.py \ ctxterror.py\ readererr.py\ relaxng.py \ diff --git a/python/tests/nsdel.py b/python/tests/nsdel.py new file mode 100755 index 0000000..c06ded3 --- /dev/null +++ b/python/tests/nsdel.py @@ -0,0 +1,62 @@ +#!/usr/bin/python -u +# +# this test exercise the XPath basic engine, parser, etc, and +# allows to detect memory leaks +# +import sys +import libxml2 + +instance="""<?xml version="1.0"?> +<tag xmlns:foo='urn:foo' xmlns:bar='urn:bar' xmlns:baz='urn:baz' />""" + +def namespaceDefs(node): + n = node.nsDefs() + while n: + yield n + n = n.next + +def checkNamespaceDefs(node, count): + nsList = list(namespaceDefs(node)) + #print nsList + if len(nsList) != count : + raise Exception, "Error: saw %d namespace declarations. Expected %d" % (len(nsList), count) + +# Memory debug specific +libxml2.debugMemory(1) + +# Remove single namespace +doc = libxml2.parseDoc(instance) +node = doc.getRootElement() +checkNamespaceDefs(node, 3) +ns = node.removeNsDef('urn:bar') +checkNamespaceDefs(node, 2) +ns.freeNsList() +doc.freeDoc() + +# Remove all namespaces +doc = libxml2.parseDoc(instance) +node = doc.getRootElement() +checkNamespaceDefs(node, 3) +ns = node.removeNsDef(None) +checkNamespaceDefs(node, 0) +ns.freeNsList() +doc.freeDoc() + +# Remove a namespace refered to by a child +doc = libxml2.newDoc("1.0") +root = doc.newChild(None, "root", None) +namespace = root.newNs("http://example.com/sample", "s") +child = root.newChild(namespace, "child", None) +root.removeNsDef("http://example.com/sample") +doc.reconciliateNs(root) +namespace.freeNsList() +doc.serialize() # This should not segfault +doc.freeDoc() + +# Memory debug specific +libxml2.cleanupParser() +if libxml2.debugMemory(1) == 0: + print "OK" +else: + print "Memory leak %d bytes" % (libxml2.debugMemory(1)) + libxml2.dumpMemory() |