summaryrefslogtreecommitdiff
path: root/python/libxml2-py.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/libxml2-py.c')
-rw-r--r--python/libxml2-py.c38
1 files changed, 18 insertions, 20 deletions
diff --git a/python/libxml2-py.c b/python/libxml2-py.c
index b5bf52f..19617ce 100644
--- a/python/libxml2-py.c
+++ b/python/libxml2-py.c
@@ -2292,7 +2292,6 @@ 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;
@@ -2309,7 +2308,6 @@ 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) {
@@ -6500,6 +6498,24 @@ libxml_xmlReaderForDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
}
#endif /* defined(LIBXML_READER_ENABLED) */
+#if defined(LIBXML_SCHEMAS_ENABLED)
+PyObject *
+libxml_xmlRelaxNGParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
+ PyObject *py_retval;
+ xmlRelaxNGPtr c_retval;
+ xmlRelaxNGParserCtxtPtr ctxt;
+ PyObject *pyobj_ctxt;
+
+ if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGParse", &pyobj_ctxt))
+ return(NULL);
+ ctxt = (xmlRelaxNGParserCtxtPtr) PyrelaxNgParserCtxt_Get(pyobj_ctxt);
+
+ c_retval = xmlRelaxNGParse(ctxt);
+ py_retval = libxml_xmlRelaxNGPtrWrap((xmlRelaxNGPtr) c_retval);
+ return(py_retval);
+}
+
+#endif /* defined(LIBXML_SCHEMAS_ENABLED) */
PyObject *
libxml_xmlAddDocEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
PyObject *py_retval;
@@ -10872,24 +10888,6 @@ libxml_xmlSaveFormatFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
}
#endif /* defined(LIBXML_OUTPUT_ENABLED) */
-#if defined(LIBXML_SCHEMAS_ENABLED)
-PyObject *
-libxml_xmlRelaxNGParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
- PyObject *py_retval;
- xmlRelaxNGPtr c_retval;
- xmlRelaxNGParserCtxtPtr ctxt;
- PyObject *pyobj_ctxt;
-
- if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGParse", &pyobj_ctxt))
- return(NULL);
- ctxt = (xmlRelaxNGParserCtxtPtr) PyrelaxNgParserCtxt_Get(pyobj_ctxt);
-
- c_retval = xmlRelaxNGParse(ctxt);
- py_retval = libxml_xmlRelaxNGPtrWrap((xmlRelaxNGPtr) c_retval);
- return(py_retval);
-}
-
-#endif /* defined(LIBXML_SCHEMAS_ENABLED) */
PyObject *
libxml_xmlParseNmtoken(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
PyObject *py_retval;