Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 1 | #include <Python.h> |
Daniel Veillard | d2897fd | 2002-01-30 16:37:32 +0000 | [diff] [blame] | 2 | #include <libxml/tree.h> |
| 3 | #include <libxml/parser.h> |
| 4 | #include <libxml/parserInternals.h> |
| 5 | #include <libxml/catalog.h> |
| 6 | #include <libxml/threads.h> |
| 7 | #include <libxml/nanoftp.h> |
| 8 | #include <libxml/nanohttp.h> |
| 9 | #include <libxml/uri.h> |
| 10 | #include <libxml/xpath.h> |
| 11 | #include <libxml/xpathInternals.h> |
| 12 | #include <libxml/debugXML.h> |
Daniel Veillard | 96fe095 | 2002-01-30 20:52:23 +0000 | [diff] [blame] | 13 | #include <libxml/HTMLparser.h> |
| 14 | #include <libxml/HTMLtree.h> |
| 15 | #include <libxml/xinclude.h> |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 16 | #include <libxml/xpointer.h> |
Daniel Veillard | bd9afb5 | 2002-09-25 22:25:35 +0000 | [diff] [blame] | 17 | #include <libxml/xmlunicode.h> |
| 18 | #include <libxml/xmlregexp.h> |
| 19 | #include <libxml/xmlautomata.h> |
Daniel Veillard | 0eb38c7 | 2002-12-14 23:00:35 +0000 | [diff] [blame] | 20 | #include <libxml/xmlreader.h> |
Daniel Veillard | 259f0df | 2004-08-18 09:13:18 +0000 | [diff] [blame] | 21 | #ifdef LIBXML_SCHEMAS_ENABLED |
Daniel Veillard | 71531f3 | 2003-02-05 13:19:53 +0000 | [diff] [blame] | 22 | #include <libxml/relaxng.h> |
Daniel Veillard | 259f0df | 2004-08-18 09:13:18 +0000 | [diff] [blame] | 23 | #include <libxml/xmlschemas.h> |
| 24 | #endif |
Daniel Veillard | 0eb38c7 | 2002-12-14 23:00:35 +0000 | [diff] [blame] | 25 | |
Daniel Veillard | bf4a8f0 | 2013-04-02 10:27:57 +0800 | [diff] [blame] | 26 | /* |
| 27 | * for older versions of Python, we don't use PyBytes, but keep PyString |
| 28 | * and don't use Capsule but CObjects |
| 29 | */ |
| 30 | #if PY_VERSION_HEX < 0x02070000 |
| 31 | #ifndef PyBytes_Check |
| 32 | #define PyBytes_Check PyString_Check |
| 33 | #define PyBytes_Size PyString_Size |
| 34 | #define PyBytes_AsString PyString_AsString |
| 35 | #define PyBytes_AS_STRING PyString_AS_STRING |
| 36 | #define PyBytes_GET_SIZE PyString_GET_SIZE |
Petr Sumbera | 722923b | 2013-05-03 22:25:38 +0800 | [diff] [blame^] | 37 | #endif |
| 38 | #ifndef PyCapsule_New |
Daniel Veillard | bf4a8f0 | 2013-04-02 10:27:57 +0800 | [diff] [blame] | 39 | #define PyCapsule_New PyCObject_FromVoidPtrAndDesc |
| 40 | #define PyCapsule_CheckExact PyCObject_Check |
| 41 | #define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o)) |
Daniel Veillard | bf4a8f0 | 2013-04-02 10:27:57 +0800 | [diff] [blame] | 42 | #endif |
| 43 | #endif |
| 44 | |
Daniel Veillard | 0eb38c7 | 2002-12-14 23:00:35 +0000 | [diff] [blame] | 45 | /** |
| 46 | * ATTRIBUTE_UNUSED: |
| 47 | * |
| 48 | * Macro used to signal to GCC unused function parameters |
| 49 | * Repeated here since the definition is not available when |
| 50 | * compiled outside the libxml2 build tree. |
| 51 | */ |
| 52 | #ifdef __GNUC__ |
| 53 | #ifdef ATTRIBUTE_UNUSED |
| 54 | #undef ATTRIBUTE_UNUSED |
| 55 | #endif |
Daniel Veillard | 0eb38c7 | 2002-12-14 23:00:35 +0000 | [diff] [blame] | 56 | #ifndef ATTRIBUTE_UNUSED |
Daniel Veillard | 0e9dafa | 2002-12-27 11:58:25 +0000 | [diff] [blame] | 57 | #define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) |
| 58 | #endif /* ATTRIBUTE_UNUSED */ |
Daniel Veillard | 0eb38c7 | 2002-12-14 23:00:35 +0000 | [diff] [blame] | 59 | #else |
| 60 | #define ATTRIBUTE_UNUSED |
| 61 | #endif |
Daniel Veillard | 96fe095 | 2002-01-30 20:52:23 +0000 | [diff] [blame] | 62 | |
Daniel Veillard | 36eea2d | 2002-02-04 00:17:01 +0000 | [diff] [blame] | 63 | #define PyxmlNode_Get(v) (((v) == Py_None) ? NULL : \ |
| 64 | (((PyxmlNode_Object *)(v))->obj)) |
Daniel Veillard | 96fe095 | 2002-01-30 20:52:23 +0000 | [diff] [blame] | 65 | |
| 66 | typedef struct { |
| 67 | PyObject_HEAD |
| 68 | xmlNodePtr obj; |
| 69 | } PyxmlNode_Object; |
Daniel Veillard | d2897fd | 2002-01-30 16:37:32 +0000 | [diff] [blame] | 70 | |
Daniel Veillard | 36eea2d | 2002-02-04 00:17:01 +0000 | [diff] [blame] | 71 | #define PyxmlXPathContext_Get(v) (((v) == Py_None) ? NULL : \ |
| 72 | (((PyxmlXPathContext_Object *)(v))->obj)) |
| 73 | |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 74 | typedef struct { |
| 75 | PyObject_HEAD |
| 76 | xmlXPathContextPtr obj; |
| 77 | } PyxmlXPathContext_Object; |
| 78 | |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 79 | #define PyxmlXPathParserContext_Get(v) (((v) == Py_None) ? NULL : \ |
| 80 | (((PyxmlXPathParserContext_Object *)(v))->obj)) |
| 81 | |
| 82 | typedef struct { |
| 83 | PyObject_HEAD |
| 84 | xmlXPathParserContextPtr obj; |
| 85 | } PyxmlXPathParserContext_Object; |
| 86 | |
Daniel Veillard | 36eea2d | 2002-02-04 00:17:01 +0000 | [diff] [blame] | 87 | #define PyparserCtxt_Get(v) (((v) == Py_None) ? NULL : \ |
| 88 | (((PyparserCtxt_Object *)(v))->obj)) |
| 89 | |
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 90 | typedef struct { |
| 91 | PyObject_HEAD |
| 92 | xmlParserCtxtPtr obj; |
| 93 | } PyparserCtxt_Object; |
| 94 | |
Daniel Veillard | 850ce9b | 2004-11-10 11:55:47 +0000 | [diff] [blame] | 95 | #define PyValidCtxt_Get(v) (((v) == Py_None) ? NULL : \ |
| 96 | (((PyValidCtxt_Object *)(v))->obj)) |
| 97 | |
| 98 | typedef struct { |
| 99 | PyObject_HEAD |
| 100 | xmlValidCtxtPtr obj; |
| 101 | } PyValidCtxt_Object; |
| 102 | |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 103 | #define Pycatalog_Get(v) (((v) == Py_None) ? NULL : \ |
| 104 | (((Pycatalog_Object *)(v))->obj)) |
| 105 | |
| 106 | typedef struct { |
| 107 | PyObject_HEAD |
| 108 | xmlCatalogPtr obj; |
| 109 | } Pycatalog_Object; |
| 110 | |
Daniel Veillard | 0e298ad | 2003-02-04 16:14:33 +0000 | [diff] [blame] | 111 | #ifdef LIBXML_REGEXP_ENABLED |
Daniel Veillard | bd9afb5 | 2002-09-25 22:25:35 +0000 | [diff] [blame] | 112 | #define PyxmlReg_Get(v) (((v) == Py_None) ? NULL : \ |
| 113 | (((PyxmlReg_Object *)(v))->obj)) |
| 114 | |
| 115 | typedef struct { |
| 116 | PyObject_HEAD |
| 117 | xmlRegexpPtr obj; |
| 118 | } PyxmlReg_Object; |
Daniel Veillard | 0e298ad | 2003-02-04 16:14:33 +0000 | [diff] [blame] | 119 | #endif /* LIBXML_REGEXP_ENABLED */ |
Daniel Veillard | bd9afb5 | 2002-09-25 22:25:35 +0000 | [diff] [blame] | 120 | |
Daniel Veillard | 438ebbd | 2008-05-12 12:58:46 +0000 | [diff] [blame] | 121 | #ifdef LIBXML_READER_ENABLED |
Daniel Veillard | 0eb38c7 | 2002-12-14 23:00:35 +0000 | [diff] [blame] | 122 | #define PyxmlTextReader_Get(v) (((v) == Py_None) ? NULL : \ |
| 123 | (((PyxmlTextReader_Object *)(v))->obj)) |
| 124 | |
| 125 | typedef struct { |
| 126 | PyObject_HEAD |
| 127 | xmlTextReaderPtr obj; |
| 128 | } PyxmlTextReader_Object; |
| 129 | |
Daniel Veillard | 417be3a | 2003-01-20 21:26:34 +0000 | [diff] [blame] | 130 | #define PyxmlTextReaderLocator_Get(v) (((v) == Py_None) ? NULL : \ |
| 131 | (((PyxmlTextReaderLocator_Object *)(v))->obj)) |
| 132 | |
| 133 | typedef struct { |
| 134 | PyObject_HEAD |
| 135 | xmlTextReaderLocatorPtr obj; |
| 136 | } PyxmlTextReaderLocator_Object; |
Daniel Veillard | 438ebbd | 2008-05-12 12:58:46 +0000 | [diff] [blame] | 137 | #endif |
Daniel Veillard | 417be3a | 2003-01-20 21:26:34 +0000 | [diff] [blame] | 138 | |
Daniel Veillard | 6361da0 | 2002-02-23 10:10:33 +0000 | [diff] [blame] | 139 | #define PyURI_Get(v) (((v) == Py_None) ? NULL : \ |
| 140 | (((PyURI_Object *)(v))->obj)) |
| 141 | |
| 142 | typedef struct { |
| 143 | PyObject_HEAD |
Daniel Veillard | 46da464 | 2004-01-06 22:54:57 +0000 | [diff] [blame] | 144 | xmlErrorPtr obj; |
| 145 | } PyError_Object; |
| 146 | |
| 147 | #define PyError_Get(v) (((v) == Py_None) ? NULL : \ |
| 148 | (((PyError_Object *)(v))->obj)) |
| 149 | |
| 150 | typedef struct { |
| 151 | PyObject_HEAD |
Daniel Veillard | c6d4a93 | 2002-09-12 15:00:57 +0000 | [diff] [blame] | 152 | xmlOutputBufferPtr obj; |
| 153 | } PyoutputBuffer_Object; |
| 154 | |
| 155 | #define PyoutputBuffer_Get(v) (((v) == Py_None) ? NULL : \ |
Daniel Veillard | 6cbd6c0 | 2003-12-04 12:31:49 +0000 | [diff] [blame] | 156 | (((PyoutputBuffer_Object *)(v))->obj)) |
Daniel Veillard | c6d4a93 | 2002-09-12 15:00:57 +0000 | [diff] [blame] | 157 | |
| 158 | typedef struct { |
| 159 | PyObject_HEAD |
| 160 | xmlParserInputBufferPtr obj; |
| 161 | } PyinputBuffer_Object; |
| 162 | |
| 163 | #define PyinputBuffer_Get(v) (((v) == Py_None) ? NULL : \ |
Daniel Veillard | 6cbd6c0 | 2003-12-04 12:31:49 +0000 | [diff] [blame] | 164 | (((PyinputBuffer_Object *)(v))->obj)) |
Daniel Veillard | c6d4a93 | 2002-09-12 15:00:57 +0000 | [diff] [blame] | 165 | |
| 166 | typedef struct { |
| 167 | PyObject_HEAD |
Daniel Veillard | 6361da0 | 2002-02-23 10:10:33 +0000 | [diff] [blame] | 168 | xmlURIPtr obj; |
| 169 | } PyURI_Object; |
| 170 | |
| 171 | /* FILE * have their own internal representation */ |
Daniel Veillard | 3798c4a | 2013-03-29 13:46:24 +0800 | [diff] [blame] | 172 | #if PY_MAJOR_VERSION >= 3 |
| 173 | FILE *libxml_PyFileGet(PyObject *f); |
| 174 | void libxml_PyFileRelease(FILE *f); |
| 175 | #define PyFile_Get(v) (((v) == Py_None) ? NULL : libxml_PyFileGet(v)) |
| 176 | #define PyFile_Release(f) libxml_PyFileRelease(f) |
| 177 | #else |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 178 | #define PyFile_Get(v) (((v) == Py_None) ? NULL : \ |
Daniel Veillard | bd9afb5 | 2002-09-25 22:25:35 +0000 | [diff] [blame] | 179 | (PyFile_Check(v) ? (PyFile_AsFile(v)) : stdout)) |
Daniel Veillard | 3798c4a | 2013-03-29 13:46:24 +0800 | [diff] [blame] | 180 | #define PyFile_Release(f) |
| 181 | #endif |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 182 | |
Daniel Veillard | 591b4be | 2003-02-09 23:33:36 +0000 | [diff] [blame] | 183 | #ifdef LIBXML_SCHEMAS_ENABLED |
| 184 | typedef struct { |
| 185 | PyObject_HEAD |
| 186 | xmlRelaxNGPtr obj; |
| 187 | } PyrelaxNgSchema_Object; |
| 188 | |
| 189 | #define PyrelaxNgSchema_Get(v) (((v) == Py_None) ? NULL : \ |
| 190 | (((PyrelaxNgSchema_Object *)(v))->obj)) |
| 191 | |
| 192 | typedef struct { |
| 193 | PyObject_HEAD |
| 194 | xmlRelaxNGParserCtxtPtr obj; |
| 195 | } PyrelaxNgParserCtxt_Object; |
| 196 | |
| 197 | #define PyrelaxNgParserCtxt_Get(v) (((v) == Py_None) ? NULL : \ |
| 198 | (((PyrelaxNgParserCtxt_Object *)(v))->obj)) |
| 199 | |
| 200 | typedef struct { |
| 201 | PyObject_HEAD |
| 202 | xmlRelaxNGValidCtxtPtr obj; |
| 203 | } PyrelaxNgValidCtxt_Object; |
| 204 | |
| 205 | #define PyrelaxNgValidCtxt_Get(v) (((v) == Py_None) ? NULL : \ |
| 206 | (((PyrelaxNgValidCtxt_Object *)(v))->obj)) |
| 207 | |
Daniel Veillard | 259f0df | 2004-08-18 09:13:18 +0000 | [diff] [blame] | 208 | typedef struct { |
| 209 | PyObject_HEAD |
| 210 | xmlSchemaPtr obj; |
| 211 | } PySchema_Object; |
| 212 | |
| 213 | #define PySchema_Get(v) (((v) == Py_None) ? NULL : \ |
| 214 | (((PySchema_Object *)(v))->obj)) |
| 215 | |
| 216 | typedef struct { |
| 217 | PyObject_HEAD |
| 218 | xmlSchemaParserCtxtPtr obj; |
| 219 | } PySchemaParserCtxt_Object; |
| 220 | |
| 221 | #define PySchemaParserCtxt_Get(v) (((v) == Py_None) ? NULL : \ |
| 222 | (((PySchemaParserCtxt_Object *)(v))->obj)) |
| 223 | |
| 224 | typedef struct { |
| 225 | PyObject_HEAD |
| 226 | xmlSchemaValidCtxtPtr obj; |
| 227 | } PySchemaValidCtxt_Object; |
| 228 | |
| 229 | #define PySchemaValidCtxt_Get(v) (((v) == Py_None) ? NULL : \ |
| 230 | (((PySchemaValidCtxt_Object *)(v))->obj)) |
| 231 | |
Daniel Veillard | 591b4be | 2003-02-09 23:33:36 +0000 | [diff] [blame] | 232 | #endif /* LIBXML_SCHEMAS_ENABLED */ |
Daniel Veillard | 6361da0 | 2002-02-23 10:10:33 +0000 | [diff] [blame] | 233 | |
Daniel Veillard | d2897fd | 2002-01-30 16:37:32 +0000 | [diff] [blame] | 234 | PyObject * libxml_intWrap(int val); |
Daniel Veillard | 4e1b26c | 2002-02-03 20:13:06 +0000 | [diff] [blame] | 235 | PyObject * libxml_longWrap(long val); |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 236 | PyObject * libxml_xmlCharPtrWrap(xmlChar *str); |
| 237 | PyObject * libxml_constxmlCharPtrWrap(const xmlChar *str); |
| 238 | PyObject * libxml_charPtrWrap(char *str); |
| 239 | PyObject * libxml_constcharPtrWrap(const char *str); |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 240 | PyObject * libxml_charPtrConstWrap(const char *str); |
| 241 | PyObject * libxml_xmlCharPtrConstWrap(const xmlChar *str); |
Daniel Veillard | d2897fd | 2002-01-30 16:37:32 +0000 | [diff] [blame] | 242 | PyObject * libxml_xmlDocPtrWrap(xmlDocPtr doc); |
| 243 | PyObject * libxml_xmlNodePtrWrap(xmlNodePtr node); |
| 244 | PyObject * libxml_xmlAttrPtrWrap(xmlAttrPtr attr); |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 245 | PyObject * libxml_xmlNsPtrWrap(xmlNsPtr ns); |
| 246 | PyObject * libxml_xmlAttributePtrWrap(xmlAttributePtr ns); |
| 247 | PyObject * libxml_xmlElementPtrWrap(xmlElementPtr ns); |
Daniel Veillard | 96fe095 | 2002-01-30 20:52:23 +0000 | [diff] [blame] | 248 | PyObject * libxml_doubleWrap(double val); |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 249 | PyObject * libxml_xmlXPathContextPtrWrap(xmlXPathContextPtr ctxt); |
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 250 | PyObject * libxml_xmlParserCtxtPtrWrap(xmlParserCtxtPtr ctxt); |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 251 | PyObject * libxml_xmlXPathParserContextPtrWrap(xmlXPathParserContextPtr ctxt); |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 252 | PyObject * libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj); |
Daniel Veillard | 850ce9b | 2004-11-10 11:55:47 +0000 | [diff] [blame] | 253 | PyObject * libxml_xmlValidCtxtPtrWrap(xmlValidCtxtPtr valid); |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 254 | PyObject * libxml_xmlCatalogPtrWrap(xmlCatalogPtr obj); |
Daniel Veillard | 6361da0 | 2002-02-23 10:10:33 +0000 | [diff] [blame] | 255 | PyObject * libxml_xmlURIPtrWrap(xmlURIPtr uri); |
Daniel Veillard | c6d4a93 | 2002-09-12 15:00:57 +0000 | [diff] [blame] | 256 | PyObject * libxml_xmlOutputBufferPtrWrap(xmlOutputBufferPtr buffer); |
| 257 | PyObject * libxml_xmlParserInputBufferPtrWrap(xmlParserInputBufferPtr buffer); |
Daniel Veillard | 0e298ad | 2003-02-04 16:14:33 +0000 | [diff] [blame] | 258 | #ifdef LIBXML_REGEXP_ENABLED |
Daniel Veillard | bd9afb5 | 2002-09-25 22:25:35 +0000 | [diff] [blame] | 259 | PyObject * libxml_xmlRegexpPtrWrap(xmlRegexpPtr regexp); |
Daniel Veillard | 0e298ad | 2003-02-04 16:14:33 +0000 | [diff] [blame] | 260 | #endif /* LIBXML_REGEXP_ENABLED */ |
Daniel Veillard | 438ebbd | 2008-05-12 12:58:46 +0000 | [diff] [blame] | 261 | #ifdef LIBXML_READER_ENABLED |
Daniel Veillard | 0eb38c7 | 2002-12-14 23:00:35 +0000 | [diff] [blame] | 262 | PyObject * libxml_xmlTextReaderPtrWrap(xmlTextReaderPtr reader); |
Daniel Veillard | 417be3a | 2003-01-20 21:26:34 +0000 | [diff] [blame] | 263 | PyObject * libxml_xmlTextReaderLocatorPtrWrap(xmlTextReaderLocatorPtr locator); |
Daniel Veillard | 438ebbd | 2008-05-12 12:58:46 +0000 | [diff] [blame] | 264 | #endif |
Daniel Veillard | 96fe095 | 2002-01-30 20:52:23 +0000 | [diff] [blame] | 265 | |
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 266 | xmlXPathObjectPtr libxml_xmlXPathObjectPtrConvert(PyObject * obj); |
Daniel Veillard | 591b4be | 2003-02-09 23:33:36 +0000 | [diff] [blame] | 267 | #ifdef LIBXML_SCHEMAS_ENABLED |
| 268 | PyObject * libxml_xmlRelaxNGPtrWrap(xmlRelaxNGPtr ctxt); |
| 269 | PyObject * libxml_xmlRelaxNGParserCtxtPtrWrap(xmlRelaxNGParserCtxtPtr ctxt); |
| 270 | PyObject * libxml_xmlRelaxNGValidCtxtPtrWrap(xmlRelaxNGValidCtxtPtr valid); |
Daniel Veillard | 259f0df | 2004-08-18 09:13:18 +0000 | [diff] [blame] | 271 | PyObject * libxml_xmlSchemaPtrWrap(xmlSchemaPtr ctxt); |
| 272 | PyObject * libxml_xmlSchemaParserCtxtPtrWrap(xmlSchemaParserCtxtPtr ctxt); |
| 273 | PyObject * libxml_xmlSchemaValidCtxtPtrWrap(xmlSchemaValidCtxtPtr valid); |
Daniel Veillard | 591b4be | 2003-02-09 23:33:36 +0000 | [diff] [blame] | 274 | #endif /* LIBXML_SCHEMAS_ENABLED */ |
Daniel Veillard | 46da464 | 2004-01-06 22:54:57 +0000 | [diff] [blame] | 275 | PyObject * libxml_xmlErrorPtrWrap(xmlErrorPtr error); |
Daniel Veillard | 6ebf3c4 | 2004-08-22 13:11:39 +0000 | [diff] [blame] | 276 | PyObject * libxml_xmlSchemaSetValidErrors(PyObject * self, PyObject * args); |
Alexey Neyman | 48da90b | 2013-02-25 15:54:25 +0800 | [diff] [blame] | 277 | PyObject * libxml_xmlRegisterInputCallback(PyObject *self, PyObject *args); |
| 278 | PyObject * libxml_xmlUnregisterInputCallback(PyObject *self, PyObject *args); |
Daniel Veillard | 3798c4a | 2013-03-29 13:46:24 +0800 | [diff] [blame] | 279 | PyObject * libxml_xmlNodeRemoveNsDef(PyObject * self, PyObject * args); |