4 #include <libxml/xmlversion.h>
5 #include <libxml/tree.h>
6 #include <libxml/xmlschemastypes.h>
7 #include "libxml_wrap.h"
8 #include "libxml2-py.h"
10 #if defined(LIBXML_DOCB_ENABLED)
12 libxml_docbDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
14 docbDefaultSAXHandlerInit();
19 #endif /* defined(LIBXML_DOCB_ENABLED) */
20 #if defined(LIBXML_HTML_ENABLED)
22 libxml_htmlAutoCloseTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
31 if (!PyArg_ParseTuple(args, (char *)"OzO:htmlAutoCloseTag", &pyobj_doc, &name, &pyobj_elem))
33 doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc);
34 elem = (htmlNodePtr) PyxmlNode_Get(pyobj_elem);
36 c_retval = htmlAutoCloseTag(doc, name, elem);
37 py_retval = libxml_intWrap((int) c_retval);
41 #endif /* defined(LIBXML_HTML_ENABLED) */
42 #if defined(LIBXML_HTML_ENABLED)
44 libxml_htmlCreateFileParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
46 htmlParserCtxtPtr c_retval;
50 if (!PyArg_ParseTuple(args, (char *)"zz:htmlCreateFileParserCtxt", &filename, &encoding))
53 c_retval = htmlCreateFileParserCtxt(filename, encoding);
54 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
58 #endif /* defined(LIBXML_HTML_ENABLED) */
59 #if defined(LIBXML_HTML_ENABLED)
61 libxml_htmlCreateMemoryParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
63 htmlParserCtxtPtr c_retval;
68 if (!PyArg_ParseTuple(args, (char *)"s#i:htmlCreateMemoryParserCtxt", &buffer, &py_buffsize0, &size))
71 c_retval = htmlCreateMemoryParserCtxt(buffer, size);
72 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
76 #endif /* defined(LIBXML_HTML_ENABLED) */
77 #if defined(LIBXML_HTML_ENABLED)
79 #if defined(LIBXML_HTML_ENABLED)
81 libxml_htmlCtxtReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
84 htmlParserCtxtPtr ctxt;
91 if (!PyArg_ParseTuple(args, (char *)"Ozzzi:htmlCtxtReadDoc", &pyobj_ctxt, &cur, &URL, &encoding, &options))
93 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
95 c_retval = htmlCtxtReadDoc(ctxt, cur, URL, encoding, options);
96 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
100 #endif /* defined(LIBXML_HTML_ENABLED) */
101 #if defined(LIBXML_HTML_ENABLED)
103 libxml_htmlCtxtReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
106 htmlParserCtxtPtr ctxt;
107 PyObject *pyobj_ctxt;
113 if (!PyArg_ParseTuple(args, (char *)"Oizzi:htmlCtxtReadFd", &pyobj_ctxt, &fd, &URL, &encoding, &options))
115 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
117 c_retval = htmlCtxtReadFd(ctxt, fd, URL, encoding, options);
118 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
122 #endif /* defined(LIBXML_HTML_ENABLED) */
123 #if defined(LIBXML_HTML_ENABLED)
125 libxml_htmlCtxtReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
128 htmlParserCtxtPtr ctxt;
129 PyObject *pyobj_ctxt;
134 if (!PyArg_ParseTuple(args, (char *)"Ozzi:htmlCtxtReadFile", &pyobj_ctxt, &filename, &encoding, &options))
136 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
138 c_retval = htmlCtxtReadFile(ctxt, filename, encoding, options);
139 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
143 #endif /* defined(LIBXML_HTML_ENABLED) */
144 #if defined(LIBXML_HTML_ENABLED)
146 libxml_htmlCtxtReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
149 htmlParserCtxtPtr ctxt;
150 PyObject *pyobj_ctxt;
158 if (!PyArg_ParseTuple(args, (char *)"Os#izzi:htmlCtxtReadMemory", &pyobj_ctxt, &buffer, &py_buffsize0, &size, &URL, &encoding, &options))
160 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
162 c_retval = htmlCtxtReadMemory(ctxt, buffer, size, URL, encoding, options);
163 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
167 #endif /* defined(LIBXML_HTML_ENABLED) */
168 #if defined(LIBXML_HTML_ENABLED)
170 libxml_htmlCtxtReset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
171 htmlParserCtxtPtr ctxt;
172 PyObject *pyobj_ctxt;
174 if (!PyArg_ParseTuple(args, (char *)"O:htmlCtxtReset", &pyobj_ctxt))
176 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
183 #endif /* defined(LIBXML_HTML_ENABLED) */
184 #if defined(LIBXML_HTML_ENABLED)
186 libxml_htmlCtxtUseOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
189 htmlParserCtxtPtr ctxt;
190 PyObject *pyobj_ctxt;
193 if (!PyArg_ParseTuple(args, (char *)"Oi:htmlCtxtUseOptions", &pyobj_ctxt, &options))
195 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
197 c_retval = htmlCtxtUseOptions(ctxt, options);
198 py_retval = libxml_intWrap((int) c_retval);
202 #endif /* defined(LIBXML_HTML_ENABLED) */
203 #if defined(LIBXML_HTML_ENABLED)
205 libxml_htmlDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
207 htmlDefaultSAXHandlerInit();
212 #endif /* defined(LIBXML_HTML_ENABLED) */
213 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
215 libxml_htmlDocContentDumpFormatOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
216 xmlOutputBufferPtr buf;
223 if (!PyArg_ParseTuple(args, (char *)"OOzi:htmlDocContentDumpFormatOutput", &pyobj_buf, &pyobj_cur, &encoding, &format))
225 buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf);
226 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
228 htmlDocContentDumpFormatOutput(buf, cur, encoding, format);
233 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
234 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
236 libxml_htmlDocContentDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
237 xmlOutputBufferPtr buf;
243 if (!PyArg_ParseTuple(args, (char *)"OOz:htmlDocContentDumpOutput", &pyobj_buf, &pyobj_cur, &encoding))
245 buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf);
246 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
248 htmlDocContentDumpOutput(buf, cur, encoding);
253 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
254 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
256 libxml_htmlDocDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
264 if (!PyArg_ParseTuple(args, (char *)"OO:htmlDocDump", &pyobj_f, &pyobj_cur))
266 f = (FILE *) PyFile_Get(pyobj_f);
267 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
269 c_retval = htmlDocDump(f, cur);
271 py_retval = libxml_intWrap((int) c_retval);
275 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
276 #if defined(LIBXML_HTML_ENABLED)
278 libxml_htmlFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
279 htmlParserCtxtPtr ctxt;
280 PyObject *pyobj_ctxt;
282 if (!PyArg_ParseTuple(args, (char *)"O:htmlFreeParserCtxt", &pyobj_ctxt))
284 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
286 htmlFreeParserCtxt(ctxt);
291 #endif /* defined(LIBXML_HTML_ENABLED) */
292 #if defined(LIBXML_HTML_ENABLED)
294 libxml_htmlGetMetaEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
296 const xmlChar * c_retval;
300 if (!PyArg_ParseTuple(args, (char *)"O:htmlGetMetaEncoding", &pyobj_doc))
302 doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc);
304 c_retval = htmlGetMetaEncoding(doc);
305 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
309 #endif /* defined(LIBXML_HTML_ENABLED) */
310 #if defined(LIBXML_HTML_ENABLED)
312 libxml_htmlHandleOmittedElem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
317 if (!PyArg_ParseTuple(args, (char *)"i:htmlHandleOmittedElem", &val))
320 c_retval = htmlHandleOmittedElem(val);
321 py_retval = libxml_intWrap((int) c_retval);
325 #endif /* defined(LIBXML_HTML_ENABLED) */
326 #if defined(LIBXML_HTML_ENABLED)
328 libxml_htmlInitAutoClose(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
335 #endif /* defined(LIBXML_HTML_ENABLED) */
336 #if defined(LIBXML_HTML_ENABLED)
338 libxml_htmlIsAutoClosed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
344 PyObject *pyobj_elem;
346 if (!PyArg_ParseTuple(args, (char *)"OO:htmlIsAutoClosed", &pyobj_doc, &pyobj_elem))
348 doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc);
349 elem = (htmlNodePtr) PyxmlNode_Get(pyobj_elem);
351 c_retval = htmlIsAutoClosed(doc, elem);
352 py_retval = libxml_intWrap((int) c_retval);
356 #endif /* defined(LIBXML_HTML_ENABLED) */
357 #if defined(LIBXML_HTML_ENABLED)
359 libxml_htmlIsBooleanAttr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
364 if (!PyArg_ParseTuple(args, (char *)"z:htmlIsBooleanAttr", &name))
367 c_retval = htmlIsBooleanAttr(name);
368 py_retval = libxml_intWrap((int) c_retval);
372 #endif /* defined(LIBXML_HTML_ENABLED) */
373 #if defined(LIBXML_HTML_ENABLED)
375 libxml_htmlIsScriptAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
380 if (!PyArg_ParseTuple(args, (char *)"z:htmlIsScriptAttribute", &name))
383 c_retval = htmlIsScriptAttribute(name);
384 py_retval = libxml_intWrap((int) c_retval);
388 #endif /* defined(LIBXML_HTML_ENABLED) */
389 #if defined(LIBXML_HTML_ENABLED)
391 libxml_htmlNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
395 xmlChar * ExternalID;
397 if (!PyArg_ParseTuple(args, (char *)"zz:htmlNewDoc", &URI, &ExternalID))
400 c_retval = htmlNewDoc(URI, ExternalID);
401 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
405 #endif /* defined(LIBXML_HTML_ENABLED) */
406 #if defined(LIBXML_HTML_ENABLED)
408 libxml_htmlNewDocNoDtD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
412 xmlChar * ExternalID;
414 if (!PyArg_ParseTuple(args, (char *)"zz:htmlNewDocNoDtD", &URI, &ExternalID))
417 c_retval = htmlNewDocNoDtD(URI, ExternalID);
418 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
422 #endif /* defined(LIBXML_HTML_ENABLED) */
423 #if defined(LIBXML_HTML_ENABLED)
425 libxml_htmlNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
427 htmlParserCtxtPtr c_retval;
429 c_retval = htmlNewParserCtxt();
430 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
434 #endif /* defined(LIBXML_HTML_ENABLED) */
435 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
437 libxml_htmlNodeDumpFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
445 if (!PyArg_ParseTuple(args, (char *)"OOO:htmlNodeDumpFile", &pyobj_out, &pyobj_doc, &pyobj_cur))
447 out = (FILE *) PyFile_Get(pyobj_out);
448 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
449 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
451 htmlNodeDumpFile(out, doc, cur);
457 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
458 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
460 libxml_htmlNodeDumpFileFormat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
472 if (!PyArg_ParseTuple(args, (char *)"OOOzi:htmlNodeDumpFileFormat", &pyobj_out, &pyobj_doc, &pyobj_cur, &encoding, &format))
474 out = (FILE *) PyFile_Get(pyobj_out);
475 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
476 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
478 c_retval = htmlNodeDumpFileFormat(out, doc, cur, encoding, format);
480 py_retval = libxml_intWrap((int) c_retval);
484 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
485 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
487 libxml_htmlNodeDumpFormatOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
488 xmlOutputBufferPtr buf;
497 if (!PyArg_ParseTuple(args, (char *)"OOOzi:htmlNodeDumpFormatOutput", &pyobj_buf, &pyobj_doc, &pyobj_cur, &encoding, &format))
499 buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf);
500 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
501 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
503 htmlNodeDumpFormatOutput(buf, doc, cur, encoding, format);
508 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
509 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
511 libxml_htmlNodeDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
512 xmlOutputBufferPtr buf;
520 if (!PyArg_ParseTuple(args, (char *)"OOOz:htmlNodeDumpOutput", &pyobj_buf, &pyobj_doc, &pyobj_cur, &encoding))
522 buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf);
523 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
524 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
526 htmlNodeDumpOutput(buf, doc, cur, encoding);
531 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
532 #if defined(LIBXML_HTML_ENABLED)
534 libxml_htmlParseCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
537 htmlParserCtxtPtr ctxt;
538 PyObject *pyobj_ctxt;
540 if (!PyArg_ParseTuple(args, (char *)"O:htmlParseCharRef", &pyobj_ctxt))
542 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
544 c_retval = htmlParseCharRef(ctxt);
545 py_retval = libxml_intWrap((int) c_retval);
549 #endif /* defined(LIBXML_HTML_ENABLED) */
550 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED)
552 libxml_htmlParseChunk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
555 htmlParserCtxtPtr ctxt;
556 PyObject *pyobj_ctxt;
562 if (!PyArg_ParseTuple(args, (char *)"Os#ii:htmlParseChunk", &pyobj_ctxt, &chunk, &py_buffsize0, &size, &terminate))
564 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
566 c_retval = htmlParseChunk(ctxt, chunk, size, terminate);
567 py_retval = libxml_intWrap((int) c_retval);
571 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) */
572 #if defined(LIBXML_HTML_ENABLED)
574 libxml_htmlParseDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
580 if (!PyArg_ParseTuple(args, (char *)"zz:htmlParseDoc", &cur, &encoding))
583 c_retval = htmlParseDoc(cur, encoding);
584 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
588 #endif /* defined(LIBXML_HTML_ENABLED) */
589 #if defined(LIBXML_HTML_ENABLED)
591 libxml_htmlParseDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
594 htmlParserCtxtPtr ctxt;
595 PyObject *pyobj_ctxt;
597 if (!PyArg_ParseTuple(args, (char *)"O:htmlParseDocument", &pyobj_ctxt))
599 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
601 c_retval = htmlParseDocument(ctxt);
602 py_retval = libxml_intWrap((int) c_retval);
606 #endif /* defined(LIBXML_HTML_ENABLED) */
607 #if defined(LIBXML_HTML_ENABLED)
609 libxml_htmlParseElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
610 htmlParserCtxtPtr ctxt;
611 PyObject *pyobj_ctxt;
613 if (!PyArg_ParseTuple(args, (char *)"O:htmlParseElement", &pyobj_ctxt))
615 ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
617 htmlParseElement(ctxt);
622 #endif /* defined(LIBXML_HTML_ENABLED) */
623 #if defined(LIBXML_HTML_ENABLED)
625 libxml_htmlParseFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
631 if (!PyArg_ParseTuple(args, (char *)"zz:htmlParseFile", &filename, &encoding))
634 c_retval = htmlParseFile(filename, encoding);
635 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
639 #endif /* defined(LIBXML_HTML_ENABLED) */
640 #if defined(LIBXML_HTML_ENABLED)
642 libxml_htmlReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
650 if (!PyArg_ParseTuple(args, (char *)"zzzi:htmlReadDoc", &cur, &URL, &encoding, &options))
653 c_retval = htmlReadDoc(cur, URL, encoding, options);
654 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
658 #endif /* defined(LIBXML_HTML_ENABLED) */
659 #if defined(LIBXML_HTML_ENABLED)
661 libxml_htmlReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
669 if (!PyArg_ParseTuple(args, (char *)"izzi:htmlReadFd", &fd, &URL, &encoding, &options))
672 c_retval = htmlReadFd(fd, URL, encoding, options);
673 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
677 #endif /* defined(LIBXML_HTML_ENABLED) */
678 #if defined(LIBXML_HTML_ENABLED)
680 libxml_htmlReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
687 if (!PyArg_ParseTuple(args, (char *)"zzi:htmlReadFile", &filename, &encoding, &options))
690 c_retval = htmlReadFile(filename, encoding, options);
691 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
695 #endif /* defined(LIBXML_HTML_ENABLED) */
696 #if defined(LIBXML_HTML_ENABLED)
698 libxml_htmlReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
708 if (!PyArg_ParseTuple(args, (char *)"s#izzi:htmlReadMemory", &buffer, &py_buffsize0, &size, &URL, &encoding, &options))
711 c_retval = htmlReadMemory(buffer, size, URL, encoding, options);
712 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
716 #endif /* defined(LIBXML_HTML_ENABLED) */
717 #if defined(LIBXML_HTML_ENABLED)
719 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
721 libxml_htmlSaveFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
728 if (!PyArg_ParseTuple(args, (char *)"zO:htmlSaveFile", &filename, &pyobj_cur))
730 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
732 c_retval = htmlSaveFile(filename, cur);
733 py_retval = libxml_intWrap((int) c_retval);
737 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
738 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
740 libxml_htmlSaveFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
748 if (!PyArg_ParseTuple(args, (char *)"zOz:htmlSaveFileEnc", &filename, &pyobj_cur, &encoding))
750 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
752 c_retval = htmlSaveFileEnc(filename, cur, encoding);
753 py_retval = libxml_intWrap((int) c_retval);
757 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
758 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
760 libxml_htmlSaveFileFormat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
769 if (!PyArg_ParseTuple(args, (char *)"zOzi:htmlSaveFileFormat", &filename, &pyobj_cur, &encoding, &format))
771 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
773 c_retval = htmlSaveFileFormat(filename, cur, encoding, format);
774 py_retval = libxml_intWrap((int) c_retval);
778 #endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
779 #if defined(LIBXML_HTML_ENABLED)
781 libxml_htmlSetMetaEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
788 if (!PyArg_ParseTuple(args, (char *)"Oz:htmlSetMetaEncoding", &pyobj_doc, &encoding))
790 doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc);
792 c_retval = htmlSetMetaEncoding(doc, encoding);
793 py_retval = libxml_intWrap((int) c_retval);
797 #endif /* defined(LIBXML_HTML_ENABLED) */
799 libxml_namePop(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
801 const xmlChar * c_retval;
802 xmlParserCtxtPtr ctxt;
803 PyObject *pyobj_ctxt;
805 if (!PyArg_ParseTuple(args, (char *)"O:namePop", &pyobj_ctxt))
807 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
809 c_retval = namePop(ctxt);
810 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
815 libxml_namePush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
818 xmlParserCtxtPtr ctxt;
819 PyObject *pyobj_ctxt;
822 if (!PyArg_ParseTuple(args, (char *)"Oz:namePush", &pyobj_ctxt, &value))
824 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
826 c_retval = namePush(ctxt, value);
827 py_retval = libxml_intWrap((int) c_retval);
832 libxml_nodePop(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
835 xmlParserCtxtPtr ctxt;
836 PyObject *pyobj_ctxt;
838 if (!PyArg_ParseTuple(args, (char *)"O:nodePop", &pyobj_ctxt))
840 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
842 c_retval = nodePop(ctxt);
843 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
848 libxml_nodePush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
851 xmlParserCtxtPtr ctxt;
852 PyObject *pyobj_ctxt;
854 PyObject *pyobj_value;
856 if (!PyArg_ParseTuple(args, (char *)"OO:nodePush", &pyobj_ctxt, &pyobj_value))
858 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
859 value = (xmlNodePtr) PyxmlNode_Get(pyobj_value);
861 c_retval = nodePush(ctxt, value);
862 py_retval = libxml_intWrap((int) c_retval);
866 #if defined(LIBXML_XPATH_ENABLED)
868 libxml_valuePop(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
870 xmlXPathObjectPtr c_retval;
871 xmlXPathParserContextPtr ctxt;
872 PyObject *pyobj_ctxt;
874 if (!PyArg_ParseTuple(args, (char *)"O:valuePop", &pyobj_ctxt))
876 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
878 c_retval = valuePop(ctxt);
879 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
883 #endif /* defined(LIBXML_XPATH_ENABLED) */
884 #if defined(LIBXML_CATALOG_ENABLED)
886 libxml_xmlACatalogAdd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
890 PyObject *pyobj_catal;
895 if (!PyArg_ParseTuple(args, (char *)"Ozzz:xmlACatalogAdd", &pyobj_catal, &type, &orig, &replace))
897 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
899 c_retval = xmlACatalogAdd(catal, type, orig, replace);
900 py_retval = libxml_intWrap((int) c_retval);
904 #endif /* defined(LIBXML_CATALOG_ENABLED) */
905 #if defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
907 libxml_xmlACatalogDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
909 PyObject *pyobj_catal;
913 if (!PyArg_ParseTuple(args, (char *)"OO:xmlACatalogDump", &pyobj_catal, &pyobj_out))
915 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
916 out = (FILE *) PyFile_Get(pyobj_out);
918 xmlACatalogDump(catal, out);
924 #endif /* defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
925 #if defined(LIBXML_CATALOG_ENABLED)
927 libxml_xmlACatalogRemove(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
931 PyObject *pyobj_catal;
934 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlACatalogRemove", &pyobj_catal, &value))
936 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
938 c_retval = xmlACatalogRemove(catal, value);
939 py_retval = libxml_intWrap((int) c_retval);
943 #endif /* defined(LIBXML_CATALOG_ENABLED) */
944 #if defined(LIBXML_CATALOG_ENABLED)
946 libxml_xmlACatalogResolve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
950 PyObject *pyobj_catal;
954 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlACatalogResolve", &pyobj_catal, &pubID, &sysID))
956 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
958 c_retval = xmlACatalogResolve(catal, pubID, sysID);
959 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
963 #endif /* defined(LIBXML_CATALOG_ENABLED) */
964 #if defined(LIBXML_CATALOG_ENABLED)
966 libxml_xmlACatalogResolvePublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
970 PyObject *pyobj_catal;
973 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlACatalogResolvePublic", &pyobj_catal, &pubID))
975 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
977 c_retval = xmlACatalogResolvePublic(catal, pubID);
978 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
982 #endif /* defined(LIBXML_CATALOG_ENABLED) */
983 #if defined(LIBXML_CATALOG_ENABLED)
985 libxml_xmlACatalogResolveSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
989 PyObject *pyobj_catal;
992 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlACatalogResolveSystem", &pyobj_catal, &sysID))
994 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
996 c_retval = xmlACatalogResolveSystem(catal, sysID);
997 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1001 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1002 #if defined(LIBXML_CATALOG_ENABLED)
1004 libxml_xmlACatalogResolveURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1005 PyObject *py_retval;
1007 xmlCatalogPtr catal;
1008 PyObject *pyobj_catal;
1011 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlACatalogResolveURI", &pyobj_catal, &URI))
1013 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
1015 c_retval = xmlACatalogResolveURI(catal, URI);
1016 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1020 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1022 libxml_xmlAddChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1023 PyObject *py_retval;
1024 xmlNodePtr c_retval;
1026 PyObject *pyobj_parent;
1028 PyObject *pyobj_cur;
1030 if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddChild", &pyobj_parent, &pyobj_cur))
1032 parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent);
1033 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
1035 c_retval = xmlAddChild(parent, cur);
1036 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1041 libxml_xmlAddChildList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1042 PyObject *py_retval;
1043 xmlNodePtr c_retval;
1045 PyObject *pyobj_parent;
1047 PyObject *pyobj_cur;
1049 if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddChildList", &pyobj_parent, &pyobj_cur))
1051 parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent);
1052 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
1054 c_retval = xmlAddChildList(parent, cur);
1055 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1060 libxml_xmlAddDocEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1061 PyObject *py_retval;
1062 xmlEntityPtr c_retval;
1064 PyObject *pyobj_doc;
1067 xmlChar * ExternalID;
1071 if (!PyArg_ParseTuple(args, (char *)"Ozizzz:xmlAddDocEntity", &pyobj_doc, &name, &type, &ExternalID, &SystemID, &content))
1073 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
1075 c_retval = xmlAddDocEntity(doc, name, type, ExternalID, SystemID, content);
1076 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1081 libxml_xmlAddDtdEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1082 PyObject *py_retval;
1083 xmlEntityPtr c_retval;
1085 PyObject *pyobj_doc;
1088 xmlChar * ExternalID;
1092 if (!PyArg_ParseTuple(args, (char *)"Ozizzz:xmlAddDtdEntity", &pyobj_doc, &name, &type, &ExternalID, &SystemID, &content))
1094 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
1096 c_retval = xmlAddDtdEntity(doc, name, type, ExternalID, SystemID, content);
1097 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1102 libxml_xmlAddEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1103 PyObject *py_retval;
1108 if (!PyArg_ParseTuple(args, (char *)"zz:xmlAddEncodingAlias", &name, &alias))
1111 c_retval = xmlAddEncodingAlias(name, alias);
1112 py_retval = libxml_intWrap((int) c_retval);
1117 libxml_xmlAddNextSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1118 PyObject *py_retval;
1119 xmlNodePtr c_retval;
1121 PyObject *pyobj_cur;
1123 PyObject *pyobj_elem;
1125 if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddNextSibling", &pyobj_cur, &pyobj_elem))
1127 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
1128 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
1130 c_retval = xmlAddNextSibling(cur, elem);
1131 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1135 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED)
1137 libxml_xmlAddPrevSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1138 PyObject *py_retval;
1139 xmlNodePtr c_retval;
1141 PyObject *pyobj_cur;
1143 PyObject *pyobj_elem;
1145 if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddPrevSibling", &pyobj_cur, &pyobj_elem))
1147 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
1148 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
1150 c_retval = xmlAddPrevSibling(cur, elem);
1151 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1155 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) */
1157 libxml_xmlAddSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1158 PyObject *py_retval;
1159 xmlNodePtr c_retval;
1161 PyObject *pyobj_cur;
1163 PyObject *pyobj_elem;
1165 if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddSibling", &pyobj_cur, &pyobj_elem))
1167 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
1168 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
1170 c_retval = xmlAddSibling(cur, elem);
1171 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1175 #if defined(LIBXML_DEBUG_ENABLED)
1177 libxml_xmlBoolToText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1178 PyObject *py_retval;
1179 const char * c_retval;
1182 if (!PyArg_ParseTuple(args, (char *)"i:xmlBoolToText", &boolval))
1185 c_retval = xmlBoolToText(boolval);
1186 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
1190 #endif /* defined(LIBXML_DEBUG_ENABLED) */
1192 libxml_xmlBuildQName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1193 PyObject *py_retval;
1200 if (!PyArg_ParseTuple(args, (char *)"zzzi:xmlBuildQName", &ncname, &prefix, &memory, &len))
1203 c_retval = xmlBuildQName(ncname, prefix, memory, len);
1204 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1209 libxml_xmlBuildRelativeURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1210 PyObject *py_retval;
1215 if (!PyArg_ParseTuple(args, (char *)"zz:xmlBuildRelativeURI", &URI, &base))
1218 c_retval = xmlBuildRelativeURI(URI, base);
1219 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1224 libxml_xmlBuildURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1225 PyObject *py_retval;
1230 if (!PyArg_ParseTuple(args, (char *)"zz:xmlBuildURI", &URI, &base))
1233 c_retval = xmlBuildURI(URI, base);
1234 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1239 libxml_xmlByteConsumed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1240 PyObject *py_retval;
1242 xmlParserCtxtPtr ctxt;
1243 PyObject *pyobj_ctxt;
1245 if (!PyArg_ParseTuple(args, (char *)"O:xmlByteConsumed", &pyobj_ctxt))
1247 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
1249 c_retval = xmlByteConsumed(ctxt);
1250 py_retval = libxml_longWrap((long) c_retval);
1255 libxml_xmlCanonicPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1256 PyObject *py_retval;
1260 if (!PyArg_ParseTuple(args, (char *)"z:xmlCanonicPath", &path))
1263 c_retval = xmlCanonicPath(path);
1264 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1268 #if defined(LIBXML_CATALOG_ENABLED)
1270 libxml_xmlCatalogAdd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1271 PyObject *py_retval;
1277 if (!PyArg_ParseTuple(args, (char *)"zzz:xmlCatalogAdd", &type, &orig, &replace))
1280 c_retval = xmlCatalogAdd(type, orig, replace);
1281 py_retval = libxml_intWrap((int) c_retval);
1285 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1286 #if defined(LIBXML_CATALOG_ENABLED)
1288 libxml_xmlCatalogCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
1290 xmlCatalogCleanup();
1295 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1296 #if defined(LIBXML_CATALOG_ENABLED)
1298 libxml_xmlCatalogConvert(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
1299 PyObject *py_retval;
1302 c_retval = xmlCatalogConvert();
1303 py_retval = libxml_intWrap((int) c_retval);
1307 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1308 #if defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
1310 libxml_xmlCatalogDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1312 PyObject *pyobj_out;
1314 if (!PyArg_ParseTuple(args, (char *)"O:xmlCatalogDump", &pyobj_out))
1316 out = (FILE *) PyFile_Get(pyobj_out);
1318 xmlCatalogDump(out);
1319 PyFile_Release(out);
1324 #endif /* defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
1325 #if defined(LIBXML_CATALOG_ENABLED)
1327 libxml_xmlCatalogGetPublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1328 PyObject *py_retval;
1329 const xmlChar * c_retval;
1332 if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogGetPublic", &pubID))
1335 c_retval = xmlCatalogGetPublic(pubID);
1336 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
1340 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1341 #if defined(LIBXML_CATALOG_ENABLED)
1343 libxml_xmlCatalogGetSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1344 PyObject *py_retval;
1345 const xmlChar * c_retval;
1348 if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogGetSystem", &sysID))
1351 c_retval = xmlCatalogGetSystem(sysID);
1352 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
1356 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1357 #if defined(LIBXML_CATALOG_ENABLED)
1359 libxml_xmlCatalogIsEmpty(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1360 PyObject *py_retval;
1362 xmlCatalogPtr catal;
1363 PyObject *pyobj_catal;
1365 if (!PyArg_ParseTuple(args, (char *)"O:xmlCatalogIsEmpty", &pyobj_catal))
1367 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
1369 c_retval = xmlCatalogIsEmpty(catal);
1370 py_retval = libxml_intWrap((int) c_retval);
1374 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1375 #if defined(LIBXML_CATALOG_ENABLED)
1377 libxml_xmlCatalogRemove(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1378 PyObject *py_retval;
1382 if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogRemove", &value))
1385 c_retval = xmlCatalogRemove(value);
1386 py_retval = libxml_intWrap((int) c_retval);
1390 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1391 #if defined(LIBXML_CATALOG_ENABLED)
1393 libxml_xmlCatalogResolve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1394 PyObject *py_retval;
1399 if (!PyArg_ParseTuple(args, (char *)"zz:xmlCatalogResolve", &pubID, &sysID))
1402 c_retval = xmlCatalogResolve(pubID, sysID);
1403 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1407 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1408 #if defined(LIBXML_CATALOG_ENABLED)
1410 libxml_xmlCatalogResolvePublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1411 PyObject *py_retval;
1415 if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogResolvePublic", &pubID))
1418 c_retval = xmlCatalogResolvePublic(pubID);
1419 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1423 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1424 #if defined(LIBXML_CATALOG_ENABLED)
1426 libxml_xmlCatalogResolveSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1427 PyObject *py_retval;
1431 if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogResolveSystem", &sysID))
1434 c_retval = xmlCatalogResolveSystem(sysID);
1435 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1439 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1440 #if defined(LIBXML_CATALOG_ENABLED)
1442 libxml_xmlCatalogResolveURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1443 PyObject *py_retval;
1447 if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogResolveURI", &URI))
1450 c_retval = xmlCatalogResolveURI(URI);
1451 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1455 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1456 #if defined(LIBXML_CATALOG_ENABLED)
1458 libxml_xmlCatalogSetDebug(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1459 PyObject *py_retval;
1463 if (!PyArg_ParseTuple(args, (char *)"i:xmlCatalogSetDebug", &level))
1466 c_retval = xmlCatalogSetDebug(level);
1467 py_retval = libxml_intWrap((int) c_retval);
1471 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1473 libxml_xmlCharStrdup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1474 PyObject *py_retval;
1478 if (!PyArg_ParseTuple(args, (char *)"z:xmlCharStrdup", &cur))
1481 c_retval = xmlCharStrdup(cur);
1482 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1487 libxml_xmlCharStrndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1488 PyObject *py_retval;
1493 if (!PyArg_ParseTuple(args, (char *)"zi:xmlCharStrndup", &cur, &len))
1496 c_retval = xmlCharStrndup(cur, len);
1497 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
1502 libxml_xmlCheckFilename(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1503 PyObject *py_retval;
1507 if (!PyArg_ParseTuple(args, (char *)"z:xmlCheckFilename", &path))
1510 c_retval = xmlCheckFilename(path);
1511 py_retval = libxml_intWrap((int) c_retval);
1516 libxml_xmlCheckLanguageID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1517 PyObject *py_retval;
1521 if (!PyArg_ParseTuple(args, (char *)"z:xmlCheckLanguageID", &lang))
1524 c_retval = xmlCheckLanguageID(lang);
1525 py_retval = libxml_intWrap((int) c_retval);
1530 libxml_xmlCheckUTF8(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1531 PyObject *py_retval;
1533 unsigned char * utf;
1535 if (!PyArg_ParseTuple(args, (char *)"z:xmlCheckUTF8", &utf))
1538 c_retval = xmlCheckUTF8(utf);
1539 py_retval = libxml_intWrap((int) c_retval);
1544 libxml_xmlCheckVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1547 if (!PyArg_ParseTuple(args, (char *)"i:xmlCheckVersion", &version))
1550 xmlCheckVersion(version);
1556 libxml_xmlCleanupCharEncodingHandlers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
1558 xmlCleanupCharEncodingHandlers();
1564 libxml_xmlCleanupEncodingAliases(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
1566 xmlCleanupEncodingAliases();
1572 libxml_xmlCleanupGlobals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
1574 xmlCleanupGlobals();
1580 libxml_xmlCleanupInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
1582 xmlCleanupInputCallbacks();
1587 #if defined(LIBXML_OUTPUT_ENABLED)
1589 libxml_xmlCleanupOutputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
1591 xmlCleanupOutputCallbacks();
1596 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
1597 #if defined(LIBXML_LEGACY_ENABLED)
1599 libxml_xmlCleanupPredefinedEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
1601 xmlCleanupPredefinedEntities();
1606 #endif /* defined(LIBXML_LEGACY_ENABLED) */
1608 libxml_xmlClearParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1609 xmlParserCtxtPtr ctxt;
1610 PyObject *pyobj_ctxt;
1612 if (!PyArg_ParseTuple(args, (char *)"O:xmlClearParserCtxt", &pyobj_ctxt))
1614 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
1616 xmlClearParserCtxt(ctxt);
1621 #if defined(LIBXML_CATALOG_ENABLED)
1623 libxml_xmlConvertSGMLCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1624 PyObject *py_retval;
1626 xmlCatalogPtr catal;
1627 PyObject *pyobj_catal;
1629 if (!PyArg_ParseTuple(args, (char *)"O:xmlConvertSGMLCatalog", &pyobj_catal))
1631 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
1633 c_retval = xmlConvertSGMLCatalog(catal);
1634 py_retval = libxml_intWrap((int) c_retval);
1638 #endif /* defined(LIBXML_CATALOG_ENABLED) */
1640 libxml_xmlCopyChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1641 PyObject *py_retval;
1647 if (!PyArg_ParseTuple(args, (char *)"izi:xmlCopyChar", &len, &out, &val))
1650 c_retval = xmlCopyChar(len, out, val);
1651 py_retval = libxml_intWrap((int) c_retval);
1656 libxml_xmlCopyCharMultiByte(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1657 PyObject *py_retval;
1662 if (!PyArg_ParseTuple(args, (char *)"zi:xmlCopyCharMultiByte", &out, &val))
1665 c_retval = xmlCopyCharMultiByte(out, val);
1666 py_retval = libxml_intWrap((int) c_retval);
1670 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
1672 libxml_xmlCopyDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1673 PyObject *py_retval;
1676 PyObject *pyobj_doc;
1679 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlCopyDoc", &pyobj_doc, &recursive))
1681 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
1683 c_retval = xmlCopyDoc(doc, recursive);
1684 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
1688 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
1689 #if defined(LIBXML_TREE_ENABLED)
1691 libxml_xmlCopyDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1692 PyObject *py_retval;
1695 PyObject *pyobj_dtd;
1697 if (!PyArg_ParseTuple(args, (char *)"O:xmlCopyDtd", &pyobj_dtd))
1699 dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd);
1701 c_retval = xmlCopyDtd(dtd);
1702 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1706 #endif /* defined(LIBXML_TREE_ENABLED) */
1708 libxml_xmlCopyError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1709 PyObject *py_retval;
1712 PyObject *pyobj_from;
1716 if (!PyArg_ParseTuple(args, (char *)"OO:xmlCopyError", &pyobj_from, &pyobj_to))
1718 from = (xmlErrorPtr) PyError_Get(pyobj_from);
1719 to = (xmlErrorPtr) PyError_Get(pyobj_to);
1721 c_retval = xmlCopyError(from, to);
1722 py_retval = libxml_intWrap((int) c_retval);
1727 libxml_xmlCopyNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1728 PyObject *py_retval;
1731 PyObject *pyobj_cur;
1733 if (!PyArg_ParseTuple(args, (char *)"O:xmlCopyNamespace", &pyobj_cur))
1735 cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur);
1737 c_retval = xmlCopyNamespace(cur);
1738 py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval);
1743 libxml_xmlCopyNamespaceList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1744 PyObject *py_retval;
1747 PyObject *pyobj_cur;
1749 if (!PyArg_ParseTuple(args, (char *)"O:xmlCopyNamespaceList", &pyobj_cur))
1751 cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur);
1753 c_retval = xmlCopyNamespaceList(cur);
1754 py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval);
1759 libxml_xmlCopyNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1760 PyObject *py_retval;
1761 xmlNodePtr c_retval;
1763 PyObject *pyobj_node;
1766 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlCopyNode", &pyobj_node, &extended))
1768 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
1770 c_retval = xmlCopyNode(node, extended);
1771 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1776 libxml_xmlCopyNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1777 PyObject *py_retval;
1778 xmlNodePtr c_retval;
1780 PyObject *pyobj_node;
1782 if (!PyArg_ParseTuple(args, (char *)"O:xmlCopyNodeList", &pyobj_node))
1784 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
1786 c_retval = xmlCopyNodeList(node);
1787 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1792 libxml_xmlCopyProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1793 PyObject *py_retval;
1794 xmlAttrPtr c_retval;
1796 PyObject *pyobj_target;
1798 PyObject *pyobj_cur;
1800 if (!PyArg_ParseTuple(args, (char *)"OO:xmlCopyProp", &pyobj_target, &pyobj_cur))
1802 target = (xmlNodePtr) PyxmlNode_Get(pyobj_target);
1803 cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur);
1805 c_retval = xmlCopyProp(target, cur);
1806 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1811 libxml_xmlCopyPropList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1812 PyObject *py_retval;
1813 xmlAttrPtr c_retval;
1815 PyObject *pyobj_target;
1817 PyObject *pyobj_cur;
1819 if (!PyArg_ParseTuple(args, (char *)"OO:xmlCopyPropList", &pyobj_target, &pyobj_cur))
1821 target = (xmlNodePtr) PyxmlNode_Get(pyobj_target);
1822 cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur);
1824 c_retval = xmlCopyPropList(target, cur);
1825 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1830 libxml_xmlCreateDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1831 PyObject *py_retval;
1832 xmlParserCtxtPtr c_retval;
1835 if (!PyArg_ParseTuple(args, (char *)"z:xmlCreateDocParserCtxt", &cur))
1838 c_retval = xmlCreateDocParserCtxt(cur);
1839 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
1844 libxml_xmlCreateEntityParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1845 PyObject *py_retval;
1846 xmlParserCtxtPtr c_retval;
1851 if (!PyArg_ParseTuple(args, (char *)"zzz:xmlCreateEntityParserCtxt", &URL, &ID, &base))
1854 c_retval = xmlCreateEntityParserCtxt(URL, ID, base);
1855 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
1860 libxml_xmlCreateFileParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1861 PyObject *py_retval;
1862 xmlParserCtxtPtr c_retval;
1865 if (!PyArg_ParseTuple(args, (char *)"z:xmlCreateFileParserCtxt", &filename))
1868 c_retval = xmlCreateFileParserCtxt(filename);
1869 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
1874 libxml_xmlCreateIntSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1875 PyObject *py_retval;
1878 PyObject *pyobj_doc;
1880 xmlChar * ExternalID;
1883 if (!PyArg_ParseTuple(args, (char *)"Ozzz:xmlCreateIntSubset", &pyobj_doc, &name, &ExternalID, &SystemID))
1885 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
1887 c_retval = xmlCreateIntSubset(doc, name, ExternalID, SystemID);
1888 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
1893 libxml_xmlCreateMemoryParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1894 PyObject *py_retval;
1895 xmlParserCtxtPtr c_retval;
1900 if (!PyArg_ParseTuple(args, (char *)"s#i:xmlCreateMemoryParserCtxt", &buffer, &py_buffsize0, &size))
1903 c_retval = xmlCreateMemoryParserCtxt(buffer, size);
1904 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
1909 libxml_xmlCreateURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
1910 PyObject *py_retval;
1913 c_retval = xmlCreateURI();
1914 py_retval = libxml_xmlURIPtrWrap((xmlURIPtr) c_retval);
1919 libxml_xmlCreateURLParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1920 PyObject *py_retval;
1921 xmlParserCtxtPtr c_retval;
1925 if (!PyArg_ParseTuple(args, (char *)"zi:xmlCreateURLParserCtxt", &filename, &options))
1928 c_retval = xmlCreateURLParserCtxt(filename, options);
1929 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
1934 libxml_xmlCtxtReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1935 PyObject *py_retval;
1937 xmlParserCtxtPtr ctxt;
1938 PyObject *pyobj_ctxt;
1944 if (!PyArg_ParseTuple(args, (char *)"Ozzzi:xmlCtxtReadDoc", &pyobj_ctxt, &cur, &URL, &encoding, &options))
1946 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
1948 c_retval = xmlCtxtReadDoc(ctxt, cur, URL, encoding, options);
1949 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
1954 libxml_xmlCtxtReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1955 PyObject *py_retval;
1957 xmlParserCtxtPtr ctxt;
1958 PyObject *pyobj_ctxt;
1964 if (!PyArg_ParseTuple(args, (char *)"Oizzi:xmlCtxtReadFd", &pyobj_ctxt, &fd, &URL, &encoding, &options))
1966 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
1968 c_retval = xmlCtxtReadFd(ctxt, fd, URL, encoding, options);
1969 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
1974 libxml_xmlCtxtReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1975 PyObject *py_retval;
1977 xmlParserCtxtPtr ctxt;
1978 PyObject *pyobj_ctxt;
1983 if (!PyArg_ParseTuple(args, (char *)"Ozzi:xmlCtxtReadFile", &pyobj_ctxt, &filename, &encoding, &options))
1985 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
1987 c_retval = xmlCtxtReadFile(ctxt, filename, encoding, options);
1988 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
1993 libxml_xmlCtxtReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
1994 PyObject *py_retval;
1996 xmlParserCtxtPtr ctxt;
1997 PyObject *pyobj_ctxt;
2005 if (!PyArg_ParseTuple(args, (char *)"Os#izzi:xmlCtxtReadMemory", &pyobj_ctxt, &buffer, &py_buffsize0, &size, &URL, &encoding, &options))
2007 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
2009 c_retval = xmlCtxtReadMemory(ctxt, buffer, size, URL, encoding, options);
2010 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
2015 libxml_xmlCtxtReset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2016 xmlParserCtxtPtr ctxt;
2017 PyObject *pyobj_ctxt;
2019 if (!PyArg_ParseTuple(args, (char *)"O:xmlCtxtReset", &pyobj_ctxt))
2021 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
2029 libxml_xmlCtxtResetPush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2030 PyObject *py_retval;
2032 xmlParserCtxtPtr ctxt;
2033 PyObject *pyobj_ctxt;
2040 if (!PyArg_ParseTuple(args, (char *)"Os#izz:xmlCtxtResetPush", &pyobj_ctxt, &chunk, &py_buffsize0, &size, &filename, &encoding))
2042 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
2044 c_retval = xmlCtxtResetPush(ctxt, chunk, size, filename, encoding);
2045 py_retval = libxml_intWrap((int) c_retval);
2050 libxml_xmlCtxtUseOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2051 PyObject *py_retval;
2053 xmlParserCtxtPtr ctxt;
2054 PyObject *pyobj_ctxt;
2057 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlCtxtUseOptions", &pyobj_ctxt, &options))
2059 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
2061 c_retval = xmlCtxtUseOptions(ctxt, options);
2062 py_retval = libxml_intWrap((int) c_retval);
2066 #if defined(LIBXML_DEBUG_ENABLED)
2068 libxml_xmlDebugCheckDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2069 PyObject *py_retval;
2072 PyObject *pyobj_output;
2074 PyObject *pyobj_doc;
2076 if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugCheckDocument", &pyobj_output, &pyobj_doc))
2078 output = (FILE *) PyFile_Get(pyobj_output);
2079 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2081 c_retval = xmlDebugCheckDocument(output, doc);
2082 PyFile_Release(output);
2083 py_retval = libxml_intWrap((int) c_retval);
2087 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2088 #if defined(LIBXML_DEBUG_ENABLED)
2090 libxml_xmlDebugDumpAttr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2092 PyObject *pyobj_output;
2094 PyObject *pyobj_attr;
2097 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpAttr", &pyobj_output, &pyobj_attr, &depth))
2099 output = (FILE *) PyFile_Get(pyobj_output);
2100 attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr);
2102 xmlDebugDumpAttr(output, attr, depth);
2103 PyFile_Release(output);
2108 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2109 #if defined(LIBXML_DEBUG_ENABLED)
2111 libxml_xmlDebugDumpAttrList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2113 PyObject *pyobj_output;
2115 PyObject *pyobj_attr;
2118 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpAttrList", &pyobj_output, &pyobj_attr, &depth))
2120 output = (FILE *) PyFile_Get(pyobj_output);
2121 attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr);
2123 xmlDebugDumpAttrList(output, attr, depth);
2124 PyFile_Release(output);
2129 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2130 #if defined(LIBXML_DEBUG_ENABLED)
2132 libxml_xmlDebugDumpDTD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2134 PyObject *pyobj_output;
2136 PyObject *pyobj_dtd;
2138 if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugDumpDTD", &pyobj_output, &pyobj_dtd))
2140 output = (FILE *) PyFile_Get(pyobj_output);
2141 dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd);
2143 xmlDebugDumpDTD(output, dtd);
2144 PyFile_Release(output);
2149 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2150 #if defined(LIBXML_DEBUG_ENABLED)
2152 libxml_xmlDebugDumpDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2154 PyObject *pyobj_output;
2156 PyObject *pyobj_doc;
2158 if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugDumpDocument", &pyobj_output, &pyobj_doc))
2160 output = (FILE *) PyFile_Get(pyobj_output);
2161 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2163 xmlDebugDumpDocument(output, doc);
2164 PyFile_Release(output);
2169 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2170 #if defined(LIBXML_DEBUG_ENABLED)
2172 libxml_xmlDebugDumpDocumentHead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2174 PyObject *pyobj_output;
2176 PyObject *pyobj_doc;
2178 if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugDumpDocumentHead", &pyobj_output, &pyobj_doc))
2180 output = (FILE *) PyFile_Get(pyobj_output);
2181 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2183 xmlDebugDumpDocumentHead(output, doc);
2184 PyFile_Release(output);
2189 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2190 #if defined(LIBXML_DEBUG_ENABLED)
2192 libxml_xmlDebugDumpEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2194 PyObject *pyobj_output;
2196 PyObject *pyobj_doc;
2198 if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugDumpEntities", &pyobj_output, &pyobj_doc))
2200 output = (FILE *) PyFile_Get(pyobj_output);
2201 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2203 xmlDebugDumpEntities(output, doc);
2204 PyFile_Release(output);
2209 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2210 #if defined(LIBXML_DEBUG_ENABLED)
2212 libxml_xmlDebugDumpNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2214 PyObject *pyobj_output;
2216 PyObject *pyobj_node;
2219 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpNode", &pyobj_output, &pyobj_node, &depth))
2221 output = (FILE *) PyFile_Get(pyobj_output);
2222 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
2224 xmlDebugDumpNode(output, node, depth);
2225 PyFile_Release(output);
2230 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2231 #if defined(LIBXML_DEBUG_ENABLED)
2233 libxml_xmlDebugDumpNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2235 PyObject *pyobj_output;
2237 PyObject *pyobj_node;
2240 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpNodeList", &pyobj_output, &pyobj_node, &depth))
2242 output = (FILE *) PyFile_Get(pyobj_output);
2243 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
2245 xmlDebugDumpNodeList(output, node, depth);
2246 PyFile_Release(output);
2251 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2252 #if defined(LIBXML_DEBUG_ENABLED)
2254 libxml_xmlDebugDumpOneNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2256 PyObject *pyobj_output;
2258 PyObject *pyobj_node;
2261 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpOneNode", &pyobj_output, &pyobj_node, &depth))
2263 output = (FILE *) PyFile_Get(pyobj_output);
2264 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
2266 xmlDebugDumpOneNode(output, node, depth);
2267 PyFile_Release(output);
2272 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2273 #if defined(LIBXML_DEBUG_ENABLED)
2275 libxml_xmlDebugDumpString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2277 PyObject *pyobj_output;
2280 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlDebugDumpString", &pyobj_output, &str))
2282 output = (FILE *) PyFile_Get(pyobj_output);
2284 xmlDebugDumpString(output, str);
2285 PyFile_Release(output);
2290 #endif /* defined(LIBXML_DEBUG_ENABLED) */
2291 #if defined(LIBXML_LEGACY_ENABLED)
2293 libxml_xmlDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2294 PyObject *py_retval;
2296 xmlParserCtxtPtr ctxt;
2297 PyObject *pyobj_ctxt;
2304 if (!PyArg_ParseTuple(args, (char *)"Oiiccc:xmlDecodeEntities", &pyobj_ctxt, &len, &what, &end, &end2, &end3))
2306 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
2308 c_retval = xmlDecodeEntities(ctxt, len, what, end, end2, end3);
2309 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
2313 #endif /* defined(LIBXML_LEGACY_ENABLED) */
2315 libxml_xmlDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
2317 xmlDefaultSAXHandlerInit();
2323 libxml_xmlDelEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2324 PyObject *py_retval;
2328 if (!PyArg_ParseTuple(args, (char *)"z:xmlDelEncodingAlias", &alias))
2331 c_retval = xmlDelEncodingAlias(alias);
2332 py_retval = libxml_intWrap((int) c_retval);
2337 libxml_xmlDictCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
2345 libxml_xmlDocCopyNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2346 PyObject *py_retval;
2347 xmlNodePtr c_retval;
2349 PyObject *pyobj_node;
2351 PyObject *pyobj_doc;
2354 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDocCopyNode", &pyobj_node, &pyobj_doc, &extended))
2356 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
2357 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2359 c_retval = xmlDocCopyNode(node, doc, extended);
2360 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
2365 libxml_xmlDocCopyNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2366 PyObject *py_retval;
2367 xmlNodePtr c_retval;
2369 PyObject *pyobj_doc;
2371 PyObject *pyobj_node;
2373 if (!PyArg_ParseTuple(args, (char *)"OO:xmlDocCopyNodeList", &pyobj_doc, &pyobj_node))
2375 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2376 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
2378 c_retval = xmlDocCopyNodeList(doc, node);
2379 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
2383 #if defined(LIBXML_OUTPUT_ENABLED)
2385 libxml_xmlDocDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2386 PyObject *py_retval;
2391 PyObject *pyobj_cur;
2393 if (!PyArg_ParseTuple(args, (char *)"OO:xmlDocDump", &pyobj_f, &pyobj_cur))
2395 f = (FILE *) PyFile_Get(pyobj_f);
2396 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
2398 c_retval = xmlDocDump(f, cur);
2400 py_retval = libxml_intWrap((int) c_retval);
2404 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
2405 #if defined(LIBXML_OUTPUT_ENABLED)
2407 libxml_xmlDocFormatDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2408 PyObject *py_retval;
2413 PyObject *pyobj_cur;
2416 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDocFormatDump", &pyobj_f, &pyobj_cur, &format))
2418 f = (FILE *) PyFile_Get(pyobj_f);
2419 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
2421 c_retval = xmlDocFormatDump(f, cur, format);
2423 py_retval = libxml_intWrap((int) c_retval);
2427 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
2429 libxml_xmlDocGetRootElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2430 PyObject *py_retval;
2431 xmlNodePtr c_retval;
2433 PyObject *pyobj_doc;
2435 if (!PyArg_ParseTuple(args, (char *)"O:xmlDocGetRootElement", &pyobj_doc))
2437 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
2439 c_retval = xmlDocGetRootElement(doc);
2440 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
2444 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED)
2446 libxml_xmlDocSetRootElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2447 PyObject *py_retval;
2448 xmlNodePtr c_retval;
2450 PyObject *pyobj_doc;
2452 PyObject *pyobj_root;
2454 if (!PyArg_ParseTuple(args, (char *)"OO:xmlDocSetRootElement", &pyobj_doc, &pyobj_root))
2456 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2457 root = (xmlNodePtr) PyxmlNode_Get(pyobj_root);
2459 c_retval = xmlDocSetRootElement(doc, root);
2460 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
2464 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */
2465 #if defined(LIBXML_OUTPUT_ENABLED)
2467 libxml_xmlElemDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2471 PyObject *pyobj_doc;
2473 PyObject *pyobj_cur;
2475 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlElemDump", &pyobj_f, &pyobj_doc, &pyobj_cur))
2477 f = (FILE *) PyFile_Get(pyobj_f);
2478 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2479 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
2481 xmlElemDump(f, doc, cur);
2487 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
2488 #if defined(LIBXML_LEGACY_ENABLED)
2490 libxml_xmlEncodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2491 PyObject *py_retval;
2492 const xmlChar * c_retval;
2494 PyObject *pyobj_doc;
2497 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlEncodeEntities", &pyobj_doc, &input))
2499 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2501 c_retval = xmlEncodeEntities(doc, input);
2502 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
2506 #endif /* defined(LIBXML_LEGACY_ENABLED) */
2508 libxml_xmlEncodeEntitiesReentrant(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2509 PyObject *py_retval;
2512 PyObject *pyobj_doc;
2515 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlEncodeEntitiesReentrant", &pyobj_doc, &input))
2517 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2519 c_retval = xmlEncodeEntitiesReentrant(doc, input);
2520 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
2525 libxml_xmlEncodeSpecialChars(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2526 PyObject *py_retval;
2529 PyObject *pyobj_doc;
2532 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlEncodeSpecialChars", &pyobj_doc, &input))
2534 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
2536 c_retval = xmlEncodeSpecialChars(doc, input);
2537 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
2542 libxml_xmlErrorGetCode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2543 PyObject *py_retval;
2546 PyObject *pyobj_Error;
2548 if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetCode", &pyobj_Error))
2550 Error = (xmlErrorPtr) PyError_Get(pyobj_Error);
2552 c_retval = Error->code;
2553 py_retval = libxml_intWrap((int) c_retval);
2558 libxml_xmlErrorGetDomain(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2559 PyObject *py_retval;
2562 PyObject *pyobj_Error;
2564 if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetDomain", &pyobj_Error))
2566 Error = (xmlErrorPtr) PyError_Get(pyobj_Error);
2568 c_retval = Error->domain;
2569 py_retval = libxml_intWrap((int) c_retval);
2574 libxml_xmlErrorGetFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2575 PyObject *py_retval;
2576 const char * c_retval;
2578 PyObject *pyobj_Error;
2580 if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetFile", &pyobj_Error))
2582 Error = (xmlErrorPtr) PyError_Get(pyobj_Error);
2584 c_retval = Error->file;
2585 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
2590 libxml_xmlErrorGetLevel(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2591 PyObject *py_retval;
2594 PyObject *pyobj_Error;
2596 if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetLevel", &pyobj_Error))
2598 Error = (xmlErrorPtr) PyError_Get(pyobj_Error);
2600 c_retval = Error->level;
2601 py_retval = libxml_intWrap((int) c_retval);
2606 libxml_xmlErrorGetLine(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2607 PyObject *py_retval;
2610 PyObject *pyobj_Error;
2612 if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetLine", &pyobj_Error))
2614 Error = (xmlErrorPtr) PyError_Get(pyobj_Error);
2616 c_retval = Error->line;
2617 py_retval = libxml_intWrap((int) c_retval);
2622 libxml_xmlErrorGetMessage(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2623 PyObject *py_retval;
2624 const char * c_retval;
2626 PyObject *pyobj_Error;
2628 if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetMessage", &pyobj_Error))
2630 Error = (xmlErrorPtr) PyError_Get(pyobj_Error);
2632 c_retval = Error->message;
2633 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
2638 libxml_xmlFileMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2639 PyObject *py_retval;
2643 if (!PyArg_ParseTuple(args, (char *)"z:xmlFileMatch", &filename))
2646 c_retval = xmlFileMatch(filename);
2647 py_retval = libxml_intWrap((int) c_retval);
2651 #if defined(LIBXML_TREE_ENABLED)
2653 libxml_xmlFirstElementChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2654 PyObject *py_retval;
2655 xmlNodePtr c_retval;
2657 PyObject *pyobj_parent;
2659 if (!PyArg_ParseTuple(args, (char *)"O:xmlFirstElementChild", &pyobj_parent))
2661 parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent);
2663 c_retval = xmlFirstElementChild(parent);
2664 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
2668 #endif /* defined(LIBXML_TREE_ENABLED) */
2669 #if defined(LIBXML_CATALOG_ENABLED)
2671 libxml_xmlFreeCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2672 xmlCatalogPtr catal;
2673 PyObject *pyobj_catal;
2675 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeCatalog", &pyobj_catal))
2677 catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal);
2679 xmlFreeCatalog(catal);
2684 #endif /* defined(LIBXML_CATALOG_ENABLED) */
2686 libxml_xmlFreeDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2688 PyObject *pyobj_cur;
2690 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeDoc", &pyobj_cur))
2692 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
2700 libxml_xmlFreeDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2702 PyObject *pyobj_cur;
2704 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeDtd", &pyobj_cur))
2706 cur = (xmlDtdPtr) PyxmlNode_Get(pyobj_cur);
2714 libxml_xmlFreeNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2716 PyObject *pyobj_cur;
2718 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeNode", &pyobj_cur))
2720 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
2728 libxml_xmlFreeNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2730 PyObject *pyobj_cur;
2732 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeNodeList", &pyobj_cur))
2734 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
2736 xmlFreeNodeList(cur);
2742 libxml_xmlFreeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2744 PyObject *pyobj_cur;
2746 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeNs", &pyobj_cur))
2748 cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur);
2756 libxml_xmlFreeNsList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2758 PyObject *pyobj_cur;
2760 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeNsList", &pyobj_cur))
2762 cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur);
2770 libxml_xmlFreeParserInputBuffer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2771 xmlParserInputBufferPtr in;
2774 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeParserInputBuffer", &pyobj_in))
2776 in = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_in);
2778 xmlFreeParserInputBuffer(in);
2784 libxml_xmlFreeProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2786 PyObject *pyobj_cur;
2788 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeProp", &pyobj_cur))
2790 cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur);
2798 libxml_xmlFreePropList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2800 PyObject *pyobj_cur;
2802 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreePropList", &pyobj_cur))
2804 cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur);
2806 xmlFreePropList(cur);
2812 libxml_xmlFreeURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2814 PyObject *pyobj_uri;
2816 if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeURI", &pyobj_uri))
2818 uri = (xmlURIPtr) PyURI_Get(pyobj_uri);
2826 libxml_xmlGetCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
2827 PyObject *py_retval;
2830 c_retval = xmlGetCompressMode();
2831 py_retval = libxml_intWrap((int) c_retval);
2836 libxml_xmlGetDocCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2837 PyObject *py_retval;
2840 PyObject *pyobj_doc;
2842 if (!PyArg_ParseTuple(args, (char *)"O:xmlGetDocCompressMode", &pyobj_doc))
2844 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
2846 c_retval = xmlGetDocCompressMode(doc);
2847 py_retval = libxml_intWrap((int) c_retval);
2852 libxml_xmlGetDocEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2853 PyObject *py_retval;
2854 xmlEntityPtr c_retval;
2856 PyObject *pyobj_doc;
2859 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetDocEntity", &pyobj_doc, &name))
2861 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
2863 c_retval = xmlGetDocEntity(doc, name);
2864 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
2869 libxml_xmlGetDtdAttrDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2870 PyObject *py_retval;
2871 xmlAttributePtr c_retval;
2873 PyObject *pyobj_dtd;
2877 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlGetDtdAttrDesc", &pyobj_dtd, &elem, &name))
2879 dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd);
2881 c_retval = xmlGetDtdAttrDesc(dtd, elem, name);
2882 py_retval = libxml_xmlAttributePtrWrap((xmlAttributePtr) c_retval);
2887 libxml_xmlGetDtdElementDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2888 PyObject *py_retval;
2889 xmlElementPtr c_retval;
2891 PyObject *pyobj_dtd;
2894 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetDtdElementDesc", &pyobj_dtd, &name))
2896 dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd);
2898 c_retval = xmlGetDtdElementDesc(dtd, name);
2899 py_retval = libxml_xmlElementPtrWrap((xmlElementPtr) c_retval);
2904 libxml_xmlGetDtdEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2905 PyObject *py_retval;
2906 xmlEntityPtr c_retval;
2908 PyObject *pyobj_doc;
2911 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetDtdEntity", &pyobj_doc, &name))
2913 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2915 c_retval = xmlGetDtdEntity(doc, name);
2916 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
2921 libxml_xmlGetDtdQAttrDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2922 PyObject *py_retval;
2923 xmlAttributePtr c_retval;
2925 PyObject *pyobj_dtd;
2930 if (!PyArg_ParseTuple(args, (char *)"Ozzz:xmlGetDtdQAttrDesc", &pyobj_dtd, &elem, &name, &prefix))
2932 dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd);
2934 c_retval = xmlGetDtdQAttrDesc(dtd, elem, name, prefix);
2935 py_retval = libxml_xmlAttributePtrWrap((xmlAttributePtr) c_retval);
2940 libxml_xmlGetDtdQElementDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2941 PyObject *py_retval;
2942 xmlElementPtr c_retval;
2944 PyObject *pyobj_dtd;
2948 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlGetDtdQElementDesc", &pyobj_dtd, &name, &prefix))
2950 dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd);
2952 c_retval = xmlGetDtdQElementDesc(dtd, name, prefix);
2953 py_retval = libxml_xmlElementPtrWrap((xmlElementPtr) c_retval);
2958 libxml_xmlGetEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2959 PyObject *py_retval;
2960 const char * c_retval;
2963 if (!PyArg_ParseTuple(args, (char *)"z:xmlGetEncodingAlias", &alias))
2966 c_retval = xmlGetEncodingAlias(alias);
2967 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
2972 libxml_xmlGetID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2973 PyObject *py_retval;
2974 xmlAttrPtr c_retval;
2976 PyObject *pyobj_doc;
2979 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetID", &pyobj_doc, &ID))
2981 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
2983 c_retval = xmlGetID(doc, ID);
2984 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
2989 libxml_xmlGetIntSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
2990 PyObject *py_retval;
2993 PyObject *pyobj_doc;
2995 if (!PyArg_ParseTuple(args, (char *)"O:xmlGetIntSubset", &pyobj_doc))
2997 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
2999 c_retval = xmlGetIntSubset(doc);
3000 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3005 libxml_xmlGetLastChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3006 PyObject *py_retval;
3007 xmlNodePtr c_retval;
3009 PyObject *pyobj_parent;
3011 if (!PyArg_ParseTuple(args, (char *)"O:xmlGetLastChild", &pyobj_parent))
3013 parent = (xmlNode *) PyxmlNode_Get(pyobj_parent);
3015 c_retval = xmlGetLastChild(parent);
3016 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3021 libxml_xmlGetLastError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3022 PyObject *py_retval;
3023 xmlErrorPtr c_retval;
3025 c_retval = xmlGetLastError();
3026 py_retval = libxml_xmlErrorPtrWrap((xmlErrorPtr) c_retval);
3031 libxml_xmlGetLineNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3032 PyObject *py_retval;
3035 PyObject *pyobj_node;
3037 if (!PyArg_ParseTuple(args, (char *)"O:xmlGetLineNo", &pyobj_node))
3039 node = (xmlNode *) PyxmlNode_Get(pyobj_node);
3041 c_retval = xmlGetLineNo(node);
3042 py_retval = libxml_longWrap((long) c_retval);
3047 libxml_xmlGetNoNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3048 PyObject *py_retval;
3051 PyObject *pyobj_node;
3054 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetNoNsProp", &pyobj_node, &name))
3056 node = (xmlNode *) PyxmlNode_Get(pyobj_node);
3058 c_retval = xmlGetNoNsProp(node, name);
3059 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
3063 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED)
3065 libxml_xmlGetNodePath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3066 PyObject *py_retval;
3069 PyObject *pyobj_node;
3071 if (!PyArg_ParseTuple(args, (char *)"O:xmlGetNodePath", &pyobj_node))
3073 node = (xmlNode *) PyxmlNode_Get(pyobj_node);
3075 c_retval = xmlGetNodePath(node);
3076 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
3080 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) */
3082 libxml_xmlGetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3083 PyObject *py_retval;
3086 PyObject *pyobj_node;
3088 xmlChar * nameSpace;
3090 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlGetNsProp", &pyobj_node, &name, &nameSpace))
3092 node = (xmlNode *) PyxmlNode_Get(pyobj_node);
3094 c_retval = xmlGetNsProp(node, name, nameSpace);
3095 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
3100 libxml_xmlGetParameterEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3101 PyObject *py_retval;
3102 xmlEntityPtr c_retval;
3104 PyObject *pyobj_doc;
3107 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetParameterEntity", &pyobj_doc, &name))
3109 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3111 c_retval = xmlGetParameterEntity(doc, name);
3112 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3117 libxml_xmlGetPredefinedEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3118 PyObject *py_retval;
3119 xmlEntityPtr c_retval;
3122 if (!PyArg_ParseTuple(args, (char *)"z:xmlGetPredefinedEntity", &name))
3125 c_retval = xmlGetPredefinedEntity(name);
3126 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3131 libxml_xmlGetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3132 PyObject *py_retval;
3135 PyObject *pyobj_node;
3138 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetProp", &pyobj_node, &name))
3140 node = (xmlNode *) PyxmlNode_Get(pyobj_node);
3142 c_retval = xmlGetProp(node, name);
3143 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
3147 #if defined(LIBXML_LEGACY_ENABLED)
3149 libxml_xmlHandleEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3150 xmlParserCtxtPtr ctxt;
3151 PyObject *pyobj_ctxt;
3152 xmlEntityPtr entity;
3153 PyObject *pyobj_entity;
3155 if (!PyArg_ParseTuple(args, (char *)"OO:xmlHandleEntity", &pyobj_ctxt, &pyobj_entity))
3157 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
3158 entity = (xmlEntityPtr) PyxmlNode_Get(pyobj_entity);
3160 xmlHandleEntity(ctxt, entity);
3165 #endif /* defined(LIBXML_LEGACY_ENABLED) */
3167 libxml_xmlHasNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3168 PyObject *py_retval;
3169 xmlAttrPtr c_retval;
3171 PyObject *pyobj_node;
3173 xmlChar * nameSpace;
3175 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlHasNsProp", &pyobj_node, &name, &nameSpace))
3177 node = (xmlNode *) PyxmlNode_Get(pyobj_node);
3179 c_retval = xmlHasNsProp(node, name, nameSpace);
3180 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3185 libxml_xmlHasProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3186 PyObject *py_retval;
3187 xmlAttrPtr c_retval;
3189 PyObject *pyobj_node;
3192 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlHasProp", &pyobj_node, &name))
3194 node = (xmlNode *) PyxmlNode_Get(pyobj_node);
3196 c_retval = xmlHasProp(node, name);
3197 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3201 #if defined(LIBXML_FTP_ENABLED)
3203 libxml_xmlIOFTPMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3204 PyObject *py_retval;
3208 if (!PyArg_ParseTuple(args, (char *)"z:xmlIOFTPMatch", &filename))
3211 c_retval = xmlIOFTPMatch(filename);
3212 py_retval = libxml_intWrap((int) c_retval);
3216 #endif /* defined(LIBXML_FTP_ENABLED) */
3217 #if defined(LIBXML_HTTP_ENABLED)
3219 libxml_xmlIOHTTPMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3220 PyObject *py_retval;
3224 if (!PyArg_ParseTuple(args, (char *)"z:xmlIOHTTPMatch", &filename))
3227 c_retval = xmlIOHTTPMatch(filename);
3228 py_retval = libxml_intWrap((int) c_retval);
3232 #endif /* defined(LIBXML_HTTP_ENABLED) */
3234 libxml_xmlInitCharEncodingHandlers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3236 xmlInitCharEncodingHandlers();
3242 libxml_xmlInitGlobals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3250 libxml_xmlInitParser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3258 libxml_xmlInitParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3259 PyObject *py_retval;
3261 xmlParserCtxtPtr ctxt;
3262 PyObject *pyobj_ctxt;
3264 if (!PyArg_ParseTuple(args, (char *)"O:xmlInitParserCtxt", &pyobj_ctxt))
3266 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
3268 c_retval = xmlInitParserCtxt(ctxt);
3269 py_retval = libxml_intWrap((int) c_retval);
3273 #if defined(LIBXML_CATALOG_ENABLED)
3275 libxml_xmlInitializeCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3277 xmlInitializeCatalog();
3282 #endif /* defined(LIBXML_CATALOG_ENABLED) */
3284 libxml_xmlInitializeDict(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3285 PyObject *py_retval;
3288 c_retval = xmlInitializeDict();
3289 py_retval = libxml_intWrap((int) c_retval);
3293 #if defined(LIBXML_LEGACY_ENABLED)
3295 libxml_xmlInitializePredefinedEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3297 xmlInitializePredefinedEntities();
3302 #endif /* defined(LIBXML_LEGACY_ENABLED) */
3304 libxml_xmlIsBaseChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3305 PyObject *py_retval;
3309 if (!PyArg_ParseTuple(args, (char *)"i:xmlIsBaseChar", &ch))
3312 c_retval = xmlIsBaseChar(ch);
3313 py_retval = libxml_intWrap((int) c_retval);
3318 libxml_xmlIsBlank(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3319 PyObject *py_retval;
3323 if (!PyArg_ParseTuple(args, (char *)"i:xmlIsBlank", &ch))
3326 c_retval = xmlIsBlank(ch);
3327 py_retval = libxml_intWrap((int) c_retval);
3332 libxml_xmlIsBlankNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3333 PyObject *py_retval;
3336 PyObject *pyobj_node;
3338 if (!PyArg_ParseTuple(args, (char *)"O:xmlIsBlankNode", &pyobj_node))
3340 node = (xmlNode *) PyxmlNode_Get(pyobj_node);
3342 c_retval = xmlIsBlankNode(node);
3343 py_retval = libxml_intWrap((int) c_retval);
3348 libxml_xmlIsChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3349 PyObject *py_retval;
3353 if (!PyArg_ParseTuple(args, (char *)"i:xmlIsChar", &ch))
3356 c_retval = xmlIsChar(ch);
3357 py_retval = libxml_intWrap((int) c_retval);
3362 libxml_xmlIsCombining(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3363 PyObject *py_retval;
3367 if (!PyArg_ParseTuple(args, (char *)"i:xmlIsCombining", &ch))
3370 c_retval = xmlIsCombining(ch);
3371 py_retval = libxml_intWrap((int) c_retval);
3376 libxml_xmlIsDigit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3377 PyObject *py_retval;
3381 if (!PyArg_ParseTuple(args, (char *)"i:xmlIsDigit", &ch))
3384 c_retval = xmlIsDigit(ch);
3385 py_retval = libxml_intWrap((int) c_retval);
3390 libxml_xmlIsExtender(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3391 PyObject *py_retval;
3395 if (!PyArg_ParseTuple(args, (char *)"i:xmlIsExtender", &ch))
3398 c_retval = xmlIsExtender(ch);
3399 py_retval = libxml_intWrap((int) c_retval);
3404 libxml_xmlIsID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3405 PyObject *py_retval;
3408 PyObject *pyobj_doc;
3410 PyObject *pyobj_elem;
3412 PyObject *pyobj_attr;
3414 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlIsID", &pyobj_doc, &pyobj_elem, &pyobj_attr))
3416 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3417 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
3418 attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr);
3420 c_retval = xmlIsID(doc, elem, attr);
3421 py_retval = libxml_intWrap((int) c_retval);
3426 libxml_xmlIsIdeographic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3427 PyObject *py_retval;
3431 if (!PyArg_ParseTuple(args, (char *)"i:xmlIsIdeographic", &ch))
3434 c_retval = xmlIsIdeographic(ch);
3435 py_retval = libxml_intWrap((int) c_retval);
3440 libxml_xmlIsLetter(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3441 PyObject *py_retval;
3445 if (!PyArg_ParseTuple(args, (char *)"i:xmlIsLetter", &c))
3448 c_retval = xmlIsLetter(c);
3449 py_retval = libxml_intWrap((int) c_retval);
3454 libxml_xmlIsMixedElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3455 PyObject *py_retval;
3458 PyObject *pyobj_doc;
3461 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlIsMixedElement", &pyobj_doc, &name))
3463 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3465 c_retval = xmlIsMixedElement(doc, name);
3466 py_retval = libxml_intWrap((int) c_retval);
3471 libxml_xmlIsPubidChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3472 PyObject *py_retval;
3476 if (!PyArg_ParseTuple(args, (char *)"i:xmlIsPubidChar", &ch))
3479 c_retval = xmlIsPubidChar(ch);
3480 py_retval = libxml_intWrap((int) c_retval);
3485 libxml_xmlIsRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3486 PyObject *py_retval;
3489 PyObject *pyobj_doc;
3491 PyObject *pyobj_elem;
3493 PyObject *pyobj_attr;
3495 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlIsRef", &pyobj_doc, &pyobj_elem, &pyobj_attr))
3497 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3498 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
3499 attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr);
3501 c_retval = xmlIsRef(doc, elem, attr);
3502 py_retval = libxml_intWrap((int) c_retval);
3507 libxml_xmlIsXHTML(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3508 PyObject *py_retval;
3513 if (!PyArg_ParseTuple(args, (char *)"zz:xmlIsXHTML", &systemID, &publicID))
3516 c_retval = xmlIsXHTML(systemID, publicID);
3517 py_retval = libxml_intWrap((int) c_retval);
3522 libxml_xmlKeepBlanksDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3523 PyObject *py_retval;
3527 if (!PyArg_ParseTuple(args, (char *)"i:xmlKeepBlanksDefault", &val))
3530 c_retval = xmlKeepBlanksDefault(val);
3531 py_retval = libxml_intWrap((int) c_retval);
3535 #if defined(LIBXML_TREE_ENABLED)
3537 libxml_xmlLastElementChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3538 PyObject *py_retval;
3539 xmlNodePtr c_retval;
3541 PyObject *pyobj_parent;
3543 if (!PyArg_ParseTuple(args, (char *)"O:xmlLastElementChild", &pyobj_parent))
3545 parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent);
3547 c_retval = xmlLastElementChild(parent);
3548 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3552 #endif /* defined(LIBXML_TREE_ENABLED) */
3554 libxml_xmlLineNumbersDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3555 PyObject *py_retval;
3559 if (!PyArg_ParseTuple(args, (char *)"i:xmlLineNumbersDefault", &val))
3562 c_retval = xmlLineNumbersDefault(val);
3563 py_retval = libxml_intWrap((int) c_retval);
3567 #if defined(LIBXML_CATALOG_ENABLED)
3569 libxml_xmlLoadACatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3570 PyObject *py_retval;
3571 xmlCatalogPtr c_retval;
3574 if (!PyArg_ParseTuple(args, (char *)"z:xmlLoadACatalog", &filename))
3577 c_retval = xmlLoadACatalog(filename);
3578 py_retval = libxml_xmlCatalogPtrWrap((xmlCatalogPtr) c_retval);
3582 #endif /* defined(LIBXML_CATALOG_ENABLED) */
3583 #if defined(LIBXML_CATALOG_ENABLED)
3585 libxml_xmlLoadCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3586 PyObject *py_retval;
3590 if (!PyArg_ParseTuple(args, (char *)"z:xmlLoadCatalog", &filename))
3593 c_retval = xmlLoadCatalog(filename);
3594 py_retval = libxml_intWrap((int) c_retval);
3598 #endif /* defined(LIBXML_CATALOG_ENABLED) */
3599 #if defined(LIBXML_CATALOG_ENABLED)
3601 libxml_xmlLoadCatalogs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3604 if (!PyArg_ParseTuple(args, (char *)"z:xmlLoadCatalogs", &pathss))
3607 xmlLoadCatalogs(pathss);
3612 #endif /* defined(LIBXML_CATALOG_ENABLED) */
3613 #if defined(LIBXML_CATALOG_ENABLED)
3615 libxml_xmlLoadSGMLSuperCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3616 PyObject *py_retval;
3617 xmlCatalogPtr c_retval;
3620 if (!PyArg_ParseTuple(args, (char *)"z:xmlLoadSGMLSuperCatalog", &filename))
3623 c_retval = xmlLoadSGMLSuperCatalog(filename);
3624 py_retval = libxml_xmlCatalogPtrWrap((xmlCatalogPtr) c_retval);
3628 #endif /* defined(LIBXML_CATALOG_ENABLED) */
3629 #if defined(LIBXML_DEBUG_ENABLED)
3631 libxml_xmlLsCountNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3632 PyObject *py_retval;
3635 PyObject *pyobj_node;
3637 if (!PyArg_ParseTuple(args, (char *)"O:xmlLsCountNode", &pyobj_node))
3639 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
3641 c_retval = xmlLsCountNode(node);
3642 py_retval = libxml_intWrap((int) c_retval);
3646 #endif /* defined(LIBXML_DEBUG_ENABLED) */
3647 #if defined(LIBXML_DEBUG_ENABLED)
3649 libxml_xmlLsOneNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3651 PyObject *pyobj_output;
3653 PyObject *pyobj_node;
3655 if (!PyArg_ParseTuple(args, (char *)"OO:xmlLsOneNode", &pyobj_output, &pyobj_node))
3657 output = (FILE *) PyFile_Get(pyobj_output);
3658 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
3660 xmlLsOneNode(output, node);
3661 PyFile_Release(output);
3666 #endif /* defined(LIBXML_DEBUG_ENABLED) */
3667 #if defined(LIBXML_LEGACY_ENABLED)
3669 libxml_xmlNamespaceParseNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3670 PyObject *py_retval;
3672 xmlParserCtxtPtr ctxt;
3673 PyObject *pyobj_ctxt;
3675 if (!PyArg_ParseTuple(args, (char *)"O:xmlNamespaceParseNCName", &pyobj_ctxt))
3677 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
3679 c_retval = xmlNamespaceParseNCName(ctxt);
3680 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
3684 #endif /* defined(LIBXML_LEGACY_ENABLED) */
3685 #if defined(LIBXML_LEGACY_ENABLED)
3687 libxml_xmlNamespaceParseNSDef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3688 PyObject *py_retval;
3690 xmlParserCtxtPtr ctxt;
3691 PyObject *pyobj_ctxt;
3693 if (!PyArg_ParseTuple(args, (char *)"O:xmlNamespaceParseNSDef", &pyobj_ctxt))
3695 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
3697 c_retval = xmlNamespaceParseNSDef(ctxt);
3698 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
3702 #endif /* defined(LIBXML_LEGACY_ENABLED) */
3703 #if defined(LIBXML_FTP_ENABLED)
3705 libxml_xmlNanoFTPCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3707 xmlNanoFTPCleanup();
3712 #endif /* defined(LIBXML_FTP_ENABLED) */
3713 #if defined(LIBXML_FTP_ENABLED)
3715 libxml_xmlNanoFTPInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3722 #endif /* defined(LIBXML_FTP_ENABLED) */
3723 #if defined(LIBXML_FTP_ENABLED)
3725 libxml_xmlNanoFTPProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3732 if (!PyArg_ParseTuple(args, (char *)"zizzi:xmlNanoFTPProxy", &host, &port, &user, &passwd, &type))
3735 xmlNanoFTPProxy(host, port, user, passwd, type);
3740 #endif /* defined(LIBXML_FTP_ENABLED) */
3741 #if defined(LIBXML_FTP_ENABLED)
3743 libxml_xmlNanoFTPScanProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3746 if (!PyArg_ParseTuple(args, (char *)"z:xmlNanoFTPScanProxy", &URL))
3749 xmlNanoFTPScanProxy(URL);
3754 #endif /* defined(LIBXML_FTP_ENABLED) */
3755 #if defined(LIBXML_HTTP_ENABLED)
3757 libxml_xmlNanoHTTPCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3759 xmlNanoHTTPCleanup();
3764 #endif /* defined(LIBXML_HTTP_ENABLED) */
3765 #if defined(LIBXML_HTTP_ENABLED)
3767 libxml_xmlNanoHTTPInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
3774 #endif /* defined(LIBXML_HTTP_ENABLED) */
3775 #if defined(LIBXML_HTTP_ENABLED)
3777 libxml_xmlNanoHTTPScanProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3780 if (!PyArg_ParseTuple(args, (char *)"z:xmlNanoHTTPScanProxy", &URL))
3783 xmlNanoHTTPScanProxy(URL);
3788 #endif /* defined(LIBXML_HTTP_ENABLED) */
3790 libxml_xmlNewCDataBlock(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3791 PyObject *py_retval;
3792 xmlNodePtr c_retval;
3794 PyObject *pyobj_doc;
3798 if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlNewCDataBlock", &pyobj_doc, &content, &len))
3800 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3802 c_retval = xmlNewCDataBlock(doc, content, len);
3803 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3807 #if defined(LIBXML_CATALOG_ENABLED)
3809 libxml_xmlNewCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3810 PyObject *py_retval;
3811 xmlCatalogPtr c_retval;
3814 if (!PyArg_ParseTuple(args, (char *)"i:xmlNewCatalog", &sgml))
3817 c_retval = xmlNewCatalog(sgml);
3818 py_retval = libxml_xmlCatalogPtrWrap((xmlCatalogPtr) c_retval);
3822 #endif /* defined(LIBXML_CATALOG_ENABLED) */
3824 libxml_xmlNewCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3825 PyObject *py_retval;
3826 xmlNodePtr c_retval;
3828 PyObject *pyobj_doc;
3831 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewCharRef", &pyobj_doc, &name))
3833 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3835 c_retval = xmlNewCharRef(doc, name);
3836 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3840 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
3842 libxml_xmlNewChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3843 PyObject *py_retval;
3844 xmlNodePtr c_retval;
3846 PyObject *pyobj_parent;
3852 if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewChild", &pyobj_parent, &pyobj_ns, &name, &content))
3854 parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent);
3855 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
3857 c_retval = xmlNewChild(parent, ns, name, content);
3858 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3862 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
3864 libxml_xmlNewComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3865 PyObject *py_retval;
3866 xmlNodePtr c_retval;
3869 if (!PyArg_ParseTuple(args, (char *)"z:xmlNewComment", &content))
3872 c_retval = xmlNewComment(content);
3873 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3878 libxml_xmlNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3879 PyObject *py_retval;
3883 if (!PyArg_ParseTuple(args, (char *)"z:xmlNewDoc", &version))
3886 c_retval = xmlNewDoc(version);
3887 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
3892 libxml_xmlNewDocComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3893 PyObject *py_retval;
3894 xmlNodePtr c_retval;
3896 PyObject *pyobj_doc;
3899 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewDocComment", &pyobj_doc, &content))
3901 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3903 c_retval = xmlNewDocComment(doc, content);
3904 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3908 #if defined(LIBXML_TREE_ENABLED)
3910 libxml_xmlNewDocFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3911 PyObject *py_retval;
3912 xmlNodePtr c_retval;
3914 PyObject *pyobj_doc;
3916 if (!PyArg_ParseTuple(args, (char *)"O:xmlNewDocFragment", &pyobj_doc))
3918 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3920 c_retval = xmlNewDocFragment(doc);
3921 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3925 #endif /* defined(LIBXML_TREE_ENABLED) */
3927 libxml_xmlNewDocNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3928 PyObject *py_retval;
3929 xmlNodePtr c_retval;
3931 PyObject *pyobj_doc;
3937 if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewDocNode", &pyobj_doc, &pyobj_ns, &name, &content))
3939 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3940 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
3942 c_retval = xmlNewDocNode(doc, ns, name, content);
3943 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3948 libxml_xmlNewDocNodeEatName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3949 PyObject *py_retval;
3950 xmlNodePtr c_retval;
3952 PyObject *pyobj_doc;
3958 if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewDocNodeEatName", &pyobj_doc, &pyobj_ns, &name, &content))
3960 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3961 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
3963 c_retval = xmlNewDocNodeEatName(doc, ns, name, content);
3964 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3969 libxml_xmlNewDocPI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3970 PyObject *py_retval;
3971 xmlNodePtr c_retval;
3973 PyObject *pyobj_doc;
3977 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewDocPI", &pyobj_doc, &name, &content))
3979 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3981 c_retval = xmlNewDocPI(doc, name, content);
3982 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
3987 libxml_xmlNewDocProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
3988 PyObject *py_retval;
3989 xmlAttrPtr c_retval;
3991 PyObject *pyobj_doc;
3995 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewDocProp", &pyobj_doc, &name, &value))
3997 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
3999 c_retval = xmlNewDocProp(doc, name, value);
4000 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4004 #if defined(LIBXML_TREE_ENABLED)
4006 libxml_xmlNewDocRawNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4007 PyObject *py_retval;
4008 xmlNodePtr c_retval;
4010 PyObject *pyobj_doc;
4016 if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewDocRawNode", &pyobj_doc, &pyobj_ns, &name, &content))
4018 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
4019 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
4021 c_retval = xmlNewDocRawNode(doc, ns, name, content);
4022 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4026 #endif /* defined(LIBXML_TREE_ENABLED) */
4028 libxml_xmlNewDocText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4029 PyObject *py_retval;
4030 xmlNodePtr c_retval;
4032 PyObject *pyobj_doc;
4035 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewDocText", &pyobj_doc, &content))
4037 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
4039 c_retval = xmlNewDocText(doc, content);
4040 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4045 libxml_xmlNewDocTextLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4046 PyObject *py_retval;
4047 xmlNodePtr c_retval;
4049 PyObject *pyobj_doc;
4053 if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlNewDocTextLen", &pyobj_doc, &content, &len))
4055 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
4057 c_retval = xmlNewDocTextLen(doc, content, len);
4058 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4063 libxml_xmlNewDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4064 PyObject *py_retval;
4067 PyObject *pyobj_doc;
4069 xmlChar * ExternalID;
4072 if (!PyArg_ParseTuple(args, (char *)"Ozzz:xmlNewDtd", &pyobj_doc, &name, &ExternalID, &SystemID))
4074 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
4076 c_retval = xmlNewDtd(doc, name, ExternalID, SystemID);
4077 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4082 libxml_xmlNewEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4083 PyObject *py_retval;
4084 xmlEntityPtr c_retval;
4086 PyObject *pyobj_doc;
4089 xmlChar * ExternalID;
4093 if (!PyArg_ParseTuple(args, (char *)"Ozizzz:xmlNewEntity", &pyobj_doc, &name, &type, &ExternalID, &SystemID, &content))
4095 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
4097 c_retval = xmlNewEntity(doc, name, type, ExternalID, SystemID, content);
4098 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4102 #if defined(LIBXML_LEGACY_ENABLED)
4104 libxml_xmlNewGlobalNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4105 PyObject *py_retval;
4108 PyObject *pyobj_doc;
4112 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewGlobalNs", &pyobj_doc, &href, &prefix))
4114 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
4116 c_retval = xmlNewGlobalNs(doc, href, prefix);
4117 py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval);
4121 #endif /* defined(LIBXML_LEGACY_ENABLED) */
4123 libxml_xmlNewNodeEatName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4124 PyObject *py_retval;
4125 xmlNodePtr c_retval;
4130 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewNodeEatName", &pyobj_ns, &name))
4132 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
4134 c_retval = xmlNewNodeEatName(ns, name);
4135 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4140 libxml_xmlNewNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4141 PyObject *py_retval;
4144 PyObject *pyobj_node;
4148 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewNs", &pyobj_node, &href, &prefix))
4150 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
4152 c_retval = xmlNewNs(node, href, prefix);
4153 py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval);
4158 libxml_xmlNewNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4159 PyObject *py_retval;
4160 xmlAttrPtr c_retval;
4162 PyObject *pyobj_node;
4168 if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewNsProp", &pyobj_node, &pyobj_ns, &name, &value))
4170 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
4171 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
4173 c_retval = xmlNewNsProp(node, ns, name, value);
4174 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4179 libxml_xmlNewNsPropEatName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4180 PyObject *py_retval;
4181 xmlAttrPtr c_retval;
4183 PyObject *pyobj_node;
4189 if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewNsPropEatName", &pyobj_node, &pyobj_ns, &name, &value))
4191 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
4192 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
4194 c_retval = xmlNewNsPropEatName(node, ns, name, value);
4195 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4200 libxml_xmlNewPI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4201 PyObject *py_retval;
4202 xmlNodePtr c_retval;
4206 if (!PyArg_ParseTuple(args, (char *)"zz:xmlNewPI", &name, &content))
4209 c_retval = xmlNewPI(name, content);
4210 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4215 libxml_xmlNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
4216 PyObject *py_retval;
4217 xmlParserCtxtPtr c_retval;
4219 c_retval = xmlNewParserCtxt();
4220 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
4224 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
4226 libxml_xmlNewProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4227 PyObject *py_retval;
4228 xmlAttrPtr c_retval;
4230 PyObject *pyobj_node;
4234 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewProp", &pyobj_node, &name, &value))
4236 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
4238 c_retval = xmlNewProp(node, name, value);
4239 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4243 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
4245 libxml_xmlNewReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4246 PyObject *py_retval;
4247 xmlNodePtr c_retval;
4249 PyObject *pyobj_doc;
4252 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewReference", &pyobj_doc, &name))
4254 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
4256 c_retval = xmlNewReference(doc, name);
4257 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4262 libxml_xmlNewText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4263 PyObject *py_retval;
4264 xmlNodePtr c_retval;
4267 if (!PyArg_ParseTuple(args, (char *)"z:xmlNewText", &content))
4270 c_retval = xmlNewText(content);
4271 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4275 #if defined(LIBXML_TREE_ENABLED)
4277 libxml_xmlNewTextChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4278 PyObject *py_retval;
4279 xmlNodePtr c_retval;
4281 PyObject *pyobj_parent;
4287 if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewTextChild", &pyobj_parent, &pyobj_ns, &name, &content))
4289 parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent);
4290 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
4292 c_retval = xmlNewTextChild(parent, ns, name, content);
4293 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4297 #endif /* defined(LIBXML_TREE_ENABLED) */
4299 libxml_xmlNewTextLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4300 PyObject *py_retval;
4301 xmlNodePtr c_retval;
4305 if (!PyArg_ParseTuple(args, (char *)"zi:xmlNewTextLen", &content, &len))
4308 c_retval = xmlNewTextLen(content, len);
4309 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4313 #if defined(LIBXML_READER_ENABLED)
4315 libxml_xmlNewTextReader(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4316 PyObject *py_retval;
4317 xmlTextReaderPtr c_retval;
4318 xmlParserInputBufferPtr input;
4319 PyObject *pyobj_input;
4322 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewTextReader", &pyobj_input, &URI))
4324 input = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_input);
4326 c_retval = xmlNewTextReader(input, URI);
4327 py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval);
4331 #endif /* defined(LIBXML_READER_ENABLED) */
4332 #if defined(LIBXML_READER_ENABLED)
4334 libxml_xmlNewTextReaderFilename(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4335 PyObject *py_retval;
4336 xmlTextReaderPtr c_retval;
4339 if (!PyArg_ParseTuple(args, (char *)"z:xmlNewTextReaderFilename", &URI))
4342 c_retval = xmlNewTextReaderFilename(URI);
4343 py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval);
4347 #endif /* defined(LIBXML_READER_ENABLED) */
4348 #if defined(LIBXML_VALID_ENABLED)
4350 libxml_xmlNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
4351 PyObject *py_retval;
4352 xmlValidCtxtPtr c_retval;
4354 c_retval = xmlNewValidCtxt();
4355 py_retval = libxml_xmlValidCtxtPtrWrap((xmlValidCtxtPtr) c_retval);
4359 #endif /* defined(LIBXML_VALID_ENABLED) */
4361 libxml_xmlNextChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4362 xmlParserCtxtPtr ctxt;
4363 PyObject *pyobj_ctxt;
4365 if (!PyArg_ParseTuple(args, (char *)"O:xmlNextChar", &pyobj_ctxt))
4367 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4374 #if defined(LIBXML_TREE_ENABLED)
4376 libxml_xmlNextElementSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4377 PyObject *py_retval;
4378 xmlNodePtr c_retval;
4380 PyObject *pyobj_node;
4382 if (!PyArg_ParseTuple(args, (char *)"O:xmlNextElementSibling", &pyobj_node))
4384 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
4386 c_retval = xmlNextElementSibling(node);
4387 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4391 #endif /* defined(LIBXML_TREE_ENABLED) */
4393 libxml_xmlNodeAddContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4395 PyObject *pyobj_cur;
4398 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeAddContent", &pyobj_cur, &content))
4400 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
4402 xmlNodeAddContent(cur, content);
4408 libxml_xmlNodeAddContentLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4410 PyObject *pyobj_cur;
4414 if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlNodeAddContentLen", &pyobj_cur, &content, &len))
4416 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
4418 xmlNodeAddContentLen(cur, content, len);
4423 #if defined(LIBXML_OUTPUT_ENABLED)
4425 libxml_xmlNodeDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4426 xmlOutputBufferPtr buf;
4427 PyObject *pyobj_buf;
4429 PyObject *pyobj_doc;
4431 PyObject *pyobj_cur;
4436 if (!PyArg_ParseTuple(args, (char *)"OOOiiz:xmlNodeDumpOutput", &pyobj_buf, &pyobj_doc, &pyobj_cur, &level, &format, &encoding))
4438 buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf);
4439 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
4440 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
4442 xmlNodeDumpOutput(buf, doc, cur, level, format, encoding);
4447 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
4449 libxml_xmlNodeGetBase(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4450 PyObject *py_retval;
4453 PyObject *pyobj_doc;
4455 PyObject *pyobj_cur;
4457 if (!PyArg_ParseTuple(args, (char *)"OO:xmlNodeGetBase", &pyobj_doc, &pyobj_cur))
4459 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
4460 cur = (xmlNode *) PyxmlNode_Get(pyobj_cur);
4462 c_retval = xmlNodeGetBase(doc, cur);
4463 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
4468 libxml_xmlNodeGetContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4469 PyObject *py_retval;
4472 PyObject *pyobj_cur;
4474 if (!PyArg_ParseTuple(args, (char *)"O:xmlNodeGetContent", &pyobj_cur))
4476 cur = (xmlNode *) PyxmlNode_Get(pyobj_cur);
4478 c_retval = xmlNodeGetContent(cur);
4479 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
4484 libxml_xmlNodeGetLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4485 PyObject *py_retval;
4488 PyObject *pyobj_cur;
4490 if (!PyArg_ParseTuple(args, (char *)"O:xmlNodeGetLang", &pyobj_cur))
4492 cur = (xmlNode *) PyxmlNode_Get(pyobj_cur);
4494 c_retval = xmlNodeGetLang(cur);
4495 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
4500 libxml_xmlNodeGetSpacePreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4501 PyObject *py_retval;
4504 PyObject *pyobj_cur;
4506 if (!PyArg_ParseTuple(args, (char *)"O:xmlNodeGetSpacePreserve", &pyobj_cur))
4508 cur = (xmlNode *) PyxmlNode_Get(pyobj_cur);
4510 c_retval = xmlNodeGetSpacePreserve(cur);
4511 py_retval = libxml_intWrap((int) c_retval);
4516 libxml_xmlNodeIsText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4517 PyObject *py_retval;
4520 PyObject *pyobj_node;
4522 if (!PyArg_ParseTuple(args, (char *)"O:xmlNodeIsText", &pyobj_node))
4524 node = (xmlNode *) PyxmlNode_Get(pyobj_node);
4526 c_retval = xmlNodeIsText(node);
4527 py_retval = libxml_intWrap((int) c_retval);
4531 #if defined(LIBXML_TREE_ENABLED)
4533 libxml_xmlNodeListGetRawString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4534 PyObject *py_retval;
4537 PyObject *pyobj_doc;
4539 PyObject *pyobj_list;
4542 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlNodeListGetRawString", &pyobj_doc, &pyobj_list, &inLine))
4544 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
4545 list = (xmlNode *) PyxmlNode_Get(pyobj_list);
4547 c_retval = xmlNodeListGetRawString(doc, list, inLine);
4548 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
4552 #endif /* defined(LIBXML_TREE_ENABLED) */
4554 libxml_xmlNodeListGetString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4555 PyObject *py_retval;
4558 PyObject *pyobj_doc;
4560 PyObject *pyobj_list;
4563 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlNodeListGetString", &pyobj_doc, &pyobj_list, &inLine))
4565 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
4566 list = (xmlNode *) PyxmlNode_Get(pyobj_list);
4568 c_retval = xmlNodeListGetString(doc, list, inLine);
4569 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
4573 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED)
4575 libxml_xmlNodeSetBase(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4577 PyObject *pyobj_cur;
4580 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeSetBase", &pyobj_cur, &uri))
4582 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
4584 xmlNodeSetBase(cur, uri);
4589 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) */
4591 libxml_xmlNodeSetContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4593 PyObject *pyobj_cur;
4596 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeSetContent", &pyobj_cur, &content))
4598 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
4600 xmlNodeSetContent(cur, content);
4605 #if defined(LIBXML_TREE_ENABLED)
4607 libxml_xmlNodeSetContentLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4609 PyObject *pyobj_cur;
4613 if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlNodeSetContentLen", &pyobj_cur, &content, &len))
4615 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
4617 xmlNodeSetContentLen(cur, content, len);
4622 #endif /* defined(LIBXML_TREE_ENABLED) */
4623 #if defined(LIBXML_TREE_ENABLED)
4625 libxml_xmlNodeSetLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4627 PyObject *pyobj_cur;
4630 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeSetLang", &pyobj_cur, &lang))
4632 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
4634 xmlNodeSetLang(cur, lang);
4639 #endif /* defined(LIBXML_TREE_ENABLED) */
4640 #if defined(LIBXML_TREE_ENABLED)
4642 libxml_xmlNodeSetName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4644 PyObject *pyobj_cur;
4647 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeSetName", &pyobj_cur, &name))
4649 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
4651 xmlNodeSetName(cur, name);
4656 #endif /* defined(LIBXML_TREE_ENABLED) */
4657 #if defined(LIBXML_TREE_ENABLED)
4659 libxml_xmlNodeSetSpacePreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4661 PyObject *pyobj_cur;
4664 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlNodeSetSpacePreserve", &pyobj_cur, &val))
4666 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
4668 xmlNodeSetSpacePreserve(cur, val);
4673 #endif /* defined(LIBXML_TREE_ENABLED) */
4675 libxml_xmlNormalizeURIPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4676 PyObject *py_retval;
4680 if (!PyArg_ParseTuple(args, (char *)"z:xmlNormalizeURIPath", &path))
4683 c_retval = xmlNormalizeURIPath(path);
4684 py_retval = libxml_intWrap((int) c_retval);
4689 libxml_xmlNormalizeWindowsPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4690 PyObject *py_retval;
4694 if (!PyArg_ParseTuple(args, (char *)"z:xmlNormalizeWindowsPath", &path))
4697 c_retval = xmlNormalizeWindowsPath(path);
4698 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
4702 #if defined(LIBXML_OUTPUT_ENABLED)
4704 libxml_xmlOutputBufferGetContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4705 PyObject *py_retval;
4706 const xmlChar * c_retval;
4707 xmlOutputBufferPtr out;
4708 PyObject *pyobj_out;
4710 if (!PyArg_ParseTuple(args, (char *)"O:xmlOutputBufferGetContent", &pyobj_out))
4712 out = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_out);
4714 c_retval = xmlOutputBufferGetContent(out);
4715 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
4719 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
4720 #if defined(LIBXML_OUTPUT_ENABLED)
4722 libxml_xmlOutputBufferWrite(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4723 PyObject *py_retval;
4725 xmlOutputBufferPtr out;
4726 PyObject *pyobj_out;
4730 if (!PyArg_ParseTuple(args, (char *)"Oiz:xmlOutputBufferWrite", &pyobj_out, &len, &buf))
4732 out = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_out);
4734 c_retval = xmlOutputBufferWrite(out, len, buf);
4735 py_retval = libxml_intWrap((int) c_retval);
4739 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
4740 #if defined(LIBXML_OUTPUT_ENABLED)
4742 libxml_xmlOutputBufferWriteString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4743 PyObject *py_retval;
4745 xmlOutputBufferPtr out;
4746 PyObject *pyobj_out;
4749 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlOutputBufferWriteString", &pyobj_out, &str))
4751 out = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_out);
4753 c_retval = xmlOutputBufferWriteString(out, str);
4754 py_retval = libxml_intWrap((int) c_retval);
4758 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
4760 libxml_xmlParseAttValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4761 PyObject *py_retval;
4763 xmlParserCtxtPtr ctxt;
4764 PyObject *pyobj_ctxt;
4766 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseAttValue", &pyobj_ctxt))
4768 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4770 c_retval = xmlParseAttValue(ctxt);
4771 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
4776 libxml_xmlParseAttributeListDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4777 xmlParserCtxtPtr ctxt;
4778 PyObject *pyobj_ctxt;
4780 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseAttributeListDecl", &pyobj_ctxt))
4782 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4784 xmlParseAttributeListDecl(ctxt);
4790 libxml_xmlParseCDSect(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4791 xmlParserCtxtPtr ctxt;
4792 PyObject *pyobj_ctxt;
4794 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseCDSect", &pyobj_ctxt))
4796 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4798 xmlParseCDSect(ctxt);
4803 #if defined(LIBXML_CATALOG_ENABLED)
4805 libxml_xmlParseCatalogFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4806 PyObject *py_retval;
4810 if (!PyArg_ParseTuple(args, (char *)"z:xmlParseCatalogFile", &filename))
4813 c_retval = xmlParseCatalogFile(filename);
4814 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
4818 #endif /* defined(LIBXML_CATALOG_ENABLED) */
4820 libxml_xmlParseCharData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4821 xmlParserCtxtPtr ctxt;
4822 PyObject *pyobj_ctxt;
4825 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParseCharData", &pyobj_ctxt, &cdata))
4827 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4829 xmlParseCharData(ctxt, cdata);
4835 libxml_xmlParseCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4836 PyObject *py_retval;
4838 xmlParserCtxtPtr ctxt;
4839 PyObject *pyobj_ctxt;
4841 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseCharRef", &pyobj_ctxt))
4843 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4845 c_retval = xmlParseCharRef(ctxt);
4846 py_retval = libxml_intWrap((int) c_retval);
4850 #if defined(LIBXML_PUSH_ENABLED)
4852 libxml_xmlParseChunk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4853 PyObject *py_retval;
4855 xmlParserCtxtPtr ctxt;
4856 PyObject *pyobj_ctxt;
4862 if (!PyArg_ParseTuple(args, (char *)"Os#ii:xmlParseChunk", &pyobj_ctxt, &chunk, &py_buffsize0, &size, &terminate))
4864 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4866 c_retval = xmlParseChunk(ctxt, chunk, size, terminate);
4867 py_retval = libxml_intWrap((int) c_retval);
4871 #endif /* defined(LIBXML_PUSH_ENABLED) */
4873 libxml_xmlParseComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4874 xmlParserCtxtPtr ctxt;
4875 PyObject *pyobj_ctxt;
4877 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseComment", &pyobj_ctxt))
4879 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4881 xmlParseComment(ctxt);
4887 libxml_xmlParseContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4888 xmlParserCtxtPtr ctxt;
4889 PyObject *pyobj_ctxt;
4891 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseContent", &pyobj_ctxt))
4893 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4895 xmlParseContent(ctxt);
4900 #if defined(LIBXML_VALID_ENABLED)
4902 libxml_xmlParseDTD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4903 PyObject *py_retval;
4905 xmlChar * ExternalID;
4908 if (!PyArg_ParseTuple(args, (char *)"zz:xmlParseDTD", &ExternalID, &SystemID))
4911 c_retval = xmlParseDTD(ExternalID, SystemID);
4912 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
4916 #endif /* defined(LIBXML_VALID_ENABLED) */
4917 #if defined(LIBXML_SAX1_ENABLED)
4919 libxml_xmlParseDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4920 PyObject *py_retval;
4924 if (!PyArg_ParseTuple(args, (char *)"z:xmlParseDoc", &cur))
4927 c_retval = xmlParseDoc(cur);
4928 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
4932 #endif /* defined(LIBXML_SAX1_ENABLED) */
4934 libxml_xmlParseDocTypeDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4935 xmlParserCtxtPtr ctxt;
4936 PyObject *pyobj_ctxt;
4938 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseDocTypeDecl", &pyobj_ctxt))
4940 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4942 xmlParseDocTypeDecl(ctxt);
4948 libxml_xmlParseDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4949 PyObject *py_retval;
4951 xmlParserCtxtPtr ctxt;
4952 PyObject *pyobj_ctxt;
4954 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseDocument", &pyobj_ctxt))
4956 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4958 c_retval = xmlParseDocument(ctxt);
4959 py_retval = libxml_intWrap((int) c_retval);
4964 libxml_xmlParseElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4965 xmlParserCtxtPtr ctxt;
4966 PyObject *pyobj_ctxt;
4968 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseElement", &pyobj_ctxt))
4970 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4972 xmlParseElement(ctxt);
4978 libxml_xmlParseElementDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4979 PyObject *py_retval;
4981 xmlParserCtxtPtr ctxt;
4982 PyObject *pyobj_ctxt;
4984 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseElementDecl", &pyobj_ctxt))
4986 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
4988 c_retval = xmlParseElementDecl(ctxt);
4989 py_retval = libxml_intWrap((int) c_retval);
4994 libxml_xmlParseEncName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
4995 PyObject *py_retval;
4997 xmlParserCtxtPtr ctxt;
4998 PyObject *pyobj_ctxt;
5000 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEncName", &pyobj_ctxt))
5002 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5004 c_retval = xmlParseEncName(ctxt);
5005 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
5010 libxml_xmlParseEncodingDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5011 PyObject *py_retval;
5012 const xmlChar * c_retval;
5013 xmlParserCtxtPtr ctxt;
5014 PyObject *pyobj_ctxt;
5016 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEncodingDecl", &pyobj_ctxt))
5018 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5020 c_retval = xmlParseEncodingDecl(ctxt);
5021 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
5025 #if defined(LIBXML_SAX1_ENABLED)
5027 libxml_xmlParseEndTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5028 xmlParserCtxtPtr ctxt;
5029 PyObject *pyobj_ctxt;
5031 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEndTag", &pyobj_ctxt))
5033 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5035 xmlParseEndTag(ctxt);
5040 #endif /* defined(LIBXML_SAX1_ENABLED) */
5041 #if defined(LIBXML_SAX1_ENABLED)
5043 libxml_xmlParseEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5044 PyObject *py_retval;
5048 if (!PyArg_ParseTuple(args, (char *)"z:xmlParseEntity", &filename))
5051 c_retval = xmlParseEntity(filename);
5052 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
5056 #endif /* defined(LIBXML_SAX1_ENABLED) */
5058 libxml_xmlParseEntityDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5059 xmlParserCtxtPtr ctxt;
5060 PyObject *pyobj_ctxt;
5062 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEntityDecl", &pyobj_ctxt))
5064 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5066 xmlParseEntityDecl(ctxt);
5072 libxml_xmlParseEntityRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5073 PyObject *py_retval;
5074 xmlEntityPtr c_retval;
5075 xmlParserCtxtPtr ctxt;
5076 PyObject *pyobj_ctxt;
5078 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEntityRef", &pyobj_ctxt))
5080 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5082 c_retval = xmlParseEntityRef(ctxt);
5083 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
5088 libxml_xmlParseExtParsedEnt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5089 PyObject *py_retval;
5091 xmlParserCtxtPtr ctxt;
5092 PyObject *pyobj_ctxt;
5094 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseExtParsedEnt", &pyobj_ctxt))
5096 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5098 c_retval = xmlParseExtParsedEnt(ctxt);
5099 py_retval = libxml_intWrap((int) c_retval);
5104 libxml_xmlParseExternalSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5105 xmlParserCtxtPtr ctxt;
5106 PyObject *pyobj_ctxt;
5107 xmlChar * ExternalID;
5110 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlParseExternalSubset", &pyobj_ctxt, &ExternalID, &SystemID))
5112 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5114 xmlParseExternalSubset(ctxt, ExternalID, SystemID);
5119 #if defined(LIBXML_SAX1_ENABLED)
5121 libxml_xmlParseFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5122 PyObject *py_retval;
5126 if (!PyArg_ParseTuple(args, (char *)"z:xmlParseFile", &filename))
5129 c_retval = xmlParseFile(filename);
5130 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
5134 #endif /* defined(LIBXML_SAX1_ENABLED) */
5136 libxml_xmlParseMarkupDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5137 xmlParserCtxtPtr ctxt;
5138 PyObject *pyobj_ctxt;
5140 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseMarkupDecl", &pyobj_ctxt))
5142 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5144 xmlParseMarkupDecl(ctxt);
5149 #if defined(LIBXML_SAX1_ENABLED)
5151 libxml_xmlParseMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5152 PyObject *py_retval;
5158 if (!PyArg_ParseTuple(args, (char *)"s#i:xmlParseMemory", &buffer, &py_buffsize0, &size))
5161 c_retval = xmlParseMemory(buffer, size);
5162 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
5166 #endif /* defined(LIBXML_SAX1_ENABLED) */
5168 libxml_xmlParseMisc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5169 xmlParserCtxtPtr ctxt;
5170 PyObject *pyobj_ctxt;
5172 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseMisc", &pyobj_ctxt))
5174 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5182 libxml_xmlParseName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5183 PyObject *py_retval;
5184 const xmlChar * c_retval;
5185 xmlParserCtxtPtr ctxt;
5186 PyObject *pyobj_ctxt;
5188 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseName", &pyobj_ctxt))
5190 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5192 c_retval = xmlParseName(ctxt);
5193 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
5197 #if defined(LIBXML_LEGACY_ENABLED)
5199 libxml_xmlParseNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5200 xmlParserCtxtPtr ctxt;
5201 PyObject *pyobj_ctxt;
5203 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseNamespace", &pyobj_ctxt))
5205 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5207 xmlParseNamespace(ctxt);
5212 #endif /* defined(LIBXML_LEGACY_ENABLED) */
5214 libxml_xmlParseNmtoken(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5215 PyObject *py_retval;
5217 xmlParserCtxtPtr ctxt;
5218 PyObject *pyobj_ctxt;
5220 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseNmtoken", &pyobj_ctxt))
5222 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5224 c_retval = xmlParseNmtoken(ctxt);
5225 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
5230 libxml_xmlParseNotationDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5231 xmlParserCtxtPtr ctxt;
5232 PyObject *pyobj_ctxt;
5234 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseNotationDecl", &pyobj_ctxt))
5236 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5238 xmlParseNotationDecl(ctxt);
5244 libxml_xmlParsePEReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5245 xmlParserCtxtPtr ctxt;
5246 PyObject *pyobj_ctxt;
5248 if (!PyArg_ParseTuple(args, (char *)"O:xmlParsePEReference", &pyobj_ctxt))
5250 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5252 xmlParsePEReference(ctxt);
5258 libxml_xmlParsePI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5259 xmlParserCtxtPtr ctxt;
5260 PyObject *pyobj_ctxt;
5262 if (!PyArg_ParseTuple(args, (char *)"O:xmlParsePI", &pyobj_ctxt))
5264 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5272 libxml_xmlParsePITarget(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5273 PyObject *py_retval;
5274 const xmlChar * c_retval;
5275 xmlParserCtxtPtr ctxt;
5276 PyObject *pyobj_ctxt;
5278 if (!PyArg_ParseTuple(args, (char *)"O:xmlParsePITarget", &pyobj_ctxt))
5280 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5282 c_retval = xmlParsePITarget(ctxt);
5283 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
5288 libxml_xmlParsePubidLiteral(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5289 PyObject *py_retval;
5291 xmlParserCtxtPtr ctxt;
5292 PyObject *pyobj_ctxt;
5294 if (!PyArg_ParseTuple(args, (char *)"O:xmlParsePubidLiteral", &pyobj_ctxt))
5296 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5298 c_retval = xmlParsePubidLiteral(ctxt);
5299 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
5303 #if defined(LIBXML_LEGACY_ENABLED)
5305 libxml_xmlParseQuotedString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5306 PyObject *py_retval;
5308 xmlParserCtxtPtr ctxt;
5309 PyObject *pyobj_ctxt;
5311 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseQuotedString", &pyobj_ctxt))
5313 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5315 c_retval = xmlParseQuotedString(ctxt);
5316 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
5320 #endif /* defined(LIBXML_LEGACY_ENABLED) */
5322 libxml_xmlParseReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5323 xmlParserCtxtPtr ctxt;
5324 PyObject *pyobj_ctxt;
5326 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseReference", &pyobj_ctxt))
5328 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5330 xmlParseReference(ctxt);
5336 libxml_xmlParseSDDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5337 PyObject *py_retval;
5339 xmlParserCtxtPtr ctxt;
5340 PyObject *pyobj_ctxt;
5342 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseSDDecl", &pyobj_ctxt))
5344 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5346 c_retval = xmlParseSDDecl(ctxt);
5347 py_retval = libxml_intWrap((int) c_retval);
5351 #if defined(LIBXML_SAX1_ENABLED)
5353 libxml_xmlParseStartTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5354 PyObject *py_retval;
5355 const xmlChar * c_retval;
5356 xmlParserCtxtPtr ctxt;
5357 PyObject *pyobj_ctxt;
5359 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseStartTag", &pyobj_ctxt))
5361 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5363 c_retval = xmlParseStartTag(ctxt);
5364 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
5368 #endif /* defined(LIBXML_SAX1_ENABLED) */
5370 libxml_xmlParseSystemLiteral(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5371 PyObject *py_retval;
5373 xmlParserCtxtPtr ctxt;
5374 PyObject *pyobj_ctxt;
5376 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseSystemLiteral", &pyobj_ctxt))
5378 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5380 c_retval = xmlParseSystemLiteral(ctxt);
5381 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
5386 libxml_xmlParseTextDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5387 xmlParserCtxtPtr ctxt;
5388 PyObject *pyobj_ctxt;
5390 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseTextDecl", &pyobj_ctxt))
5392 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5394 xmlParseTextDecl(ctxt);
5400 libxml_xmlParseURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5401 PyObject *py_retval;
5405 if (!PyArg_ParseTuple(args, (char *)"z:xmlParseURI", &str))
5408 c_retval = xmlParseURI(str);
5409 py_retval = libxml_xmlURIPtrWrap((xmlURIPtr) c_retval);
5414 libxml_xmlParseURIRaw(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5415 PyObject *py_retval;
5420 if (!PyArg_ParseTuple(args, (char *)"zi:xmlParseURIRaw", &str, &raw))
5423 c_retval = xmlParseURIRaw(str, raw);
5424 py_retval = libxml_xmlURIPtrWrap((xmlURIPtr) c_retval);
5429 libxml_xmlParseURIReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5430 PyObject *py_retval;
5433 PyObject *pyobj_uri;
5436 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlParseURIReference", &pyobj_uri, &str))
5438 uri = (xmlURIPtr) PyURI_Get(pyobj_uri);
5440 c_retval = xmlParseURIReference(uri, str);
5441 py_retval = libxml_intWrap((int) c_retval);
5446 libxml_xmlParseVersionInfo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5447 PyObject *py_retval;
5449 xmlParserCtxtPtr ctxt;
5450 PyObject *pyobj_ctxt;
5452 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseVersionInfo", &pyobj_ctxt))
5454 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5456 c_retval = xmlParseVersionInfo(ctxt);
5457 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
5462 libxml_xmlParseVersionNum(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5463 PyObject *py_retval;
5465 xmlParserCtxtPtr ctxt;
5466 PyObject *pyobj_ctxt;
5468 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseVersionNum", &pyobj_ctxt))
5470 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5472 c_retval = xmlParseVersionNum(ctxt);
5473 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
5478 libxml_xmlParseXMLDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5479 xmlParserCtxtPtr ctxt;
5480 PyObject *pyobj_ctxt;
5482 if (!PyArg_ParseTuple(args, (char *)"O:xmlParseXMLDecl", &pyobj_ctxt))
5484 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5486 xmlParseXMLDecl(ctxt);
5492 libxml_xmlParserGetDirectory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5493 PyObject *py_retval;
5497 if (!PyArg_ParseTuple(args, (char *)"z:xmlParserGetDirectory", &filename))
5500 c_retval = xmlParserGetDirectory(filename);
5501 py_retval = libxml_charPtrWrap((char *) c_retval);
5506 libxml_xmlParserGetDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5507 PyObject *py_retval;
5509 xmlParserCtxtPtr ctxt;
5510 PyObject *pyobj_ctxt;
5512 if (!PyArg_ParseTuple(args, (char *)"O:xmlParserGetDoc", &pyobj_ctxt))
5514 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5516 c_retval = ctxt->myDoc;
5517 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
5522 libxml_xmlParserGetIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5523 PyObject *py_retval;
5525 xmlParserCtxtPtr ctxt;
5526 PyObject *pyobj_ctxt;
5528 if (!PyArg_ParseTuple(args, (char *)"O:xmlParserGetIsValid", &pyobj_ctxt))
5530 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5532 c_retval = ctxt->valid;
5533 py_retval = libxml_intWrap((int) c_retval);
5538 libxml_xmlParserGetWellFormed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5539 PyObject *py_retval;
5541 xmlParserCtxtPtr ctxt;
5542 PyObject *pyobj_ctxt;
5544 if (!PyArg_ParseTuple(args, (char *)"O:xmlParserGetWellFormed", &pyobj_ctxt))
5546 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5548 c_retval = ctxt->wellFormed;
5549 py_retval = libxml_intWrap((int) c_retval);
5554 libxml_xmlParserHandlePEReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5555 xmlParserCtxtPtr ctxt;
5556 PyObject *pyobj_ctxt;
5558 if (!PyArg_ParseTuple(args, (char *)"O:xmlParserHandlePEReference", &pyobj_ctxt))
5560 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5562 xmlParserHandlePEReference(ctxt);
5567 #if defined(LIBXML_LEGACY_ENABLED)
5569 libxml_xmlParserHandleReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5570 xmlParserCtxtPtr ctxt;
5571 PyObject *pyobj_ctxt;
5573 if (!PyArg_ParseTuple(args, (char *)"O:xmlParserHandleReference", &pyobj_ctxt))
5575 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5577 xmlParserHandleReference(ctxt);
5582 #endif /* defined(LIBXML_LEGACY_ENABLED) */
5584 libxml_xmlParserInputBufferGrow(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5585 PyObject *py_retval;
5587 xmlParserInputBufferPtr in;
5591 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserInputBufferGrow", &pyobj_in, &len))
5593 in = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_in);
5595 c_retval = xmlParserInputBufferGrow(in, len);
5596 py_retval = libxml_intWrap((int) c_retval);
5601 libxml_xmlParserInputBufferPush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5602 PyObject *py_retval;
5604 xmlParserInputBufferPtr in;
5609 if (!PyArg_ParseTuple(args, (char *)"Oiz:xmlParserInputBufferPush", &pyobj_in, &len, &buf))
5611 in = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_in);
5613 c_retval = xmlParserInputBufferPush(in, len, buf);
5614 py_retval = libxml_intWrap((int) c_retval);
5619 libxml_xmlParserInputBufferRead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5620 PyObject *py_retval;
5622 xmlParserInputBufferPtr in;
5626 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserInputBufferRead", &pyobj_in, &len))
5628 in = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_in);
5630 c_retval = xmlParserInputBufferRead(in, len);
5631 py_retval = libxml_intWrap((int) c_retval);
5636 libxml_xmlParserSetLineNumbers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5637 xmlParserCtxtPtr ctxt;
5638 PyObject *pyobj_ctxt;
5641 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetLineNumbers", &pyobj_ctxt, &linenumbers))
5643 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5645 ctxt->linenumbers = linenumbers;
5651 libxml_xmlParserSetLoadSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5652 xmlParserCtxtPtr ctxt;
5653 PyObject *pyobj_ctxt;
5656 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetLoadSubset", &pyobj_ctxt, &loadsubset))
5658 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5660 ctxt->loadsubset = loadsubset;
5666 libxml_xmlParserSetPedantic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5667 xmlParserCtxtPtr ctxt;
5668 PyObject *pyobj_ctxt;
5671 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetPedantic", &pyobj_ctxt, &pedantic))
5673 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5675 ctxt->pedantic = pedantic;
5681 libxml_xmlParserSetReplaceEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5682 xmlParserCtxtPtr ctxt;
5683 PyObject *pyobj_ctxt;
5684 int replaceEntities;
5686 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetReplaceEntities", &pyobj_ctxt, &replaceEntities))
5688 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5690 ctxt->replaceEntities = replaceEntities;
5696 libxml_xmlParserSetValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5697 xmlParserCtxtPtr ctxt;
5698 PyObject *pyobj_ctxt;
5701 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetValidate", &pyobj_ctxt, &validate))
5703 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5705 ctxt->validate = validate;
5711 libxml_xmlPathToURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5712 PyObject *py_retval;
5716 if (!PyArg_ParseTuple(args, (char *)"z:xmlPathToURI", &path))
5719 c_retval = xmlPathToURI(path);
5720 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
5725 libxml_xmlPedanticParserDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5726 PyObject *py_retval;
5730 if (!PyArg_ParseTuple(args, (char *)"i:xmlPedanticParserDefault", &val))
5733 c_retval = xmlPedanticParserDefault(val);
5734 py_retval = libxml_intWrap((int) c_retval);
5739 libxml_xmlPopInput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5740 PyObject *py_retval;
5742 xmlParserCtxtPtr ctxt;
5743 PyObject *pyobj_ctxt;
5745 if (!PyArg_ParseTuple(args, (char *)"O:xmlPopInput", &pyobj_ctxt))
5747 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
5749 c_retval = xmlPopInput(ctxt);
5750 py_retval = libxml_intWrap((int) c_retval);
5754 #if defined(LIBXML_TREE_ENABLED)
5756 libxml_xmlPreviousElementSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5757 PyObject *py_retval;
5758 xmlNodePtr c_retval;
5760 PyObject *pyobj_node;
5762 if (!PyArg_ParseTuple(args, (char *)"O:xmlPreviousElementSibling", &pyobj_node))
5764 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
5766 c_retval = xmlPreviousElementSibling(node);
5767 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
5771 #endif /* defined(LIBXML_TREE_ENABLED) */
5773 libxml_xmlPrintURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5775 PyObject *pyobj_stream;
5777 PyObject *pyobj_uri;
5779 if (!PyArg_ParseTuple(args, (char *)"OO:xmlPrintURI", &pyobj_stream, &pyobj_uri))
5781 stream = (FILE *) PyFile_Get(pyobj_stream);
5782 uri = (xmlURIPtr) PyURI_Get(pyobj_uri);
5784 xmlPrintURI(stream, uri);
5785 PyFile_Release(stream);
5791 libxml_xmlReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5792 PyObject *py_retval;
5799 if (!PyArg_ParseTuple(args, (char *)"zzzi:xmlReadDoc", &cur, &URL, &encoding, &options))
5802 c_retval = xmlReadDoc(cur, URL, encoding, options);
5803 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
5808 libxml_xmlReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5809 PyObject *py_retval;
5816 if (!PyArg_ParseTuple(args, (char *)"izzi:xmlReadFd", &fd, &URL, &encoding, &options))
5819 c_retval = xmlReadFd(fd, URL, encoding, options);
5820 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
5825 libxml_xmlReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5826 PyObject *py_retval;
5832 if (!PyArg_ParseTuple(args, (char *)"zzi:xmlReadFile", &filename, &encoding, &options))
5835 c_retval = xmlReadFile(filename, encoding, options);
5836 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
5841 libxml_xmlReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5842 PyObject *py_retval;
5851 if (!PyArg_ParseTuple(args, (char *)"s#izzi:xmlReadMemory", &buffer, &py_buffsize0, &size, &URL, &encoding, &options))
5854 c_retval = xmlReadMemory(buffer, size, URL, encoding, options);
5855 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
5859 #if defined(LIBXML_READER_ENABLED)
5861 libxml_xmlReaderForDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5862 PyObject *py_retval;
5863 xmlTextReaderPtr c_retval;
5869 if (!PyArg_ParseTuple(args, (char *)"zzzi:xmlReaderForDoc", &cur, &URL, &encoding, &options))
5872 c_retval = xmlReaderForDoc(cur, URL, encoding, options);
5873 py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval);
5877 #endif /* defined(LIBXML_READER_ENABLED) */
5878 #if defined(LIBXML_READER_ENABLED)
5880 libxml_xmlReaderForFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5881 PyObject *py_retval;
5882 xmlTextReaderPtr c_retval;
5888 if (!PyArg_ParseTuple(args, (char *)"izzi:xmlReaderForFd", &fd, &URL, &encoding, &options))
5891 c_retval = xmlReaderForFd(fd, URL, encoding, options);
5892 py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval);
5896 #endif /* defined(LIBXML_READER_ENABLED) */
5897 #if defined(LIBXML_READER_ENABLED)
5899 libxml_xmlReaderForFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5900 PyObject *py_retval;
5901 xmlTextReaderPtr c_retval;
5906 if (!PyArg_ParseTuple(args, (char *)"zzi:xmlReaderForFile", &filename, &encoding, &options))
5909 c_retval = xmlReaderForFile(filename, encoding, options);
5910 py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval);
5914 #endif /* defined(LIBXML_READER_ENABLED) */
5915 #if defined(LIBXML_READER_ENABLED)
5917 libxml_xmlReaderForMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5918 PyObject *py_retval;
5919 xmlTextReaderPtr c_retval;
5926 if (!PyArg_ParseTuple(args, (char *)"zizzi:xmlReaderForMemory", &buffer, &size, &URL, &encoding, &options))
5929 c_retval = xmlReaderForMemory(buffer, size, URL, encoding, options);
5930 py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval);
5934 #endif /* defined(LIBXML_READER_ENABLED) */
5935 #if defined(LIBXML_READER_ENABLED)
5937 libxml_xmlReaderNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5938 PyObject *py_retval;
5940 xmlTextReaderPtr reader;
5941 PyObject *pyobj_reader;
5947 if (!PyArg_ParseTuple(args, (char *)"Ozzzi:xmlReaderNewDoc", &pyobj_reader, &cur, &URL, &encoding, &options))
5949 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
5951 c_retval = xmlReaderNewDoc(reader, cur, URL, encoding, options);
5952 py_retval = libxml_intWrap((int) c_retval);
5956 #endif /* defined(LIBXML_READER_ENABLED) */
5957 #if defined(LIBXML_READER_ENABLED)
5959 libxml_xmlReaderNewFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5960 PyObject *py_retval;
5962 xmlTextReaderPtr reader;
5963 PyObject *pyobj_reader;
5969 if (!PyArg_ParseTuple(args, (char *)"Oizzi:xmlReaderNewFd", &pyobj_reader, &fd, &URL, &encoding, &options))
5971 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
5973 c_retval = xmlReaderNewFd(reader, fd, URL, encoding, options);
5974 py_retval = libxml_intWrap((int) c_retval);
5978 #endif /* defined(LIBXML_READER_ENABLED) */
5979 #if defined(LIBXML_READER_ENABLED)
5981 libxml_xmlReaderNewFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
5982 PyObject *py_retval;
5984 xmlTextReaderPtr reader;
5985 PyObject *pyobj_reader;
5990 if (!PyArg_ParseTuple(args, (char *)"Ozzi:xmlReaderNewFile", &pyobj_reader, &filename, &encoding, &options))
5992 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
5994 c_retval = xmlReaderNewFile(reader, filename, encoding, options);
5995 py_retval = libxml_intWrap((int) c_retval);
5999 #endif /* defined(LIBXML_READER_ENABLED) */
6000 #if defined(LIBXML_READER_ENABLED)
6002 libxml_xmlReaderNewMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6003 PyObject *py_retval;
6005 xmlTextReaderPtr reader;
6006 PyObject *pyobj_reader;
6013 if (!PyArg_ParseTuple(args, (char *)"Ozizzi:xmlReaderNewMemory", &pyobj_reader, &buffer, &size, &URL, &encoding, &options))
6015 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
6017 c_retval = xmlReaderNewMemory(reader, buffer, size, URL, encoding, options);
6018 py_retval = libxml_intWrap((int) c_retval);
6022 #endif /* defined(LIBXML_READER_ENABLED) */
6023 #if defined(LIBXML_READER_ENABLED)
6025 libxml_xmlReaderNewWalker(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6026 PyObject *py_retval;
6028 xmlTextReaderPtr reader;
6029 PyObject *pyobj_reader;
6031 PyObject *pyobj_doc;
6033 if (!PyArg_ParseTuple(args, (char *)"OO:xmlReaderNewWalker", &pyobj_reader, &pyobj_doc))
6035 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
6036 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6038 c_retval = xmlReaderNewWalker(reader, doc);
6039 py_retval = libxml_intWrap((int) c_retval);
6043 #endif /* defined(LIBXML_READER_ENABLED) */
6044 #if defined(LIBXML_READER_ENABLED)
6046 libxml_xmlReaderWalker(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6047 PyObject *py_retval;
6048 xmlTextReaderPtr c_retval;
6050 PyObject *pyobj_doc;
6052 if (!PyArg_ParseTuple(args, (char *)"O:xmlReaderWalker", &pyobj_doc))
6054 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6056 c_retval = xmlReaderWalker(doc);
6057 py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval);
6061 #endif /* defined(LIBXML_READER_ENABLED) */
6062 #if defined(LIBXML_TREE_ENABLED)
6064 libxml_xmlReconciliateNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6065 PyObject *py_retval;
6068 PyObject *pyobj_doc;
6070 PyObject *pyobj_tree;
6072 if (!PyArg_ParseTuple(args, (char *)"OO:xmlReconciliateNs", &pyobj_doc, &pyobj_tree))
6074 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6075 tree = (xmlNodePtr) PyxmlNode_Get(pyobj_tree);
6077 c_retval = xmlReconciliateNs(doc, tree);
6078 py_retval = libxml_intWrap((int) c_retval);
6082 #endif /* defined(LIBXML_TREE_ENABLED) */
6083 #if defined(LIBXML_SAX1_ENABLED)
6085 libxml_xmlRecoverDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6086 PyObject *py_retval;
6090 if (!PyArg_ParseTuple(args, (char *)"z:xmlRecoverDoc", &cur))
6093 c_retval = xmlRecoverDoc(cur);
6094 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
6098 #endif /* defined(LIBXML_SAX1_ENABLED) */
6099 #if defined(LIBXML_SAX1_ENABLED)
6101 libxml_xmlRecoverFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6102 PyObject *py_retval;
6106 if (!PyArg_ParseTuple(args, (char *)"z:xmlRecoverFile", &filename))
6109 c_retval = xmlRecoverFile(filename);
6110 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
6114 #endif /* defined(LIBXML_SAX1_ENABLED) */
6115 #if defined(LIBXML_SAX1_ENABLED)
6117 libxml_xmlRecoverMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6118 PyObject *py_retval;
6124 if (!PyArg_ParseTuple(args, (char *)"s#i:xmlRecoverMemory", &buffer, &py_buffsize0, &size))
6127 c_retval = xmlRecoverMemory(buffer, size);
6128 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
6132 #endif /* defined(LIBXML_SAX1_ENABLED) */
6133 #if defined(LIBXML_REGEXP_ENABLED)
6135 libxml_xmlRegFreeRegexp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6136 xmlRegexpPtr regexp;
6137 PyObject *pyobj_regexp;
6139 if (!PyArg_ParseTuple(args, (char *)"O:xmlRegFreeRegexp", &pyobj_regexp))
6141 regexp = (xmlRegexpPtr) PyxmlReg_Get(pyobj_regexp);
6143 xmlRegFreeRegexp(regexp);
6148 #endif /* defined(LIBXML_REGEXP_ENABLED) */
6149 #if defined(LIBXML_REGEXP_ENABLED)
6151 libxml_xmlRegexpCompile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6152 PyObject *py_retval;
6153 xmlRegexpPtr c_retval;
6156 if (!PyArg_ParseTuple(args, (char *)"z:xmlRegexpCompile", ®exp))
6159 c_retval = xmlRegexpCompile(regexp);
6160 py_retval = libxml_xmlRegexpPtrWrap((xmlRegexpPtr) c_retval);
6164 #endif /* defined(LIBXML_REGEXP_ENABLED) */
6165 #if defined(LIBXML_REGEXP_ENABLED)
6167 libxml_xmlRegexpExec(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6168 PyObject *py_retval;
6171 PyObject *pyobj_comp;
6174 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlRegexpExec", &pyobj_comp, &content))
6176 comp = (xmlRegexpPtr) PyxmlReg_Get(pyobj_comp);
6178 c_retval = xmlRegexpExec(comp, content);
6179 py_retval = libxml_intWrap((int) c_retval);
6183 #endif /* defined(LIBXML_REGEXP_ENABLED) */
6184 #if defined(LIBXML_REGEXP_ENABLED)
6186 libxml_xmlRegexpIsDeterminist(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6187 PyObject *py_retval;
6190 PyObject *pyobj_comp;
6192 if (!PyArg_ParseTuple(args, (char *)"O:xmlRegexpIsDeterminist", &pyobj_comp))
6194 comp = (xmlRegexpPtr) PyxmlReg_Get(pyobj_comp);
6196 c_retval = xmlRegexpIsDeterminist(comp);
6197 py_retval = libxml_intWrap((int) c_retval);
6201 #endif /* defined(LIBXML_REGEXP_ENABLED) */
6202 #if defined(LIBXML_REGEXP_ENABLED)
6204 libxml_xmlRegexpPrint(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6206 PyObject *pyobj_output;
6207 xmlRegexpPtr regexp;
6208 PyObject *pyobj_regexp;
6210 if (!PyArg_ParseTuple(args, (char *)"OO:xmlRegexpPrint", &pyobj_output, &pyobj_regexp))
6212 output = (FILE *) PyFile_Get(pyobj_output);
6213 regexp = (xmlRegexpPtr) PyxmlReg_Get(pyobj_regexp);
6215 xmlRegexpPrint(output, regexp);
6216 PyFile_Release(output);
6221 #endif /* defined(LIBXML_REGEXP_ENABLED) */
6223 libxml_xmlRegisterDefaultInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
6225 xmlRegisterDefaultInputCallbacks();
6230 #if defined(LIBXML_OUTPUT_ENABLED)
6232 libxml_xmlRegisterDefaultOutputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
6234 xmlRegisterDefaultOutputCallbacks();
6239 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
6240 #if defined(LIBXML_OUTPUT_ENABLED) && defined(LIBXML_HTTP_ENABLED)
6242 libxml_xmlRegisterHTTPPostCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
6244 xmlRegisterHTTPPostCallbacks();
6249 #endif /* defined(LIBXML_OUTPUT_ENABLED) && defined(LIBXML_HTTP_ENABLED) */
6250 #if defined(LIBXML_XPATH_ENABLED)
6252 #if defined(LIBXML_SCHEMAS_ENABLED)
6254 libxml_xmlRelaxNGCleanupTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
6256 xmlRelaxNGCleanupTypes();
6261 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6262 #if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
6264 libxml_xmlRelaxNGDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6266 PyObject *pyobj_output;
6267 xmlRelaxNGPtr schema;
6268 PyObject *pyobj_schema;
6270 if (!PyArg_ParseTuple(args, (char *)"OO:xmlRelaxNGDump", &pyobj_output, &pyobj_schema))
6272 output = (FILE *) PyFile_Get(pyobj_output);
6273 schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema);
6275 xmlRelaxNGDump(output, schema);
6276 PyFile_Release(output);
6281 #endif /* defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
6282 #if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
6284 libxml_xmlRelaxNGDumpTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6286 PyObject *pyobj_output;
6287 xmlRelaxNGPtr schema;
6288 PyObject *pyobj_schema;
6290 if (!PyArg_ParseTuple(args, (char *)"OO:xmlRelaxNGDumpTree", &pyobj_output, &pyobj_schema))
6292 output = (FILE *) PyFile_Get(pyobj_output);
6293 schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema);
6295 xmlRelaxNGDumpTree(output, schema);
6296 PyFile_Release(output);
6301 #endif /* defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
6302 #if defined(LIBXML_SCHEMAS_ENABLED)
6304 libxml_xmlRelaxNGFree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6305 xmlRelaxNGPtr schema;
6306 PyObject *pyobj_schema;
6308 if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGFree", &pyobj_schema))
6310 schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema);
6312 xmlRelaxNGFree(schema);
6317 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6318 #if defined(LIBXML_SCHEMAS_ENABLED)
6320 libxml_xmlRelaxNGFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6321 xmlRelaxNGParserCtxtPtr ctxt;
6322 PyObject *pyobj_ctxt;
6324 if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGFreeParserCtxt", &pyobj_ctxt))
6326 ctxt = (xmlRelaxNGParserCtxtPtr) PyrelaxNgParserCtxt_Get(pyobj_ctxt);
6328 xmlRelaxNGFreeParserCtxt(ctxt);
6333 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6334 #if defined(LIBXML_SCHEMAS_ENABLED)
6336 libxml_xmlRelaxNGInitTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
6337 PyObject *py_retval;
6340 c_retval = xmlRelaxNGInitTypes();
6341 py_retval = libxml_intWrap((int) c_retval);
6345 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6346 #if defined(LIBXML_SCHEMAS_ENABLED)
6348 libxml_xmlRelaxNGNewDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6349 PyObject *py_retval;
6350 xmlRelaxNGParserCtxtPtr c_retval;
6352 PyObject *pyobj_doc;
6354 if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGNewDocParserCtxt", &pyobj_doc))
6356 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6358 c_retval = xmlRelaxNGNewDocParserCtxt(doc);
6359 py_retval = libxml_xmlRelaxNGParserCtxtPtrWrap((xmlRelaxNGParserCtxtPtr) c_retval);
6363 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6364 #if defined(LIBXML_SCHEMAS_ENABLED)
6366 libxml_xmlRelaxNGNewMemParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6367 PyObject *py_retval;
6368 xmlRelaxNGParserCtxtPtr c_retval;
6372 if (!PyArg_ParseTuple(args, (char *)"zi:xmlRelaxNGNewMemParserCtxt", &buffer, &size))
6375 c_retval = xmlRelaxNGNewMemParserCtxt(buffer, size);
6376 py_retval = libxml_xmlRelaxNGParserCtxtPtrWrap((xmlRelaxNGParserCtxtPtr) c_retval);
6380 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6381 #if defined(LIBXML_SCHEMAS_ENABLED)
6383 libxml_xmlRelaxNGNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6384 PyObject *py_retval;
6385 xmlRelaxNGParserCtxtPtr c_retval;
6388 if (!PyArg_ParseTuple(args, (char *)"z:xmlRelaxNGNewParserCtxt", &URL))
6391 c_retval = xmlRelaxNGNewParserCtxt(URL);
6392 py_retval = libxml_xmlRelaxNGParserCtxtPtrWrap((xmlRelaxNGParserCtxtPtr) c_retval);
6396 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6397 #if defined(LIBXML_SCHEMAS_ENABLED)
6399 libxml_xmlRelaxNGNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6400 PyObject *py_retval;
6401 xmlRelaxNGValidCtxtPtr c_retval;
6402 xmlRelaxNGPtr schema;
6403 PyObject *pyobj_schema;
6405 if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGNewValidCtxt", &pyobj_schema))
6407 schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema);
6409 c_retval = xmlRelaxNGNewValidCtxt(schema);
6410 py_retval = libxml_xmlRelaxNGValidCtxtPtrWrap((xmlRelaxNGValidCtxtPtr) c_retval);
6414 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6415 #if defined(LIBXML_SCHEMAS_ENABLED)
6417 libxml_xmlRelaxNGParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6418 PyObject *py_retval;
6419 xmlRelaxNGPtr c_retval;
6420 xmlRelaxNGParserCtxtPtr ctxt;
6421 PyObject *pyobj_ctxt;
6423 if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGParse", &pyobj_ctxt))
6425 ctxt = (xmlRelaxNGParserCtxtPtr) PyrelaxNgParserCtxt_Get(pyobj_ctxt);
6427 c_retval = xmlRelaxNGParse(ctxt);
6428 py_retval = libxml_xmlRelaxNGPtrWrap((xmlRelaxNGPtr) c_retval);
6432 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6433 #if defined(LIBXML_SCHEMAS_ENABLED)
6435 libxml_xmlRelaxNGValidateDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6436 PyObject *py_retval;
6438 xmlRelaxNGValidCtxtPtr ctxt;
6439 PyObject *pyobj_ctxt;
6441 PyObject *pyobj_doc;
6443 if (!PyArg_ParseTuple(args, (char *)"OO:xmlRelaxNGValidateDoc", &pyobj_ctxt, &pyobj_doc))
6445 ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt);
6446 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6448 c_retval = xmlRelaxNGValidateDoc(ctxt, doc);
6449 py_retval = libxml_intWrap((int) c_retval);
6453 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6454 #if defined(LIBXML_SCHEMAS_ENABLED)
6456 libxml_xmlRelaxNGValidateFullElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6457 PyObject *py_retval;
6459 xmlRelaxNGValidCtxtPtr ctxt;
6460 PyObject *pyobj_ctxt;
6462 PyObject *pyobj_doc;
6464 PyObject *pyobj_elem;
6466 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlRelaxNGValidateFullElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem))
6468 ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt);
6469 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6470 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
6472 c_retval = xmlRelaxNGValidateFullElement(ctxt, doc, elem);
6473 py_retval = libxml_intWrap((int) c_retval);
6477 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6478 #if defined(LIBXML_SCHEMAS_ENABLED)
6480 libxml_xmlRelaxNGValidatePopElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6481 PyObject *py_retval;
6483 xmlRelaxNGValidCtxtPtr ctxt;
6484 PyObject *pyobj_ctxt;
6486 PyObject *pyobj_doc;
6488 PyObject *pyobj_elem;
6490 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlRelaxNGValidatePopElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem))
6492 ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt);
6493 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6494 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
6496 c_retval = xmlRelaxNGValidatePopElement(ctxt, doc, elem);
6497 py_retval = libxml_intWrap((int) c_retval);
6501 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6502 #if defined(LIBXML_SCHEMAS_ENABLED)
6504 libxml_xmlRelaxNGValidatePushCData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6505 PyObject *py_retval;
6507 xmlRelaxNGValidCtxtPtr ctxt;
6508 PyObject *pyobj_ctxt;
6512 if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlRelaxNGValidatePushCData", &pyobj_ctxt, &data, &len))
6514 ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt);
6516 c_retval = xmlRelaxNGValidatePushCData(ctxt, data, len);
6517 py_retval = libxml_intWrap((int) c_retval);
6521 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6522 #if defined(LIBXML_SCHEMAS_ENABLED)
6524 libxml_xmlRelaxNGValidatePushElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6525 PyObject *py_retval;
6527 xmlRelaxNGValidCtxtPtr ctxt;
6528 PyObject *pyobj_ctxt;
6530 PyObject *pyobj_doc;
6532 PyObject *pyobj_elem;
6534 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlRelaxNGValidatePushElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem))
6536 ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt);
6537 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6538 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
6540 c_retval = xmlRelaxNGValidatePushElement(ctxt, doc, elem);
6541 py_retval = libxml_intWrap((int) c_retval);
6545 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6546 #if defined(LIBXML_SCHEMAS_ENABLED)
6548 libxml_xmlRelaxParserSetFlag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6549 PyObject *py_retval;
6551 xmlRelaxNGParserCtxtPtr ctxt;
6552 PyObject *pyobj_ctxt;
6555 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlRelaxParserSetFlag", &pyobj_ctxt, &flags))
6557 ctxt = (xmlRelaxNGParserCtxtPtr) PyrelaxNgParserCtxt_Get(pyobj_ctxt);
6559 c_retval = xmlRelaxParserSetFlag(ctxt, flags);
6560 py_retval = libxml_intWrap((int) c_retval);
6564 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6566 libxml_xmlRemoveID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6567 PyObject *py_retval;
6570 PyObject *pyobj_doc;
6572 PyObject *pyobj_attr;
6574 if (!PyArg_ParseTuple(args, (char *)"OO:xmlRemoveID", &pyobj_doc, &pyobj_attr))
6576 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6577 attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr);
6579 c_retval = xmlRemoveID(doc, attr);
6580 py_retval = libxml_intWrap((int) c_retval);
6585 libxml_xmlRemoveProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6586 PyObject *py_retval;
6589 PyObject *pyobj_cur;
6591 if (!PyArg_ParseTuple(args, (char *)"O:xmlRemoveProp", &pyobj_cur))
6593 cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur);
6595 c_retval = xmlRemoveProp(cur);
6596 py_retval = libxml_intWrap((int) c_retval);
6601 libxml_xmlRemoveRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6602 PyObject *py_retval;
6605 PyObject *pyobj_doc;
6607 PyObject *pyobj_attr;
6609 if (!PyArg_ParseTuple(args, (char *)"OO:xmlRemoveRef", &pyobj_doc, &pyobj_attr))
6611 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6612 attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr);
6614 c_retval = xmlRemoveRef(doc, attr);
6615 py_retval = libxml_intWrap((int) c_retval);
6619 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED)
6621 libxml_xmlReplaceNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6622 PyObject *py_retval;
6623 xmlNodePtr c_retval;
6625 PyObject *pyobj_old;
6627 PyObject *pyobj_cur;
6629 if (!PyArg_ParseTuple(args, (char *)"OO:xmlReplaceNode", &pyobj_old, &pyobj_cur))
6631 old = (xmlNodePtr) PyxmlNode_Get(pyobj_old);
6632 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
6634 c_retval = xmlReplaceNode(old, cur);
6635 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
6639 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */
6641 libxml_xmlResetError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6643 PyObject *pyobj_err;
6645 if (!PyArg_ParseTuple(args, (char *)"O:xmlResetError", &pyobj_err))
6647 err = (xmlErrorPtr) PyError_Get(pyobj_err);
6655 libxml_xmlResetLastError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
6657 xmlResetLastError();
6662 #if defined(LIBXML_SAX1_ENABLED)
6664 libxml_xmlSAXDefaultVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6665 PyObject *py_retval;
6669 if (!PyArg_ParseTuple(args, (char *)"i:xmlSAXDefaultVersion", &version))
6672 c_retval = xmlSAXDefaultVersion(version);
6673 py_retval = libxml_intWrap((int) c_retval);
6677 #endif /* defined(LIBXML_SAX1_ENABLED) */
6678 #if defined(LIBXML_OUTPUT_ENABLED)
6680 libxml_xmlSaveFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6681 PyObject *py_retval;
6685 PyObject *pyobj_cur;
6687 if (!PyArg_ParseTuple(args, (char *)"zO:xmlSaveFile", &filename, &pyobj_cur))
6689 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
6691 c_retval = xmlSaveFile(filename, cur);
6692 py_retval = libxml_intWrap((int) c_retval);
6696 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
6697 #if defined(LIBXML_OUTPUT_ENABLED)
6699 libxml_xmlSaveFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6700 PyObject *py_retval;
6704 PyObject *pyobj_cur;
6707 if (!PyArg_ParseTuple(args, (char *)"zOz:xmlSaveFileEnc", &filename, &pyobj_cur, &encoding))
6709 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
6711 c_retval = xmlSaveFileEnc(filename, cur, encoding);
6712 py_retval = libxml_intWrap((int) c_retval);
6716 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
6717 #if defined(LIBXML_OUTPUT_ENABLED)
6719 libxml_xmlSaveFormatFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6720 PyObject *py_retval;
6724 PyObject *pyobj_cur;
6727 if (!PyArg_ParseTuple(args, (char *)"zOi:xmlSaveFormatFile", &filename, &pyobj_cur, &format))
6729 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
6731 c_retval = xmlSaveFormatFile(filename, cur, format);
6732 py_retval = libxml_intWrap((int) c_retval);
6736 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
6737 #if defined(LIBXML_OUTPUT_ENABLED)
6739 libxml_xmlSaveFormatFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6740 PyObject *py_retval;
6744 PyObject *pyobj_cur;
6748 if (!PyArg_ParseTuple(args, (char *)"zOzi:xmlSaveFormatFileEnc", &filename, &pyobj_cur, &encoding, &format))
6750 cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur);
6752 c_retval = xmlSaveFormatFileEnc(filename, cur, encoding, format);
6753 py_retval = libxml_intWrap((int) c_retval);
6757 #endif /* defined(LIBXML_OUTPUT_ENABLED) */
6759 libxml_xmlSaveUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6760 PyObject *py_retval;
6763 PyObject *pyobj_uri;
6765 if (!PyArg_ParseTuple(args, (char *)"O:xmlSaveUri", &pyobj_uri))
6767 uri = (xmlURIPtr) PyURI_Get(pyobj_uri);
6769 c_retval = xmlSaveUri(uri);
6770 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
6774 #if defined(LIBXML_LEGACY_ENABLED)
6776 libxml_xmlScanName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6777 PyObject *py_retval;
6779 xmlParserCtxtPtr ctxt;
6780 PyObject *pyobj_ctxt;
6782 if (!PyArg_ParseTuple(args, (char *)"O:xmlScanName", &pyobj_ctxt))
6784 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
6786 c_retval = xmlScanName(ctxt);
6787 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
6791 #endif /* defined(LIBXML_LEGACY_ENABLED) */
6792 #if defined(LIBXML_SCHEMAS_ENABLED)
6794 libxml_xmlSchemaCleanupTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
6796 xmlSchemaCleanupTypes();
6801 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6802 #if defined(LIBXML_SCHEMAS_ENABLED)
6804 libxml_xmlSchemaCollapseString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6805 PyObject *py_retval;
6809 if (!PyArg_ParseTuple(args, (char *)"z:xmlSchemaCollapseString", &value))
6812 c_retval = xmlSchemaCollapseString(value);
6813 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
6817 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6818 #if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
6820 libxml_xmlSchemaDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6822 PyObject *pyobj_output;
6823 xmlSchemaPtr schema;
6824 PyObject *pyobj_schema;
6826 if (!PyArg_ParseTuple(args, (char *)"OO:xmlSchemaDump", &pyobj_output, &pyobj_schema))
6828 output = (FILE *) PyFile_Get(pyobj_output);
6829 schema = (xmlSchemaPtr) PySchema_Get(pyobj_schema);
6831 xmlSchemaDump(output, schema);
6832 PyFile_Release(output);
6837 #endif /* defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
6838 #if defined(LIBXML_SCHEMAS_ENABLED)
6840 libxml_xmlSchemaFree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6841 xmlSchemaPtr schema;
6842 PyObject *pyobj_schema;
6844 if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaFree", &pyobj_schema))
6846 schema = (xmlSchemaPtr) PySchema_Get(pyobj_schema);
6848 xmlSchemaFree(schema);
6853 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6854 #if defined(LIBXML_SCHEMAS_ENABLED)
6856 libxml_xmlSchemaFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6857 xmlSchemaParserCtxtPtr ctxt;
6858 PyObject *pyobj_ctxt;
6860 if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaFreeParserCtxt", &pyobj_ctxt))
6862 ctxt = (xmlSchemaParserCtxtPtr) PySchemaParserCtxt_Get(pyobj_ctxt);
6864 xmlSchemaFreeParserCtxt(ctxt);
6869 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6870 #if defined(LIBXML_SCHEMAS_ENABLED)
6872 libxml_xmlSchemaInitTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
6874 xmlSchemaInitTypes();
6879 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6880 #if defined(LIBXML_SCHEMAS_ENABLED)
6882 libxml_xmlSchemaIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6883 PyObject *py_retval;
6885 xmlSchemaValidCtxtPtr ctxt;
6886 PyObject *pyobj_ctxt;
6888 if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaIsValid", &pyobj_ctxt))
6890 ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt);
6892 c_retval = xmlSchemaIsValid(ctxt);
6893 py_retval = libxml_intWrap((int) c_retval);
6897 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6898 #if defined(LIBXML_SCHEMAS_ENABLED)
6900 libxml_xmlSchemaNewDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6901 PyObject *py_retval;
6902 xmlSchemaParserCtxtPtr c_retval;
6904 PyObject *pyobj_doc;
6906 if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaNewDocParserCtxt", &pyobj_doc))
6908 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
6910 c_retval = xmlSchemaNewDocParserCtxt(doc);
6911 py_retval = libxml_xmlSchemaParserCtxtPtrWrap((xmlSchemaParserCtxtPtr) c_retval);
6915 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6916 #if defined(LIBXML_SCHEMAS_ENABLED)
6918 libxml_xmlSchemaNewMemParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6919 PyObject *py_retval;
6920 xmlSchemaParserCtxtPtr c_retval;
6924 if (!PyArg_ParseTuple(args, (char *)"zi:xmlSchemaNewMemParserCtxt", &buffer, &size))
6927 c_retval = xmlSchemaNewMemParserCtxt(buffer, size);
6928 py_retval = libxml_xmlSchemaParserCtxtPtrWrap((xmlSchemaParserCtxtPtr) c_retval);
6932 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6933 #if defined(LIBXML_SCHEMAS_ENABLED)
6935 libxml_xmlSchemaNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6936 PyObject *py_retval;
6937 xmlSchemaParserCtxtPtr c_retval;
6940 if (!PyArg_ParseTuple(args, (char *)"z:xmlSchemaNewParserCtxt", &URL))
6943 c_retval = xmlSchemaNewParserCtxt(URL);
6944 py_retval = libxml_xmlSchemaParserCtxtPtrWrap((xmlSchemaParserCtxtPtr) c_retval);
6948 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6949 #if defined(LIBXML_SCHEMAS_ENABLED)
6951 libxml_xmlSchemaNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6952 PyObject *py_retval;
6953 xmlSchemaValidCtxtPtr c_retval;
6954 xmlSchemaPtr schema;
6955 PyObject *pyobj_schema;
6957 if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaNewValidCtxt", &pyobj_schema))
6959 schema = (xmlSchemaPtr) PySchema_Get(pyobj_schema);
6961 c_retval = xmlSchemaNewValidCtxt(schema);
6962 py_retval = libxml_xmlSchemaValidCtxtPtrWrap((xmlSchemaValidCtxtPtr) c_retval);
6966 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6967 #if defined(LIBXML_SCHEMAS_ENABLED)
6969 libxml_xmlSchemaParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6970 PyObject *py_retval;
6971 xmlSchemaPtr c_retval;
6972 xmlSchemaParserCtxtPtr ctxt;
6973 PyObject *pyobj_ctxt;
6975 if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaParse", &pyobj_ctxt))
6977 ctxt = (xmlSchemaParserCtxtPtr) PySchemaParserCtxt_Get(pyobj_ctxt);
6979 c_retval = xmlSchemaParse(ctxt);
6980 py_retval = libxml_xmlSchemaPtrWrap((xmlSchemaPtr) c_retval);
6984 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
6985 #if defined(LIBXML_SCHEMAS_ENABLED)
6987 libxml_xmlSchemaSetValidOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
6988 PyObject *py_retval;
6990 xmlSchemaValidCtxtPtr ctxt;
6991 PyObject *pyobj_ctxt;
6994 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlSchemaSetValidOptions", &pyobj_ctxt, &options))
6996 ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt);
6998 c_retval = xmlSchemaSetValidOptions(ctxt, options);
6999 py_retval = libxml_intWrap((int) c_retval);
7003 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
7004 #if defined(LIBXML_SCHEMAS_ENABLED)
7006 libxml_xmlSchemaValidCtxtGetOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7007 PyObject *py_retval;
7009 xmlSchemaValidCtxtPtr ctxt;
7010 PyObject *pyobj_ctxt;
7012 if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaValidCtxtGetOptions", &pyobj_ctxt))
7014 ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt);
7016 c_retval = xmlSchemaValidCtxtGetOptions(ctxt);
7017 py_retval = libxml_intWrap((int) c_retval);
7021 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
7022 #if defined(LIBXML_SCHEMAS_ENABLED)
7024 libxml_xmlSchemaValidCtxtGetParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7025 PyObject *py_retval;
7026 xmlParserCtxtPtr c_retval;
7027 xmlSchemaValidCtxtPtr ctxt;
7028 PyObject *pyobj_ctxt;
7030 if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaValidCtxtGetParserCtxt", &pyobj_ctxt))
7032 ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt);
7034 c_retval = xmlSchemaValidCtxtGetParserCtxt(ctxt);
7035 py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
7039 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
7040 #if defined(LIBXML_SCHEMAS_ENABLED)
7042 libxml_xmlSchemaValidateDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7043 PyObject *py_retval;
7045 xmlSchemaValidCtxtPtr ctxt;
7046 PyObject *pyobj_ctxt;
7048 PyObject *pyobj_doc;
7050 if (!PyArg_ParseTuple(args, (char *)"OO:xmlSchemaValidateDoc", &pyobj_ctxt, &pyobj_doc))
7052 ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt);
7053 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
7055 c_retval = xmlSchemaValidateDoc(ctxt, doc);
7056 py_retval = libxml_intWrap((int) c_retval);
7060 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
7061 #if defined(LIBXML_SCHEMAS_ENABLED)
7063 libxml_xmlSchemaValidateFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7064 PyObject *py_retval;
7066 xmlSchemaValidCtxtPtr ctxt;
7067 PyObject *pyobj_ctxt;
7071 if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlSchemaValidateFile", &pyobj_ctxt, &filename, &options))
7073 ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt);
7075 c_retval = xmlSchemaValidateFile(ctxt, filename, options);
7076 py_retval = libxml_intWrap((int) c_retval);
7080 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
7081 #if defined(LIBXML_SCHEMAS_ENABLED)
7083 libxml_xmlSchemaValidateOneElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7084 PyObject *py_retval;
7086 xmlSchemaValidCtxtPtr ctxt;
7087 PyObject *pyobj_ctxt;
7089 PyObject *pyobj_elem;
7091 if (!PyArg_ParseTuple(args, (char *)"OO:xmlSchemaValidateOneElement", &pyobj_ctxt, &pyobj_elem))
7093 ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt);
7094 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
7096 c_retval = xmlSchemaValidateOneElement(ctxt, elem);
7097 py_retval = libxml_intWrap((int) c_retval);
7101 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
7102 #if defined(LIBXML_SCHEMAS_ENABLED)
7104 libxml_xmlSchemaValidateSetFilename(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7105 xmlSchemaValidCtxtPtr vctxt;
7106 PyObject *pyobj_vctxt;
7109 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlSchemaValidateSetFilename", &pyobj_vctxt, &filename))
7111 vctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_vctxt);
7113 xmlSchemaValidateSetFilename(vctxt, filename);
7118 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
7119 #if defined(LIBXML_SCHEMAS_ENABLED)
7121 libxml_xmlSchemaWhiteSpaceReplace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7122 PyObject *py_retval;
7126 if (!PyArg_ParseTuple(args, (char *)"z:xmlSchemaWhiteSpaceReplace", &value))
7129 c_retval = xmlSchemaWhiteSpaceReplace(value);
7130 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
7134 #endif /* defined(LIBXML_SCHEMAS_ENABLED) */
7136 libxml_xmlSearchNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7137 PyObject *py_retval;
7140 PyObject *pyobj_doc;
7142 PyObject *pyobj_node;
7143 xmlChar * nameSpace;
7145 if (!PyArg_ParseTuple(args, (char *)"OOz:xmlSearchNs", &pyobj_doc, &pyobj_node, &nameSpace))
7147 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
7148 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
7150 c_retval = xmlSearchNs(doc, node, nameSpace);
7151 py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval);
7156 libxml_xmlSearchNsByHref(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7157 PyObject *py_retval;
7160 PyObject *pyobj_doc;
7162 PyObject *pyobj_node;
7165 if (!PyArg_ParseTuple(args, (char *)"OOz:xmlSearchNsByHref", &pyobj_doc, &pyobj_node, &href))
7167 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
7168 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
7170 c_retval = xmlSearchNsByHref(doc, node, href);
7171 py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval);
7176 libxml_xmlSetCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7179 if (!PyArg_ParseTuple(args, (char *)"i:xmlSetCompressMode", &mode))
7182 xmlSetCompressMode(mode);
7188 libxml_xmlSetDocCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7190 PyObject *pyobj_doc;
7193 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlSetDocCompressMode", &pyobj_doc, &mode))
7195 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
7197 xmlSetDocCompressMode(doc, mode);
7203 libxml_xmlSetListDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7205 PyObject *pyobj_list;
7207 PyObject *pyobj_doc;
7209 if (!PyArg_ParseTuple(args, (char *)"OO:xmlSetListDoc", &pyobj_list, &pyobj_doc))
7211 list = (xmlNodePtr) PyxmlNode_Get(pyobj_list);
7212 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
7214 xmlSetListDoc(list, doc);
7220 libxml_xmlSetNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7222 PyObject *pyobj_node;
7226 if (!PyArg_ParseTuple(args, (char *)"OO:xmlSetNs", &pyobj_node, &pyobj_ns))
7228 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
7229 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
7236 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED)
7238 libxml_xmlSetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7239 PyObject *py_retval;
7240 xmlAttrPtr c_retval;
7242 PyObject *pyobj_node;
7248 if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlSetNsProp", &pyobj_node, &pyobj_ns, &name, &value))
7250 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
7251 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
7253 c_retval = xmlSetNsProp(node, ns, name, value);
7254 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
7258 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) */
7259 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED)
7261 libxml_xmlSetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7262 PyObject *py_retval;
7263 xmlAttrPtr c_retval;
7265 PyObject *pyobj_node;
7269 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlSetProp", &pyobj_node, &name, &value))
7271 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
7273 c_retval = xmlSetProp(node, name, value);
7274 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
7278 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) */
7280 libxml_xmlSetTreeDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7282 PyObject *pyobj_tree;
7284 PyObject *pyobj_doc;
7286 if (!PyArg_ParseTuple(args, (char *)"OO:xmlSetTreeDoc", &pyobj_tree, &pyobj_doc))
7288 tree = (xmlNodePtr) PyxmlNode_Get(pyobj_tree);
7289 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
7291 xmlSetTreeDoc(tree, doc);
7296 #if defined(LIBXML_SAX1_ENABLED)
7298 libxml_xmlSetupParserForBuffer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7299 xmlParserCtxtPtr ctxt;
7300 PyObject *pyobj_ctxt;
7304 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlSetupParserForBuffer", &pyobj_ctxt, &buffer, &filename))
7306 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
7308 xmlSetupParserForBuffer(ctxt, buffer, filename);
7313 #endif /* defined(LIBXML_SAX1_ENABLED) */
7314 #if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
7316 libxml_xmlShellPrintNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7318 PyObject *pyobj_node;
7320 if (!PyArg_ParseTuple(args, (char *)"O:xmlShellPrintNode", &pyobj_node))
7322 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
7324 xmlShellPrintNode(node);
7329 #endif /* defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */
7330 #if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED)
7332 libxml_xmlShellPrintXPathError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7336 if (!PyArg_ParseTuple(args, (char *)"iz:xmlShellPrintXPathError", &errorType, &arg))
7339 xmlShellPrintXPathError(errorType, arg);
7344 #endif /* defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) */
7346 libxml_xmlSkipBlankChars(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7347 PyObject *py_retval;
7349 xmlParserCtxtPtr ctxt;
7350 PyObject *pyobj_ctxt;
7352 if (!PyArg_ParseTuple(args, (char *)"O:xmlSkipBlankChars", &pyobj_ctxt))
7354 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
7356 c_retval = xmlSkipBlankChars(ctxt);
7357 py_retval = libxml_intWrap((int) c_retval);
7362 libxml_xmlStopParser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7363 xmlParserCtxtPtr ctxt;
7364 PyObject *pyobj_ctxt;
7366 if (!PyArg_ParseTuple(args, (char *)"O:xmlStopParser", &pyobj_ctxt))
7368 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
7370 xmlStopParser(ctxt);
7376 libxml_xmlStrEqual(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7377 PyObject *py_retval;
7382 if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrEqual", &str1, &str2))
7385 c_retval = xmlStrEqual(str1, str2);
7386 py_retval = libxml_intWrap((int) c_retval);
7391 libxml_xmlStrQEqual(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7392 PyObject *py_retval;
7398 if (!PyArg_ParseTuple(args, (char *)"zzz:xmlStrQEqual", &pref, &name, &str))
7401 c_retval = xmlStrQEqual(pref, name, str);
7402 py_retval = libxml_intWrap((int) c_retval);
7407 libxml_xmlStrcasecmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7408 PyObject *py_retval;
7413 if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrcasecmp", &str1, &str2))
7416 c_retval = xmlStrcasecmp(str1, str2);
7417 py_retval = libxml_intWrap((int) c_retval);
7422 libxml_xmlStrcasestr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7423 PyObject *py_retval;
7424 const xmlChar * c_retval;
7428 if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrcasestr", &str, &val))
7431 c_retval = xmlStrcasestr(str, val);
7432 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7437 libxml_xmlStrcat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7438 PyObject *py_retval;
7443 if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrcat", &cur, &add))
7446 c_retval = xmlStrcat(cur, add);
7447 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
7452 libxml_xmlStrchr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7453 PyObject *py_retval;
7454 const xmlChar * c_retval;
7458 if (!PyArg_ParseTuple(args, (char *)"zc:xmlStrchr", &str, &val))
7461 c_retval = xmlStrchr(str, val);
7462 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7467 libxml_xmlStrcmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7468 PyObject *py_retval;
7473 if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrcmp", &str1, &str2))
7476 c_retval = xmlStrcmp(str1, str2);
7477 py_retval = libxml_intWrap((int) c_retval);
7482 libxml_xmlStrdup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7483 PyObject *py_retval;
7487 if (!PyArg_ParseTuple(args, (char *)"z:xmlStrdup", &cur))
7490 c_retval = xmlStrdup(cur);
7491 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
7496 libxml_xmlStringDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7497 PyObject *py_retval;
7499 xmlParserCtxtPtr ctxt;
7500 PyObject *pyobj_ctxt;
7507 if (!PyArg_ParseTuple(args, (char *)"Oziccc:xmlStringDecodeEntities", &pyobj_ctxt, &str, &what, &end, &end2, &end3))
7509 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
7511 c_retval = xmlStringDecodeEntities(ctxt, str, what, end, end2, end3);
7512 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
7517 libxml_xmlStringGetNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7518 PyObject *py_retval;
7519 xmlNodePtr c_retval;
7521 PyObject *pyobj_doc;
7524 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlStringGetNodeList", &pyobj_doc, &value))
7526 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
7528 c_retval = xmlStringGetNodeList(doc, value);
7529 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
7534 libxml_xmlStringLenDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7535 PyObject *py_retval;
7537 xmlParserCtxtPtr ctxt;
7538 PyObject *pyobj_ctxt;
7546 if (!PyArg_ParseTuple(args, (char *)"Oziiccc:xmlStringLenDecodeEntities", &pyobj_ctxt, &str, &len, &what, &end, &end2, &end3))
7548 ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
7550 c_retval = xmlStringLenDecodeEntities(ctxt, str, len, what, end, end2, end3);
7551 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
7556 libxml_xmlStringLenGetNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7557 PyObject *py_retval;
7558 xmlNodePtr c_retval;
7560 PyObject *pyobj_doc;
7564 if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlStringLenGetNodeList", &pyobj_doc, &value, &len))
7566 doc = (xmlDoc *) PyxmlNode_Get(pyobj_doc);
7568 c_retval = xmlStringLenGetNodeList(doc, value, len);
7569 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
7574 libxml_xmlStrlen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7575 PyObject *py_retval;
7579 if (!PyArg_ParseTuple(args, (char *)"z:xmlStrlen", &str))
7582 c_retval = xmlStrlen(str);
7583 py_retval = libxml_intWrap((int) c_retval);
7588 libxml_xmlStrncasecmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7589 PyObject *py_retval;
7595 if (!PyArg_ParseTuple(args, (char *)"zzi:xmlStrncasecmp", &str1, &str2, &len))
7598 c_retval = xmlStrncasecmp(str1, str2, len);
7599 py_retval = libxml_intWrap((int) c_retval);
7604 libxml_xmlStrncat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7605 PyObject *py_retval;
7611 if (!PyArg_ParseTuple(args, (char *)"zzi:xmlStrncat", &cur, &add, &len))
7614 c_retval = xmlStrncat(cur, add, len);
7615 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
7620 libxml_xmlStrncatNew(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7621 PyObject *py_retval;
7627 if (!PyArg_ParseTuple(args, (char *)"zzi:xmlStrncatNew", &str1, &str2, &len))
7630 c_retval = xmlStrncatNew(str1, str2, len);
7631 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
7636 libxml_xmlStrncmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7637 PyObject *py_retval;
7643 if (!PyArg_ParseTuple(args, (char *)"zzi:xmlStrncmp", &str1, &str2, &len))
7646 c_retval = xmlStrncmp(str1, str2, len);
7647 py_retval = libxml_intWrap((int) c_retval);
7652 libxml_xmlStrndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7653 PyObject *py_retval;
7658 if (!PyArg_ParseTuple(args, (char *)"zi:xmlStrndup", &cur, &len))
7661 c_retval = xmlStrndup(cur, len);
7662 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
7667 libxml_xmlStrstr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7668 PyObject *py_retval;
7669 const xmlChar * c_retval;
7673 if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrstr", &str, &val))
7676 c_retval = xmlStrstr(str, val);
7677 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7682 libxml_xmlStrsub(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7683 PyObject *py_retval;
7689 if (!PyArg_ParseTuple(args, (char *)"zii:xmlStrsub", &str, &start, &len))
7692 c_retval = xmlStrsub(str, start, len);
7693 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
7698 libxml_xmlSubstituteEntitiesDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7699 PyObject *py_retval;
7703 if (!PyArg_ParseTuple(args, (char *)"i:xmlSubstituteEntitiesDefault", &val))
7706 c_retval = xmlSubstituteEntitiesDefault(val);
7707 py_retval = libxml_intWrap((int) c_retval);
7712 libxml_xmlTextConcat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7713 PyObject *py_retval;
7716 PyObject *pyobj_node;
7720 if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlTextConcat", &pyobj_node, &content, &len))
7722 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
7724 c_retval = xmlTextConcat(node, content, len);
7725 py_retval = libxml_intWrap((int) c_retval);
7730 libxml_xmlTextMerge(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7731 PyObject *py_retval;
7732 xmlNodePtr c_retval;
7734 PyObject *pyobj_first;
7736 PyObject *pyobj_second;
7738 if (!PyArg_ParseTuple(args, (char *)"OO:xmlTextMerge", &pyobj_first, &pyobj_second))
7740 first = (xmlNodePtr) PyxmlNode_Get(pyobj_first);
7741 second = (xmlNodePtr) PyxmlNode_Get(pyobj_second);
7743 c_retval = xmlTextMerge(first, second);
7744 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
7748 #if defined(LIBXML_READER_ENABLED)
7750 libxml_xmlTextReaderAttributeCount(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7751 PyObject *py_retval;
7753 xmlTextReaderPtr reader;
7754 PyObject *pyobj_reader;
7756 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderAttributeCount", &pyobj_reader))
7758 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7760 c_retval = xmlTextReaderAttributeCount(reader);
7761 py_retval = libxml_intWrap((int) c_retval);
7765 #endif /* defined(LIBXML_READER_ENABLED) */
7766 #if defined(LIBXML_READER_ENABLED)
7768 libxml_xmlTextReaderByteConsumed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7769 PyObject *py_retval;
7771 xmlTextReaderPtr reader;
7772 PyObject *pyobj_reader;
7774 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderByteConsumed", &pyobj_reader))
7776 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7778 c_retval = xmlTextReaderByteConsumed(reader);
7779 py_retval = libxml_longWrap((long) c_retval);
7783 #endif /* defined(LIBXML_READER_ENABLED) */
7784 #if defined(LIBXML_READER_ENABLED)
7786 libxml_xmlTextReaderClose(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7787 PyObject *py_retval;
7789 xmlTextReaderPtr reader;
7790 PyObject *pyobj_reader;
7792 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderClose", &pyobj_reader))
7794 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7796 c_retval = xmlTextReaderClose(reader);
7797 py_retval = libxml_intWrap((int) c_retval);
7801 #endif /* defined(LIBXML_READER_ENABLED) */
7802 #if defined(LIBXML_READER_ENABLED)
7804 libxml_xmlTextReaderConstBaseUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7805 PyObject *py_retval;
7806 const xmlChar * c_retval;
7807 xmlTextReaderPtr reader;
7808 PyObject *pyobj_reader;
7810 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstBaseUri", &pyobj_reader))
7812 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7814 c_retval = xmlTextReaderConstBaseUri(reader);
7815 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7819 #endif /* defined(LIBXML_READER_ENABLED) */
7820 #if defined(LIBXML_READER_ENABLED)
7822 libxml_xmlTextReaderConstEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7823 PyObject *py_retval;
7824 const xmlChar * c_retval;
7825 xmlTextReaderPtr reader;
7826 PyObject *pyobj_reader;
7828 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstEncoding", &pyobj_reader))
7830 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7832 c_retval = xmlTextReaderConstEncoding(reader);
7833 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7837 #endif /* defined(LIBXML_READER_ENABLED) */
7838 #if defined(LIBXML_READER_ENABLED)
7840 libxml_xmlTextReaderConstLocalName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7841 PyObject *py_retval;
7842 const xmlChar * c_retval;
7843 xmlTextReaderPtr reader;
7844 PyObject *pyobj_reader;
7846 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstLocalName", &pyobj_reader))
7848 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7850 c_retval = xmlTextReaderConstLocalName(reader);
7851 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7855 #endif /* defined(LIBXML_READER_ENABLED) */
7856 #if defined(LIBXML_READER_ENABLED)
7858 libxml_xmlTextReaderConstName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7859 PyObject *py_retval;
7860 const xmlChar * c_retval;
7861 xmlTextReaderPtr reader;
7862 PyObject *pyobj_reader;
7864 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstName", &pyobj_reader))
7866 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7868 c_retval = xmlTextReaderConstName(reader);
7869 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7873 #endif /* defined(LIBXML_READER_ENABLED) */
7874 #if defined(LIBXML_READER_ENABLED)
7876 libxml_xmlTextReaderConstNamespaceUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7877 PyObject *py_retval;
7878 const xmlChar * c_retval;
7879 xmlTextReaderPtr reader;
7880 PyObject *pyobj_reader;
7882 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstNamespaceUri", &pyobj_reader))
7884 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7886 c_retval = xmlTextReaderConstNamespaceUri(reader);
7887 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7891 #endif /* defined(LIBXML_READER_ENABLED) */
7892 #if defined(LIBXML_READER_ENABLED)
7894 libxml_xmlTextReaderConstPrefix(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7895 PyObject *py_retval;
7896 const xmlChar * c_retval;
7897 xmlTextReaderPtr reader;
7898 PyObject *pyobj_reader;
7900 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstPrefix", &pyobj_reader))
7902 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7904 c_retval = xmlTextReaderConstPrefix(reader);
7905 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7909 #endif /* defined(LIBXML_READER_ENABLED) */
7910 #if defined(LIBXML_READER_ENABLED)
7912 libxml_xmlTextReaderConstString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7913 PyObject *py_retval;
7914 const xmlChar * c_retval;
7915 xmlTextReaderPtr reader;
7916 PyObject *pyobj_reader;
7919 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderConstString", &pyobj_reader, &str))
7921 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7923 c_retval = xmlTextReaderConstString(reader, str);
7924 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7928 #endif /* defined(LIBXML_READER_ENABLED) */
7929 #if defined(LIBXML_READER_ENABLED)
7931 libxml_xmlTextReaderConstValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7932 PyObject *py_retval;
7933 const xmlChar * c_retval;
7934 xmlTextReaderPtr reader;
7935 PyObject *pyobj_reader;
7937 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstValue", &pyobj_reader))
7939 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7941 c_retval = xmlTextReaderConstValue(reader);
7942 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7946 #endif /* defined(LIBXML_READER_ENABLED) */
7947 #if defined(LIBXML_READER_ENABLED)
7949 libxml_xmlTextReaderConstXmlLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7950 PyObject *py_retval;
7951 const xmlChar * c_retval;
7952 xmlTextReaderPtr reader;
7953 PyObject *pyobj_reader;
7955 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstXmlLang", &pyobj_reader))
7957 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7959 c_retval = xmlTextReaderConstXmlLang(reader);
7960 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7964 #endif /* defined(LIBXML_READER_ENABLED) */
7965 #if defined(LIBXML_READER_ENABLED)
7967 libxml_xmlTextReaderConstXmlVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7968 PyObject *py_retval;
7969 const xmlChar * c_retval;
7970 xmlTextReaderPtr reader;
7971 PyObject *pyobj_reader;
7973 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstXmlVersion", &pyobj_reader))
7975 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7977 c_retval = xmlTextReaderConstXmlVersion(reader);
7978 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
7982 #endif /* defined(LIBXML_READER_ENABLED) */
7983 #if defined(LIBXML_READER_ENABLED)
7985 libxml_xmlTextReaderCurrentDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
7986 PyObject *py_retval;
7988 xmlTextReaderPtr reader;
7989 PyObject *pyobj_reader;
7991 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderCurrentDoc", &pyobj_reader))
7993 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
7995 c_retval = xmlTextReaderCurrentDoc(reader);
7996 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
8000 #endif /* defined(LIBXML_READER_ENABLED) */
8001 #if defined(LIBXML_READER_ENABLED)
8003 libxml_xmlTextReaderCurrentNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8004 PyObject *py_retval;
8005 xmlNodePtr c_retval;
8006 xmlTextReaderPtr reader;
8007 PyObject *pyobj_reader;
8009 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderCurrentNode", &pyobj_reader))
8011 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8013 c_retval = xmlTextReaderCurrentNode(reader);
8014 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
8018 #endif /* defined(LIBXML_READER_ENABLED) */
8019 #if defined(LIBXML_READER_ENABLED)
8021 libxml_xmlTextReaderDepth(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8022 PyObject *py_retval;
8024 xmlTextReaderPtr reader;
8025 PyObject *pyobj_reader;
8027 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderDepth", &pyobj_reader))
8029 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8031 c_retval = xmlTextReaderDepth(reader);
8032 py_retval = libxml_intWrap((int) c_retval);
8036 #endif /* defined(LIBXML_READER_ENABLED) */
8037 #if defined(LIBXML_READER_ENABLED)
8039 libxml_xmlTextReaderExpand(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8040 PyObject *py_retval;
8041 xmlNodePtr c_retval;
8042 xmlTextReaderPtr reader;
8043 PyObject *pyobj_reader;
8045 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderExpand", &pyobj_reader))
8047 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8049 c_retval = xmlTextReaderExpand(reader);
8050 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
8054 #endif /* defined(LIBXML_READER_ENABLED) */
8055 #if defined(LIBXML_READER_ENABLED)
8057 libxml_xmlTextReaderGetAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8058 PyObject *py_retval;
8060 xmlTextReaderPtr reader;
8061 PyObject *pyobj_reader;
8064 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderGetAttribute", &pyobj_reader, &name))
8066 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8068 c_retval = xmlTextReaderGetAttribute(reader, name);
8069 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
8073 #endif /* defined(LIBXML_READER_ENABLED) */
8074 #if defined(LIBXML_READER_ENABLED)
8076 libxml_xmlTextReaderGetAttributeNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8077 PyObject *py_retval;
8079 xmlTextReaderPtr reader;
8080 PyObject *pyobj_reader;
8083 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlTextReaderGetAttributeNo", &pyobj_reader, &no))
8085 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8087 c_retval = xmlTextReaderGetAttributeNo(reader, no);
8088 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
8092 #endif /* defined(LIBXML_READER_ENABLED) */
8093 #if defined(LIBXML_READER_ENABLED)
8095 libxml_xmlTextReaderGetAttributeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8096 PyObject *py_retval;
8098 xmlTextReaderPtr reader;
8099 PyObject *pyobj_reader;
8100 xmlChar * localName;
8101 xmlChar * namespaceURI;
8103 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlTextReaderGetAttributeNs", &pyobj_reader, &localName, &namespaceURI))
8105 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8107 c_retval = xmlTextReaderGetAttributeNs(reader, localName, namespaceURI);
8108 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
8112 #endif /* defined(LIBXML_READER_ENABLED) */
8113 #if defined(LIBXML_READER_ENABLED)
8115 libxml_xmlTextReaderGetParserColumnNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8116 PyObject *py_retval;
8118 xmlTextReaderPtr reader;
8119 PyObject *pyobj_reader;
8121 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderGetParserColumnNumber", &pyobj_reader))
8123 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8125 c_retval = xmlTextReaderGetParserColumnNumber(reader);
8126 py_retval = libxml_intWrap((int) c_retval);
8130 #endif /* defined(LIBXML_READER_ENABLED) */
8131 #if defined(LIBXML_READER_ENABLED)
8133 libxml_xmlTextReaderGetParserLineNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8134 PyObject *py_retval;
8136 xmlTextReaderPtr reader;
8137 PyObject *pyobj_reader;
8139 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderGetParserLineNumber", &pyobj_reader))
8141 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8143 c_retval = xmlTextReaderGetParserLineNumber(reader);
8144 py_retval = libxml_intWrap((int) c_retval);
8148 #endif /* defined(LIBXML_READER_ENABLED) */
8149 #if defined(LIBXML_READER_ENABLED)
8151 libxml_xmlTextReaderGetParserProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8152 PyObject *py_retval;
8154 xmlTextReaderPtr reader;
8155 PyObject *pyobj_reader;
8158 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlTextReaderGetParserProp", &pyobj_reader, &prop))
8160 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8162 c_retval = xmlTextReaderGetParserProp(reader, prop);
8163 py_retval = libxml_intWrap((int) c_retval);
8167 #endif /* defined(LIBXML_READER_ENABLED) */
8168 #if defined(LIBXML_READER_ENABLED)
8170 libxml_xmlTextReaderGetRemainder(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8171 PyObject *py_retval;
8172 xmlParserInputBufferPtr c_retval;
8173 xmlTextReaderPtr reader;
8174 PyObject *pyobj_reader;
8176 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderGetRemainder", &pyobj_reader))
8178 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8180 c_retval = xmlTextReaderGetRemainder(reader);
8181 py_retval = libxml_xmlParserInputBufferPtrWrap((xmlParserInputBufferPtr) c_retval);
8185 #endif /* defined(LIBXML_READER_ENABLED) */
8186 #if defined(LIBXML_READER_ENABLED)
8188 libxml_xmlTextReaderHasAttributes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8189 PyObject *py_retval;
8191 xmlTextReaderPtr reader;
8192 PyObject *pyobj_reader;
8194 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderHasAttributes", &pyobj_reader))
8196 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8198 c_retval = xmlTextReaderHasAttributes(reader);
8199 py_retval = libxml_intWrap((int) c_retval);
8203 #endif /* defined(LIBXML_READER_ENABLED) */
8204 #if defined(LIBXML_READER_ENABLED)
8206 libxml_xmlTextReaderHasValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8207 PyObject *py_retval;
8209 xmlTextReaderPtr reader;
8210 PyObject *pyobj_reader;
8212 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderHasValue", &pyobj_reader))
8214 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8216 c_retval = xmlTextReaderHasValue(reader);
8217 py_retval = libxml_intWrap((int) c_retval);
8221 #endif /* defined(LIBXML_READER_ENABLED) */
8222 #if defined(LIBXML_READER_ENABLED)
8224 libxml_xmlTextReaderIsDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8225 PyObject *py_retval;
8227 xmlTextReaderPtr reader;
8228 PyObject *pyobj_reader;
8230 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderIsDefault", &pyobj_reader))
8232 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8234 c_retval = xmlTextReaderIsDefault(reader);
8235 py_retval = libxml_intWrap((int) c_retval);
8239 #endif /* defined(LIBXML_READER_ENABLED) */
8240 #if defined(LIBXML_READER_ENABLED)
8242 libxml_xmlTextReaderIsEmptyElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8243 PyObject *py_retval;
8245 xmlTextReaderPtr reader;
8246 PyObject *pyobj_reader;
8248 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderIsEmptyElement", &pyobj_reader))
8250 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8252 c_retval = xmlTextReaderIsEmptyElement(reader);
8253 py_retval = libxml_intWrap((int) c_retval);
8257 #endif /* defined(LIBXML_READER_ENABLED) */
8258 #if defined(LIBXML_READER_ENABLED)
8260 libxml_xmlTextReaderIsNamespaceDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8261 PyObject *py_retval;
8263 xmlTextReaderPtr reader;
8264 PyObject *pyobj_reader;
8266 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderIsNamespaceDecl", &pyobj_reader))
8268 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8270 c_retval = xmlTextReaderIsNamespaceDecl(reader);
8271 py_retval = libxml_intWrap((int) c_retval);
8275 #endif /* defined(LIBXML_READER_ENABLED) */
8276 #if defined(LIBXML_READER_ENABLED)
8278 libxml_xmlTextReaderIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8279 PyObject *py_retval;
8281 xmlTextReaderPtr reader;
8282 PyObject *pyobj_reader;
8284 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderIsValid", &pyobj_reader))
8286 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8288 c_retval = xmlTextReaderIsValid(reader);
8289 py_retval = libxml_intWrap((int) c_retval);
8293 #endif /* defined(LIBXML_READER_ENABLED) */
8294 #if defined(LIBXML_READER_ENABLED)
8296 libxml_xmlTextReaderLocatorBaseURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8297 PyObject *py_retval;
8299 xmlTextReaderLocatorPtr locator;
8300 PyObject *pyobj_locator;
8302 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderLocatorBaseURI", &pyobj_locator))
8304 locator = (xmlTextReaderLocatorPtr) PyxmlTextReaderLocator_Get(pyobj_locator);
8306 c_retval = xmlTextReaderLocatorBaseURI(locator);
8307 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
8311 #endif /* defined(LIBXML_READER_ENABLED) */
8312 #if defined(LIBXML_READER_ENABLED)
8314 libxml_xmlTextReaderLocatorLineNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8315 PyObject *py_retval;
8317 xmlTextReaderLocatorPtr locator;
8318 PyObject *pyobj_locator;
8320 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderLocatorLineNumber", &pyobj_locator))
8322 locator = (xmlTextReaderLocatorPtr) PyxmlTextReaderLocator_Get(pyobj_locator);
8324 c_retval = xmlTextReaderLocatorLineNumber(locator);
8325 py_retval = libxml_intWrap((int) c_retval);
8329 #endif /* defined(LIBXML_READER_ENABLED) */
8330 #if defined(LIBXML_READER_ENABLED)
8332 libxml_xmlTextReaderLookupNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8333 PyObject *py_retval;
8335 xmlTextReaderPtr reader;
8336 PyObject *pyobj_reader;
8339 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderLookupNamespace", &pyobj_reader, &prefix))
8341 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8343 c_retval = xmlTextReaderLookupNamespace(reader, prefix);
8344 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
8348 #endif /* defined(LIBXML_READER_ENABLED) */
8349 #if defined(LIBXML_READER_ENABLED)
8351 libxml_xmlTextReaderMoveToAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8352 PyObject *py_retval;
8354 xmlTextReaderPtr reader;
8355 PyObject *pyobj_reader;
8358 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderMoveToAttribute", &pyobj_reader, &name))
8360 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8362 c_retval = xmlTextReaderMoveToAttribute(reader, name);
8363 py_retval = libxml_intWrap((int) c_retval);
8367 #endif /* defined(LIBXML_READER_ENABLED) */
8368 #if defined(LIBXML_READER_ENABLED)
8370 libxml_xmlTextReaderMoveToAttributeNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8371 PyObject *py_retval;
8373 xmlTextReaderPtr reader;
8374 PyObject *pyobj_reader;
8377 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlTextReaderMoveToAttributeNo", &pyobj_reader, &no))
8379 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8381 c_retval = xmlTextReaderMoveToAttributeNo(reader, no);
8382 py_retval = libxml_intWrap((int) c_retval);
8386 #endif /* defined(LIBXML_READER_ENABLED) */
8387 #if defined(LIBXML_READER_ENABLED)
8389 libxml_xmlTextReaderMoveToAttributeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8390 PyObject *py_retval;
8392 xmlTextReaderPtr reader;
8393 PyObject *pyobj_reader;
8394 xmlChar * localName;
8395 xmlChar * namespaceURI;
8397 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlTextReaderMoveToAttributeNs", &pyobj_reader, &localName, &namespaceURI))
8399 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8401 c_retval = xmlTextReaderMoveToAttributeNs(reader, localName, namespaceURI);
8402 py_retval = libxml_intWrap((int) c_retval);
8406 #endif /* defined(LIBXML_READER_ENABLED) */
8407 #if defined(LIBXML_READER_ENABLED)
8409 libxml_xmlTextReaderMoveToElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8410 PyObject *py_retval;
8412 xmlTextReaderPtr reader;
8413 PyObject *pyobj_reader;
8415 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderMoveToElement", &pyobj_reader))
8417 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8419 c_retval = xmlTextReaderMoveToElement(reader);
8420 py_retval = libxml_intWrap((int) c_retval);
8424 #endif /* defined(LIBXML_READER_ENABLED) */
8425 #if defined(LIBXML_READER_ENABLED)
8427 libxml_xmlTextReaderMoveToFirstAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8428 PyObject *py_retval;
8430 xmlTextReaderPtr reader;
8431 PyObject *pyobj_reader;
8433 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderMoveToFirstAttribute", &pyobj_reader))
8435 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8437 c_retval = xmlTextReaderMoveToFirstAttribute(reader);
8438 py_retval = libxml_intWrap((int) c_retval);
8442 #endif /* defined(LIBXML_READER_ENABLED) */
8443 #if defined(LIBXML_READER_ENABLED)
8445 libxml_xmlTextReaderMoveToNextAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8446 PyObject *py_retval;
8448 xmlTextReaderPtr reader;
8449 PyObject *pyobj_reader;
8451 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderMoveToNextAttribute", &pyobj_reader))
8453 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8455 c_retval = xmlTextReaderMoveToNextAttribute(reader);
8456 py_retval = libxml_intWrap((int) c_retval);
8460 #endif /* defined(LIBXML_READER_ENABLED) */
8461 #if defined(LIBXML_READER_ENABLED)
8463 libxml_xmlTextReaderNext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8464 PyObject *py_retval;
8466 xmlTextReaderPtr reader;
8467 PyObject *pyobj_reader;
8469 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderNext", &pyobj_reader))
8471 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8473 c_retval = xmlTextReaderNext(reader);
8474 py_retval = libxml_intWrap((int) c_retval);
8478 #endif /* defined(LIBXML_READER_ENABLED) */
8479 #if defined(LIBXML_READER_ENABLED)
8481 libxml_xmlTextReaderNextSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8482 PyObject *py_retval;
8484 xmlTextReaderPtr reader;
8485 PyObject *pyobj_reader;
8487 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderNextSibling", &pyobj_reader))
8489 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8491 c_retval = xmlTextReaderNextSibling(reader);
8492 py_retval = libxml_intWrap((int) c_retval);
8496 #endif /* defined(LIBXML_READER_ENABLED) */
8497 #if defined(LIBXML_READER_ENABLED)
8499 libxml_xmlTextReaderNodeType(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8500 PyObject *py_retval;
8502 xmlTextReaderPtr reader;
8503 PyObject *pyobj_reader;
8505 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderNodeType", &pyobj_reader))
8507 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8509 c_retval = xmlTextReaderNodeType(reader);
8510 py_retval = libxml_intWrap((int) c_retval);
8514 #endif /* defined(LIBXML_READER_ENABLED) */
8515 #if defined(LIBXML_READER_ENABLED)
8517 libxml_xmlTextReaderNormalization(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8518 PyObject *py_retval;
8520 xmlTextReaderPtr reader;
8521 PyObject *pyobj_reader;
8523 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderNormalization", &pyobj_reader))
8525 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8527 c_retval = xmlTextReaderNormalization(reader);
8528 py_retval = libxml_intWrap((int) c_retval);
8532 #endif /* defined(LIBXML_READER_ENABLED) */
8533 #if defined(LIBXML_READER_ENABLED)
8535 libxml_xmlTextReaderPreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8536 PyObject *py_retval;
8537 xmlNodePtr c_retval;
8538 xmlTextReaderPtr reader;
8539 PyObject *pyobj_reader;
8541 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderPreserve", &pyobj_reader))
8543 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8545 c_retval = xmlTextReaderPreserve(reader);
8546 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
8550 #endif /* defined(LIBXML_READER_ENABLED) */
8551 #if defined(LIBXML_READER_ENABLED)
8553 libxml_xmlTextReaderQuoteChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8554 PyObject *py_retval;
8556 xmlTextReaderPtr reader;
8557 PyObject *pyobj_reader;
8559 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderQuoteChar", &pyobj_reader))
8561 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8563 c_retval = xmlTextReaderQuoteChar(reader);
8564 py_retval = libxml_intWrap((int) c_retval);
8568 #endif /* defined(LIBXML_READER_ENABLED) */
8569 #if defined(LIBXML_READER_ENABLED)
8571 libxml_xmlTextReaderRead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8572 PyObject *py_retval;
8574 xmlTextReaderPtr reader;
8575 PyObject *pyobj_reader;
8577 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderRead", &pyobj_reader))
8579 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8581 c_retval = xmlTextReaderRead(reader);
8582 py_retval = libxml_intWrap((int) c_retval);
8586 #endif /* defined(LIBXML_READER_ENABLED) */
8587 #if defined(LIBXML_READER_ENABLED)
8589 libxml_xmlTextReaderReadAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8590 PyObject *py_retval;
8592 xmlTextReaderPtr reader;
8593 PyObject *pyobj_reader;
8595 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadAttributeValue", &pyobj_reader))
8597 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8599 c_retval = xmlTextReaderReadAttributeValue(reader);
8600 py_retval = libxml_intWrap((int) c_retval);
8604 #endif /* defined(LIBXML_READER_ENABLED) */
8605 #if defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED)
8607 libxml_xmlTextReaderReadInnerXml(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8608 PyObject *py_retval;
8610 xmlTextReaderPtr reader;
8611 PyObject *pyobj_reader;
8613 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadInnerXml", &pyobj_reader))
8615 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8617 c_retval = xmlTextReaderReadInnerXml(reader);
8618 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
8622 #endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) */
8623 #if defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED)
8625 libxml_xmlTextReaderReadOuterXml(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8626 PyObject *py_retval;
8628 xmlTextReaderPtr reader;
8629 PyObject *pyobj_reader;
8631 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadOuterXml", &pyobj_reader))
8633 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8635 c_retval = xmlTextReaderReadOuterXml(reader);
8636 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
8640 #endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) */
8641 #if defined(LIBXML_READER_ENABLED)
8643 libxml_xmlTextReaderReadState(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8644 PyObject *py_retval;
8646 xmlTextReaderPtr reader;
8647 PyObject *pyobj_reader;
8649 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadState", &pyobj_reader))
8651 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8653 c_retval = xmlTextReaderReadState(reader);
8654 py_retval = libxml_intWrap((int) c_retval);
8658 #endif /* defined(LIBXML_READER_ENABLED) */
8659 #if defined(LIBXML_READER_ENABLED)
8661 libxml_xmlTextReaderReadString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8662 PyObject *py_retval;
8664 xmlTextReaderPtr reader;
8665 PyObject *pyobj_reader;
8667 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadString", &pyobj_reader))
8669 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8671 c_retval = xmlTextReaderReadString(reader);
8672 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
8676 #endif /* defined(LIBXML_READER_ENABLED) */
8677 #if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED)
8679 libxml_xmlTextReaderRelaxNGSetSchema(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8680 PyObject *py_retval;
8682 xmlTextReaderPtr reader;
8683 PyObject *pyobj_reader;
8684 xmlRelaxNGPtr schema;
8685 PyObject *pyobj_schema;
8687 if (!PyArg_ParseTuple(args, (char *)"OO:xmlTextReaderRelaxNGSetSchema", &pyobj_reader, &pyobj_schema))
8689 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8690 schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema);
8692 c_retval = xmlTextReaderRelaxNGSetSchema(reader, schema);
8693 py_retval = libxml_intWrap((int) c_retval);
8697 #endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */
8698 #if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED)
8700 libxml_xmlTextReaderRelaxNGValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8701 PyObject *py_retval;
8703 xmlTextReaderPtr reader;
8704 PyObject *pyobj_reader;
8707 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderRelaxNGValidate", &pyobj_reader, &rng))
8709 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8711 c_retval = xmlTextReaderRelaxNGValidate(reader, rng);
8712 py_retval = libxml_intWrap((int) c_retval);
8716 #endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */
8717 #if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED)
8719 libxml_xmlTextReaderRelaxNGValidateCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8720 PyObject *py_retval;
8722 xmlTextReaderPtr reader;
8723 PyObject *pyobj_reader;
8724 xmlRelaxNGValidCtxtPtr ctxt;
8725 PyObject *pyobj_ctxt;
8728 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlTextReaderRelaxNGValidateCtxt", &pyobj_reader, &pyobj_ctxt, &options))
8730 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8731 ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt);
8733 c_retval = xmlTextReaderRelaxNGValidateCtxt(reader, ctxt, options);
8734 py_retval = libxml_intWrap((int) c_retval);
8738 #endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */
8739 #if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED)
8741 libxml_xmlTextReaderSchemaValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8742 PyObject *py_retval;
8744 xmlTextReaderPtr reader;
8745 PyObject *pyobj_reader;
8748 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderSchemaValidate", &pyobj_reader, &xsd))
8750 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8752 c_retval = xmlTextReaderSchemaValidate(reader, xsd);
8753 py_retval = libxml_intWrap((int) c_retval);
8757 #endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */
8758 #if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED)
8760 libxml_xmlTextReaderSchemaValidateCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8761 PyObject *py_retval;
8763 xmlTextReaderPtr reader;
8764 PyObject *pyobj_reader;
8765 xmlSchemaValidCtxtPtr ctxt;
8766 PyObject *pyobj_ctxt;
8769 if (!PyArg_ParseTuple(args, (char *)"OOi:xmlTextReaderSchemaValidateCtxt", &pyobj_reader, &pyobj_ctxt, &options))
8771 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8772 ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt);
8774 c_retval = xmlTextReaderSchemaValidateCtxt(reader, ctxt, options);
8775 py_retval = libxml_intWrap((int) c_retval);
8779 #endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */
8780 #if defined(LIBXML_READER_ENABLED)
8782 libxml_xmlTextReaderSetParserProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8783 PyObject *py_retval;
8785 xmlTextReaderPtr reader;
8786 PyObject *pyobj_reader;
8790 if (!PyArg_ParseTuple(args, (char *)"Oii:xmlTextReaderSetParserProp", &pyobj_reader, &prop, &value))
8792 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8794 c_retval = xmlTextReaderSetParserProp(reader, prop, value);
8795 py_retval = libxml_intWrap((int) c_retval);
8799 #endif /* defined(LIBXML_READER_ENABLED) */
8800 #if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED)
8802 libxml_xmlTextReaderSetSchema(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8803 PyObject *py_retval;
8805 xmlTextReaderPtr reader;
8806 PyObject *pyobj_reader;
8807 xmlSchemaPtr schema;
8808 PyObject *pyobj_schema;
8810 if (!PyArg_ParseTuple(args, (char *)"OO:xmlTextReaderSetSchema", &pyobj_reader, &pyobj_schema))
8812 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8813 schema = (xmlSchemaPtr) PySchema_Get(pyobj_schema);
8815 c_retval = xmlTextReaderSetSchema(reader, schema);
8816 py_retval = libxml_intWrap((int) c_retval);
8820 #endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */
8821 #if defined(LIBXML_READER_ENABLED)
8823 libxml_xmlTextReaderSetup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8824 PyObject *py_retval;
8826 xmlTextReaderPtr reader;
8827 PyObject *pyobj_reader;
8828 xmlParserInputBufferPtr input;
8829 PyObject *pyobj_input;
8834 if (!PyArg_ParseTuple(args, (char *)"OOzzi:xmlTextReaderSetup", &pyobj_reader, &pyobj_input, &URL, &encoding, &options))
8836 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8837 input = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_input);
8839 c_retval = xmlTextReaderSetup(reader, input, URL, encoding, options);
8840 py_retval = libxml_intWrap((int) c_retval);
8844 #endif /* defined(LIBXML_READER_ENABLED) */
8845 #if defined(LIBXML_READER_ENABLED)
8847 libxml_xmlTextReaderStandalone(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8848 PyObject *py_retval;
8850 xmlTextReaderPtr reader;
8851 PyObject *pyobj_reader;
8853 if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderStandalone", &pyobj_reader))
8855 reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader);
8857 c_retval = xmlTextReaderStandalone(reader);
8858 py_retval = libxml_intWrap((int) c_retval);
8862 #endif /* defined(LIBXML_READER_ENABLED) */
8864 libxml_xmlThrDefDefaultBufferSize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8865 PyObject *py_retval;
8869 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefDefaultBufferSize", &v))
8872 c_retval = xmlThrDefDefaultBufferSize(v);
8873 py_retval = libxml_intWrap((int) c_retval);
8878 libxml_xmlThrDefDoValidityCheckingDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8879 PyObject *py_retval;
8883 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefDoValidityCheckingDefaultValue", &v))
8886 c_retval = xmlThrDefDoValidityCheckingDefaultValue(v);
8887 py_retval = libxml_intWrap((int) c_retval);
8892 libxml_xmlThrDefGetWarningsDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8893 PyObject *py_retval;
8897 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefGetWarningsDefaultValue", &v))
8900 c_retval = xmlThrDefGetWarningsDefaultValue(v);
8901 py_retval = libxml_intWrap((int) c_retval);
8906 libxml_xmlThrDefIndentTreeOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8907 PyObject *py_retval;
8911 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefIndentTreeOutput", &v))
8914 c_retval = xmlThrDefIndentTreeOutput(v);
8915 py_retval = libxml_intWrap((int) c_retval);
8920 libxml_xmlThrDefKeepBlanksDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8921 PyObject *py_retval;
8925 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefKeepBlanksDefaultValue", &v))
8928 c_retval = xmlThrDefKeepBlanksDefaultValue(v);
8929 py_retval = libxml_intWrap((int) c_retval);
8934 libxml_xmlThrDefLineNumbersDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8935 PyObject *py_retval;
8939 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefLineNumbersDefaultValue", &v))
8942 c_retval = xmlThrDefLineNumbersDefaultValue(v);
8943 py_retval = libxml_intWrap((int) c_retval);
8948 libxml_xmlThrDefLoadExtDtdDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8949 PyObject *py_retval;
8953 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefLoadExtDtdDefaultValue", &v))
8956 c_retval = xmlThrDefLoadExtDtdDefaultValue(v);
8957 py_retval = libxml_intWrap((int) c_retval);
8962 libxml_xmlThrDefParserDebugEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8963 PyObject *py_retval;
8967 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefParserDebugEntities", &v))
8970 c_retval = xmlThrDefParserDebugEntities(v);
8971 py_retval = libxml_intWrap((int) c_retval);
8976 libxml_xmlThrDefPedanticParserDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8977 PyObject *py_retval;
8981 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefPedanticParserDefaultValue", &v))
8984 c_retval = xmlThrDefPedanticParserDefaultValue(v);
8985 py_retval = libxml_intWrap((int) c_retval);
8990 libxml_xmlThrDefSaveNoEmptyTags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
8991 PyObject *py_retval;
8995 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefSaveNoEmptyTags", &v))
8998 c_retval = xmlThrDefSaveNoEmptyTags(v);
8999 py_retval = libxml_intWrap((int) c_retval);
9004 libxml_xmlThrDefSubstituteEntitiesDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9005 PyObject *py_retval;
9009 if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefSubstituteEntitiesDefaultValue", &v))
9012 c_retval = xmlThrDefSubstituteEntitiesDefaultValue(v);
9013 py_retval = libxml_intWrap((int) c_retval);
9018 libxml_xmlThrDefTreeIndentString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9019 PyObject *py_retval;
9020 const char * c_retval;
9023 if (!PyArg_ParseTuple(args, (char *)"z:xmlThrDefTreeIndentString", &v))
9026 c_retval = xmlThrDefTreeIndentString(v);
9027 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
9031 #if defined(LIBXML_UNICODE_ENABLED)
9033 libxml_xmlUCSIsAegeanNumbers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9034 PyObject *py_retval;
9038 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsAegeanNumbers", &code))
9041 c_retval = xmlUCSIsAegeanNumbers(code);
9042 py_retval = libxml_intWrap((int) c_retval);
9046 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9047 #if defined(LIBXML_UNICODE_ENABLED)
9049 libxml_xmlUCSIsAlphabeticPresentationForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9050 PyObject *py_retval;
9054 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsAlphabeticPresentationForms", &code))
9057 c_retval = xmlUCSIsAlphabeticPresentationForms(code);
9058 py_retval = libxml_intWrap((int) c_retval);
9062 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9063 #if defined(LIBXML_UNICODE_ENABLED)
9065 libxml_xmlUCSIsArabic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9066 PyObject *py_retval;
9070 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArabic", &code))
9073 c_retval = xmlUCSIsArabic(code);
9074 py_retval = libxml_intWrap((int) c_retval);
9078 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9079 #if defined(LIBXML_UNICODE_ENABLED)
9081 libxml_xmlUCSIsArabicPresentationFormsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9082 PyObject *py_retval;
9086 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArabicPresentationFormsA", &code))
9089 c_retval = xmlUCSIsArabicPresentationFormsA(code);
9090 py_retval = libxml_intWrap((int) c_retval);
9094 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9095 #if defined(LIBXML_UNICODE_ENABLED)
9097 libxml_xmlUCSIsArabicPresentationFormsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9098 PyObject *py_retval;
9102 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArabicPresentationFormsB", &code))
9105 c_retval = xmlUCSIsArabicPresentationFormsB(code);
9106 py_retval = libxml_intWrap((int) c_retval);
9110 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9111 #if defined(LIBXML_UNICODE_ENABLED)
9113 libxml_xmlUCSIsArmenian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9114 PyObject *py_retval;
9118 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArmenian", &code))
9121 c_retval = xmlUCSIsArmenian(code);
9122 py_retval = libxml_intWrap((int) c_retval);
9126 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9127 #if defined(LIBXML_UNICODE_ENABLED)
9129 libxml_xmlUCSIsArrows(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9130 PyObject *py_retval;
9134 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArrows", &code))
9137 c_retval = xmlUCSIsArrows(code);
9138 py_retval = libxml_intWrap((int) c_retval);
9142 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9143 #if defined(LIBXML_UNICODE_ENABLED)
9145 libxml_xmlUCSIsBasicLatin(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9146 PyObject *py_retval;
9150 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBasicLatin", &code))
9153 c_retval = xmlUCSIsBasicLatin(code);
9154 py_retval = libxml_intWrap((int) c_retval);
9158 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9159 #if defined(LIBXML_UNICODE_ENABLED)
9161 libxml_xmlUCSIsBengali(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9162 PyObject *py_retval;
9166 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBengali", &code))
9169 c_retval = xmlUCSIsBengali(code);
9170 py_retval = libxml_intWrap((int) c_retval);
9174 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9175 #if defined(LIBXML_UNICODE_ENABLED)
9177 libxml_xmlUCSIsBlock(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9178 PyObject *py_retval;
9183 if (!PyArg_ParseTuple(args, (char *)"iz:xmlUCSIsBlock", &code, &block))
9186 c_retval = xmlUCSIsBlock(code, block);
9187 py_retval = libxml_intWrap((int) c_retval);
9191 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9192 #if defined(LIBXML_UNICODE_ENABLED)
9194 libxml_xmlUCSIsBlockElements(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9195 PyObject *py_retval;
9199 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBlockElements", &code))
9202 c_retval = xmlUCSIsBlockElements(code);
9203 py_retval = libxml_intWrap((int) c_retval);
9207 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9208 #if defined(LIBXML_UNICODE_ENABLED)
9210 libxml_xmlUCSIsBopomofo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9211 PyObject *py_retval;
9215 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBopomofo", &code))
9218 c_retval = xmlUCSIsBopomofo(code);
9219 py_retval = libxml_intWrap((int) c_retval);
9223 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9224 #if defined(LIBXML_UNICODE_ENABLED)
9226 libxml_xmlUCSIsBopomofoExtended(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9227 PyObject *py_retval;
9231 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBopomofoExtended", &code))
9234 c_retval = xmlUCSIsBopomofoExtended(code);
9235 py_retval = libxml_intWrap((int) c_retval);
9239 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9240 #if defined(LIBXML_UNICODE_ENABLED)
9242 libxml_xmlUCSIsBoxDrawing(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9243 PyObject *py_retval;
9247 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBoxDrawing", &code))
9250 c_retval = xmlUCSIsBoxDrawing(code);
9251 py_retval = libxml_intWrap((int) c_retval);
9255 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9256 #if defined(LIBXML_UNICODE_ENABLED)
9258 libxml_xmlUCSIsBraillePatterns(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9259 PyObject *py_retval;
9263 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBraillePatterns", &code))
9266 c_retval = xmlUCSIsBraillePatterns(code);
9267 py_retval = libxml_intWrap((int) c_retval);
9271 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9272 #if defined(LIBXML_UNICODE_ENABLED)
9274 libxml_xmlUCSIsBuhid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9275 PyObject *py_retval;
9279 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBuhid", &code))
9282 c_retval = xmlUCSIsBuhid(code);
9283 py_retval = libxml_intWrap((int) c_retval);
9287 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9288 #if defined(LIBXML_UNICODE_ENABLED)
9290 libxml_xmlUCSIsByzantineMusicalSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9291 PyObject *py_retval;
9295 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsByzantineMusicalSymbols", &code))
9298 c_retval = xmlUCSIsByzantineMusicalSymbols(code);
9299 py_retval = libxml_intWrap((int) c_retval);
9303 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9304 #if defined(LIBXML_UNICODE_ENABLED)
9306 libxml_xmlUCSIsCJKCompatibility(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9307 PyObject *py_retval;
9311 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKCompatibility", &code))
9314 c_retval = xmlUCSIsCJKCompatibility(code);
9315 py_retval = libxml_intWrap((int) c_retval);
9319 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9320 #if defined(LIBXML_UNICODE_ENABLED)
9322 libxml_xmlUCSIsCJKCompatibilityForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9323 PyObject *py_retval;
9327 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKCompatibilityForms", &code))
9330 c_retval = xmlUCSIsCJKCompatibilityForms(code);
9331 py_retval = libxml_intWrap((int) c_retval);
9335 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9336 #if defined(LIBXML_UNICODE_ENABLED)
9338 libxml_xmlUCSIsCJKCompatibilityIdeographs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9339 PyObject *py_retval;
9343 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKCompatibilityIdeographs", &code))
9346 c_retval = xmlUCSIsCJKCompatibilityIdeographs(code);
9347 py_retval = libxml_intWrap((int) c_retval);
9351 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9352 #if defined(LIBXML_UNICODE_ENABLED)
9354 libxml_xmlUCSIsCJKCompatibilityIdeographsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9355 PyObject *py_retval;
9359 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKCompatibilityIdeographsSupplement", &code))
9362 c_retval = xmlUCSIsCJKCompatibilityIdeographsSupplement(code);
9363 py_retval = libxml_intWrap((int) c_retval);
9367 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9368 #if defined(LIBXML_UNICODE_ENABLED)
9370 libxml_xmlUCSIsCJKRadicalsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9371 PyObject *py_retval;
9375 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKRadicalsSupplement", &code))
9378 c_retval = xmlUCSIsCJKRadicalsSupplement(code);
9379 py_retval = libxml_intWrap((int) c_retval);
9383 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9384 #if defined(LIBXML_UNICODE_ENABLED)
9386 libxml_xmlUCSIsCJKSymbolsandPunctuation(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9387 PyObject *py_retval;
9391 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKSymbolsandPunctuation", &code))
9394 c_retval = xmlUCSIsCJKSymbolsandPunctuation(code);
9395 py_retval = libxml_intWrap((int) c_retval);
9399 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9400 #if defined(LIBXML_UNICODE_ENABLED)
9402 libxml_xmlUCSIsCJKUnifiedIdeographs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9403 PyObject *py_retval;
9407 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKUnifiedIdeographs", &code))
9410 c_retval = xmlUCSIsCJKUnifiedIdeographs(code);
9411 py_retval = libxml_intWrap((int) c_retval);
9415 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9416 #if defined(LIBXML_UNICODE_ENABLED)
9418 libxml_xmlUCSIsCJKUnifiedIdeographsExtensionA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9419 PyObject *py_retval;
9423 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKUnifiedIdeographsExtensionA", &code))
9426 c_retval = xmlUCSIsCJKUnifiedIdeographsExtensionA(code);
9427 py_retval = libxml_intWrap((int) c_retval);
9431 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9432 #if defined(LIBXML_UNICODE_ENABLED)
9434 libxml_xmlUCSIsCJKUnifiedIdeographsExtensionB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9435 PyObject *py_retval;
9439 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKUnifiedIdeographsExtensionB", &code))
9442 c_retval = xmlUCSIsCJKUnifiedIdeographsExtensionB(code);
9443 py_retval = libxml_intWrap((int) c_retval);
9447 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9448 #if defined(LIBXML_UNICODE_ENABLED)
9450 libxml_xmlUCSIsCat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9451 PyObject *py_retval;
9456 if (!PyArg_ParseTuple(args, (char *)"iz:xmlUCSIsCat", &code, &cat))
9459 c_retval = xmlUCSIsCat(code, cat);
9460 py_retval = libxml_intWrap((int) c_retval);
9464 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9465 #if defined(LIBXML_UNICODE_ENABLED)
9467 libxml_xmlUCSIsCatC(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9468 PyObject *py_retval;
9472 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatC", &code))
9475 c_retval = xmlUCSIsCatC(code);
9476 py_retval = libxml_intWrap((int) c_retval);
9480 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9481 #if defined(LIBXML_UNICODE_ENABLED)
9483 libxml_xmlUCSIsCatCc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9484 PyObject *py_retval;
9488 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatCc", &code))
9491 c_retval = xmlUCSIsCatCc(code);
9492 py_retval = libxml_intWrap((int) c_retval);
9496 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9497 #if defined(LIBXML_UNICODE_ENABLED)
9499 libxml_xmlUCSIsCatCf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9500 PyObject *py_retval;
9504 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatCf", &code))
9507 c_retval = xmlUCSIsCatCf(code);
9508 py_retval = libxml_intWrap((int) c_retval);
9512 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9513 #if defined(LIBXML_UNICODE_ENABLED)
9515 libxml_xmlUCSIsCatCo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9516 PyObject *py_retval;
9520 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatCo", &code))
9523 c_retval = xmlUCSIsCatCo(code);
9524 py_retval = libxml_intWrap((int) c_retval);
9528 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9529 #if defined(LIBXML_UNICODE_ENABLED)
9531 libxml_xmlUCSIsCatCs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9532 PyObject *py_retval;
9536 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatCs", &code))
9539 c_retval = xmlUCSIsCatCs(code);
9540 py_retval = libxml_intWrap((int) c_retval);
9544 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9545 #if defined(LIBXML_UNICODE_ENABLED)
9547 libxml_xmlUCSIsCatL(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9548 PyObject *py_retval;
9552 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatL", &code))
9555 c_retval = xmlUCSIsCatL(code);
9556 py_retval = libxml_intWrap((int) c_retval);
9560 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9561 #if defined(LIBXML_UNICODE_ENABLED)
9563 libxml_xmlUCSIsCatLl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9564 PyObject *py_retval;
9568 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLl", &code))
9571 c_retval = xmlUCSIsCatLl(code);
9572 py_retval = libxml_intWrap((int) c_retval);
9576 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9577 #if defined(LIBXML_UNICODE_ENABLED)
9579 libxml_xmlUCSIsCatLm(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9580 PyObject *py_retval;
9584 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLm", &code))
9587 c_retval = xmlUCSIsCatLm(code);
9588 py_retval = libxml_intWrap((int) c_retval);
9592 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9593 #if defined(LIBXML_UNICODE_ENABLED)
9595 libxml_xmlUCSIsCatLo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9596 PyObject *py_retval;
9600 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLo", &code))
9603 c_retval = xmlUCSIsCatLo(code);
9604 py_retval = libxml_intWrap((int) c_retval);
9608 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9609 #if defined(LIBXML_UNICODE_ENABLED)
9611 libxml_xmlUCSIsCatLt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9612 PyObject *py_retval;
9616 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLt", &code))
9619 c_retval = xmlUCSIsCatLt(code);
9620 py_retval = libxml_intWrap((int) c_retval);
9624 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9625 #if defined(LIBXML_UNICODE_ENABLED)
9627 libxml_xmlUCSIsCatLu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9628 PyObject *py_retval;
9632 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLu", &code))
9635 c_retval = xmlUCSIsCatLu(code);
9636 py_retval = libxml_intWrap((int) c_retval);
9640 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9641 #if defined(LIBXML_UNICODE_ENABLED)
9643 libxml_xmlUCSIsCatM(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9644 PyObject *py_retval;
9648 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatM", &code))
9651 c_retval = xmlUCSIsCatM(code);
9652 py_retval = libxml_intWrap((int) c_retval);
9656 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9657 #if defined(LIBXML_UNICODE_ENABLED)
9659 libxml_xmlUCSIsCatMc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9660 PyObject *py_retval;
9664 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatMc", &code))
9667 c_retval = xmlUCSIsCatMc(code);
9668 py_retval = libxml_intWrap((int) c_retval);
9672 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9673 #if defined(LIBXML_UNICODE_ENABLED)
9675 libxml_xmlUCSIsCatMe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9676 PyObject *py_retval;
9680 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatMe", &code))
9683 c_retval = xmlUCSIsCatMe(code);
9684 py_retval = libxml_intWrap((int) c_retval);
9688 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9689 #if defined(LIBXML_UNICODE_ENABLED)
9691 libxml_xmlUCSIsCatMn(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9692 PyObject *py_retval;
9696 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatMn", &code))
9699 c_retval = xmlUCSIsCatMn(code);
9700 py_retval = libxml_intWrap((int) c_retval);
9704 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9705 #if defined(LIBXML_UNICODE_ENABLED)
9707 libxml_xmlUCSIsCatN(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9708 PyObject *py_retval;
9712 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatN", &code))
9715 c_retval = xmlUCSIsCatN(code);
9716 py_retval = libxml_intWrap((int) c_retval);
9720 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9721 #if defined(LIBXML_UNICODE_ENABLED)
9723 libxml_xmlUCSIsCatNd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9724 PyObject *py_retval;
9728 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatNd", &code))
9731 c_retval = xmlUCSIsCatNd(code);
9732 py_retval = libxml_intWrap((int) c_retval);
9736 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9737 #if defined(LIBXML_UNICODE_ENABLED)
9739 libxml_xmlUCSIsCatNl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9740 PyObject *py_retval;
9744 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatNl", &code))
9747 c_retval = xmlUCSIsCatNl(code);
9748 py_retval = libxml_intWrap((int) c_retval);
9752 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9753 #if defined(LIBXML_UNICODE_ENABLED)
9755 libxml_xmlUCSIsCatNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9756 PyObject *py_retval;
9760 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatNo", &code))
9763 c_retval = xmlUCSIsCatNo(code);
9764 py_retval = libxml_intWrap((int) c_retval);
9768 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9769 #if defined(LIBXML_UNICODE_ENABLED)
9771 libxml_xmlUCSIsCatP(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9772 PyObject *py_retval;
9776 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatP", &code))
9779 c_retval = xmlUCSIsCatP(code);
9780 py_retval = libxml_intWrap((int) c_retval);
9784 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9785 #if defined(LIBXML_UNICODE_ENABLED)
9787 libxml_xmlUCSIsCatPc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9788 PyObject *py_retval;
9792 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPc", &code))
9795 c_retval = xmlUCSIsCatPc(code);
9796 py_retval = libxml_intWrap((int) c_retval);
9800 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9801 #if defined(LIBXML_UNICODE_ENABLED)
9803 libxml_xmlUCSIsCatPd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9804 PyObject *py_retval;
9808 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPd", &code))
9811 c_retval = xmlUCSIsCatPd(code);
9812 py_retval = libxml_intWrap((int) c_retval);
9816 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9817 #if defined(LIBXML_UNICODE_ENABLED)
9819 libxml_xmlUCSIsCatPe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9820 PyObject *py_retval;
9824 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPe", &code))
9827 c_retval = xmlUCSIsCatPe(code);
9828 py_retval = libxml_intWrap((int) c_retval);
9832 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9833 #if defined(LIBXML_UNICODE_ENABLED)
9835 libxml_xmlUCSIsCatPf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9836 PyObject *py_retval;
9840 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPf", &code))
9843 c_retval = xmlUCSIsCatPf(code);
9844 py_retval = libxml_intWrap((int) c_retval);
9848 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9849 #if defined(LIBXML_UNICODE_ENABLED)
9851 libxml_xmlUCSIsCatPi(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9852 PyObject *py_retval;
9856 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPi", &code))
9859 c_retval = xmlUCSIsCatPi(code);
9860 py_retval = libxml_intWrap((int) c_retval);
9864 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9865 #if defined(LIBXML_UNICODE_ENABLED)
9867 libxml_xmlUCSIsCatPo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9868 PyObject *py_retval;
9872 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPo", &code))
9875 c_retval = xmlUCSIsCatPo(code);
9876 py_retval = libxml_intWrap((int) c_retval);
9880 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9881 #if defined(LIBXML_UNICODE_ENABLED)
9883 libxml_xmlUCSIsCatPs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9884 PyObject *py_retval;
9888 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPs", &code))
9891 c_retval = xmlUCSIsCatPs(code);
9892 py_retval = libxml_intWrap((int) c_retval);
9896 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9897 #if defined(LIBXML_UNICODE_ENABLED)
9899 libxml_xmlUCSIsCatS(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9900 PyObject *py_retval;
9904 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatS", &code))
9907 c_retval = xmlUCSIsCatS(code);
9908 py_retval = libxml_intWrap((int) c_retval);
9912 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9913 #if defined(LIBXML_UNICODE_ENABLED)
9915 libxml_xmlUCSIsCatSc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9916 PyObject *py_retval;
9920 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatSc", &code))
9923 c_retval = xmlUCSIsCatSc(code);
9924 py_retval = libxml_intWrap((int) c_retval);
9928 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9929 #if defined(LIBXML_UNICODE_ENABLED)
9931 libxml_xmlUCSIsCatSk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9932 PyObject *py_retval;
9936 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatSk", &code))
9939 c_retval = xmlUCSIsCatSk(code);
9940 py_retval = libxml_intWrap((int) c_retval);
9944 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9945 #if defined(LIBXML_UNICODE_ENABLED)
9947 libxml_xmlUCSIsCatSm(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9948 PyObject *py_retval;
9952 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatSm", &code))
9955 c_retval = xmlUCSIsCatSm(code);
9956 py_retval = libxml_intWrap((int) c_retval);
9960 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9961 #if defined(LIBXML_UNICODE_ENABLED)
9963 libxml_xmlUCSIsCatSo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9964 PyObject *py_retval;
9968 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatSo", &code))
9971 c_retval = xmlUCSIsCatSo(code);
9972 py_retval = libxml_intWrap((int) c_retval);
9976 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9977 #if defined(LIBXML_UNICODE_ENABLED)
9979 libxml_xmlUCSIsCatZ(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9980 PyObject *py_retval;
9984 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatZ", &code))
9987 c_retval = xmlUCSIsCatZ(code);
9988 py_retval = libxml_intWrap((int) c_retval);
9992 #endif /* defined(LIBXML_UNICODE_ENABLED) */
9993 #if defined(LIBXML_UNICODE_ENABLED)
9995 libxml_xmlUCSIsCatZl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
9996 PyObject *py_retval;
10000 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatZl", &code))
10003 c_retval = xmlUCSIsCatZl(code);
10004 py_retval = libxml_intWrap((int) c_retval);
10008 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10009 #if defined(LIBXML_UNICODE_ENABLED)
10011 libxml_xmlUCSIsCatZp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10012 PyObject *py_retval;
10016 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatZp", &code))
10019 c_retval = xmlUCSIsCatZp(code);
10020 py_retval = libxml_intWrap((int) c_retval);
10024 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10025 #if defined(LIBXML_UNICODE_ENABLED)
10027 libxml_xmlUCSIsCatZs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10028 PyObject *py_retval;
10032 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatZs", &code))
10035 c_retval = xmlUCSIsCatZs(code);
10036 py_retval = libxml_intWrap((int) c_retval);
10040 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10041 #if defined(LIBXML_UNICODE_ENABLED)
10043 libxml_xmlUCSIsCherokee(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10044 PyObject *py_retval;
10048 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCherokee", &code))
10051 c_retval = xmlUCSIsCherokee(code);
10052 py_retval = libxml_intWrap((int) c_retval);
10056 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10057 #if defined(LIBXML_UNICODE_ENABLED)
10059 libxml_xmlUCSIsCombiningDiacriticalMarks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10060 PyObject *py_retval;
10064 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCombiningDiacriticalMarks", &code))
10067 c_retval = xmlUCSIsCombiningDiacriticalMarks(code);
10068 py_retval = libxml_intWrap((int) c_retval);
10072 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10073 #if defined(LIBXML_UNICODE_ENABLED)
10075 libxml_xmlUCSIsCombiningDiacriticalMarksforSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10076 PyObject *py_retval;
10080 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCombiningDiacriticalMarksforSymbols", &code))
10083 c_retval = xmlUCSIsCombiningDiacriticalMarksforSymbols(code);
10084 py_retval = libxml_intWrap((int) c_retval);
10088 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10089 #if defined(LIBXML_UNICODE_ENABLED)
10091 libxml_xmlUCSIsCombiningHalfMarks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10092 PyObject *py_retval;
10096 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCombiningHalfMarks", &code))
10099 c_retval = xmlUCSIsCombiningHalfMarks(code);
10100 py_retval = libxml_intWrap((int) c_retval);
10104 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10105 #if defined(LIBXML_UNICODE_ENABLED)
10107 libxml_xmlUCSIsCombiningMarksforSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10108 PyObject *py_retval;
10112 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCombiningMarksforSymbols", &code))
10115 c_retval = xmlUCSIsCombiningMarksforSymbols(code);
10116 py_retval = libxml_intWrap((int) c_retval);
10120 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10121 #if defined(LIBXML_UNICODE_ENABLED)
10123 libxml_xmlUCSIsControlPictures(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10124 PyObject *py_retval;
10128 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsControlPictures", &code))
10131 c_retval = xmlUCSIsControlPictures(code);
10132 py_retval = libxml_intWrap((int) c_retval);
10136 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10137 #if defined(LIBXML_UNICODE_ENABLED)
10139 libxml_xmlUCSIsCurrencySymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10140 PyObject *py_retval;
10144 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCurrencySymbols", &code))
10147 c_retval = xmlUCSIsCurrencySymbols(code);
10148 py_retval = libxml_intWrap((int) c_retval);
10152 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10153 #if defined(LIBXML_UNICODE_ENABLED)
10155 libxml_xmlUCSIsCypriotSyllabary(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10156 PyObject *py_retval;
10160 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCypriotSyllabary", &code))
10163 c_retval = xmlUCSIsCypriotSyllabary(code);
10164 py_retval = libxml_intWrap((int) c_retval);
10168 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10169 #if defined(LIBXML_UNICODE_ENABLED)
10171 libxml_xmlUCSIsCyrillic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10172 PyObject *py_retval;
10176 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCyrillic", &code))
10179 c_retval = xmlUCSIsCyrillic(code);
10180 py_retval = libxml_intWrap((int) c_retval);
10184 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10185 #if defined(LIBXML_UNICODE_ENABLED)
10187 libxml_xmlUCSIsCyrillicSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10188 PyObject *py_retval;
10192 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCyrillicSupplement", &code))
10195 c_retval = xmlUCSIsCyrillicSupplement(code);
10196 py_retval = libxml_intWrap((int) c_retval);
10200 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10201 #if defined(LIBXML_UNICODE_ENABLED)
10203 libxml_xmlUCSIsDeseret(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10204 PyObject *py_retval;
10208 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsDeseret", &code))
10211 c_retval = xmlUCSIsDeseret(code);
10212 py_retval = libxml_intWrap((int) c_retval);
10216 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10217 #if defined(LIBXML_UNICODE_ENABLED)
10219 libxml_xmlUCSIsDevanagari(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10220 PyObject *py_retval;
10224 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsDevanagari", &code))
10227 c_retval = xmlUCSIsDevanagari(code);
10228 py_retval = libxml_intWrap((int) c_retval);
10232 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10233 #if defined(LIBXML_UNICODE_ENABLED)
10235 libxml_xmlUCSIsDingbats(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10236 PyObject *py_retval;
10240 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsDingbats", &code))
10243 c_retval = xmlUCSIsDingbats(code);
10244 py_retval = libxml_intWrap((int) c_retval);
10248 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10249 #if defined(LIBXML_UNICODE_ENABLED)
10251 libxml_xmlUCSIsEnclosedAlphanumerics(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10252 PyObject *py_retval;
10256 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsEnclosedAlphanumerics", &code))
10259 c_retval = xmlUCSIsEnclosedAlphanumerics(code);
10260 py_retval = libxml_intWrap((int) c_retval);
10264 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10265 #if defined(LIBXML_UNICODE_ENABLED)
10267 libxml_xmlUCSIsEnclosedCJKLettersandMonths(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10268 PyObject *py_retval;
10272 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsEnclosedCJKLettersandMonths", &code))
10275 c_retval = xmlUCSIsEnclosedCJKLettersandMonths(code);
10276 py_retval = libxml_intWrap((int) c_retval);
10280 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10281 #if defined(LIBXML_UNICODE_ENABLED)
10283 libxml_xmlUCSIsEthiopic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10284 PyObject *py_retval;
10288 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsEthiopic", &code))
10291 c_retval = xmlUCSIsEthiopic(code);
10292 py_retval = libxml_intWrap((int) c_retval);
10296 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10297 #if defined(LIBXML_UNICODE_ENABLED)
10299 libxml_xmlUCSIsGeneralPunctuation(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10300 PyObject *py_retval;
10304 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGeneralPunctuation", &code))
10307 c_retval = xmlUCSIsGeneralPunctuation(code);
10308 py_retval = libxml_intWrap((int) c_retval);
10312 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10313 #if defined(LIBXML_UNICODE_ENABLED)
10315 libxml_xmlUCSIsGeometricShapes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10316 PyObject *py_retval;
10320 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGeometricShapes", &code))
10323 c_retval = xmlUCSIsGeometricShapes(code);
10324 py_retval = libxml_intWrap((int) c_retval);
10328 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10329 #if defined(LIBXML_UNICODE_ENABLED)
10331 libxml_xmlUCSIsGeorgian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10332 PyObject *py_retval;
10336 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGeorgian", &code))
10339 c_retval = xmlUCSIsGeorgian(code);
10340 py_retval = libxml_intWrap((int) c_retval);
10344 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10345 #if defined(LIBXML_UNICODE_ENABLED)
10347 libxml_xmlUCSIsGothic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10348 PyObject *py_retval;
10352 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGothic", &code))
10355 c_retval = xmlUCSIsGothic(code);
10356 py_retval = libxml_intWrap((int) c_retval);
10360 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10361 #if defined(LIBXML_UNICODE_ENABLED)
10363 libxml_xmlUCSIsGreek(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10364 PyObject *py_retval;
10368 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGreek", &code))
10371 c_retval = xmlUCSIsGreek(code);
10372 py_retval = libxml_intWrap((int) c_retval);
10376 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10377 #if defined(LIBXML_UNICODE_ENABLED)
10379 libxml_xmlUCSIsGreekExtended(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10380 PyObject *py_retval;
10384 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGreekExtended", &code))
10387 c_retval = xmlUCSIsGreekExtended(code);
10388 py_retval = libxml_intWrap((int) c_retval);
10392 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10393 #if defined(LIBXML_UNICODE_ENABLED)
10395 libxml_xmlUCSIsGreekandCoptic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10396 PyObject *py_retval;
10400 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGreekandCoptic", &code))
10403 c_retval = xmlUCSIsGreekandCoptic(code);
10404 py_retval = libxml_intWrap((int) c_retval);
10408 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10409 #if defined(LIBXML_UNICODE_ENABLED)
10411 libxml_xmlUCSIsGujarati(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10412 PyObject *py_retval;
10416 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGujarati", &code))
10419 c_retval = xmlUCSIsGujarati(code);
10420 py_retval = libxml_intWrap((int) c_retval);
10424 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10425 #if defined(LIBXML_UNICODE_ENABLED)
10427 libxml_xmlUCSIsGurmukhi(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10428 PyObject *py_retval;
10432 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGurmukhi", &code))
10435 c_retval = xmlUCSIsGurmukhi(code);
10436 py_retval = libxml_intWrap((int) c_retval);
10440 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10441 #if defined(LIBXML_UNICODE_ENABLED)
10443 libxml_xmlUCSIsHalfwidthandFullwidthForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10444 PyObject *py_retval;
10448 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHalfwidthandFullwidthForms", &code))
10451 c_retval = xmlUCSIsHalfwidthandFullwidthForms(code);
10452 py_retval = libxml_intWrap((int) c_retval);
10456 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10457 #if defined(LIBXML_UNICODE_ENABLED)
10459 libxml_xmlUCSIsHangulCompatibilityJamo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10460 PyObject *py_retval;
10464 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHangulCompatibilityJamo", &code))
10467 c_retval = xmlUCSIsHangulCompatibilityJamo(code);
10468 py_retval = libxml_intWrap((int) c_retval);
10472 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10473 #if defined(LIBXML_UNICODE_ENABLED)
10475 libxml_xmlUCSIsHangulJamo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10476 PyObject *py_retval;
10480 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHangulJamo", &code))
10483 c_retval = xmlUCSIsHangulJamo(code);
10484 py_retval = libxml_intWrap((int) c_retval);
10488 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10489 #if defined(LIBXML_UNICODE_ENABLED)
10491 libxml_xmlUCSIsHangulSyllables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10492 PyObject *py_retval;
10496 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHangulSyllables", &code))
10499 c_retval = xmlUCSIsHangulSyllables(code);
10500 py_retval = libxml_intWrap((int) c_retval);
10504 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10505 #if defined(LIBXML_UNICODE_ENABLED)
10507 libxml_xmlUCSIsHanunoo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10508 PyObject *py_retval;
10512 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHanunoo", &code))
10515 c_retval = xmlUCSIsHanunoo(code);
10516 py_retval = libxml_intWrap((int) c_retval);
10520 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10521 #if defined(LIBXML_UNICODE_ENABLED)
10523 libxml_xmlUCSIsHebrew(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10524 PyObject *py_retval;
10528 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHebrew", &code))
10531 c_retval = xmlUCSIsHebrew(code);
10532 py_retval = libxml_intWrap((int) c_retval);
10536 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10537 #if defined(LIBXML_UNICODE_ENABLED)
10539 libxml_xmlUCSIsHighPrivateUseSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10540 PyObject *py_retval;
10544 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHighPrivateUseSurrogates", &code))
10547 c_retval = xmlUCSIsHighPrivateUseSurrogates(code);
10548 py_retval = libxml_intWrap((int) c_retval);
10552 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10553 #if defined(LIBXML_UNICODE_ENABLED)
10555 libxml_xmlUCSIsHighSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10556 PyObject *py_retval;
10560 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHighSurrogates", &code))
10563 c_retval = xmlUCSIsHighSurrogates(code);
10564 py_retval = libxml_intWrap((int) c_retval);
10568 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10569 #if defined(LIBXML_UNICODE_ENABLED)
10571 libxml_xmlUCSIsHiragana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10572 PyObject *py_retval;
10576 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHiragana", &code))
10579 c_retval = xmlUCSIsHiragana(code);
10580 py_retval = libxml_intWrap((int) c_retval);
10584 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10585 #if defined(LIBXML_UNICODE_ENABLED)
10587 libxml_xmlUCSIsIPAExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10588 PyObject *py_retval;
10592 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsIPAExtensions", &code))
10595 c_retval = xmlUCSIsIPAExtensions(code);
10596 py_retval = libxml_intWrap((int) c_retval);
10600 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10601 #if defined(LIBXML_UNICODE_ENABLED)
10603 libxml_xmlUCSIsIdeographicDescriptionCharacters(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10604 PyObject *py_retval;
10608 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsIdeographicDescriptionCharacters", &code))
10611 c_retval = xmlUCSIsIdeographicDescriptionCharacters(code);
10612 py_retval = libxml_intWrap((int) c_retval);
10616 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10617 #if defined(LIBXML_UNICODE_ENABLED)
10619 libxml_xmlUCSIsKanbun(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10620 PyObject *py_retval;
10624 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKanbun", &code))
10627 c_retval = xmlUCSIsKanbun(code);
10628 py_retval = libxml_intWrap((int) c_retval);
10632 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10633 #if defined(LIBXML_UNICODE_ENABLED)
10635 libxml_xmlUCSIsKangxiRadicals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10636 PyObject *py_retval;
10640 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKangxiRadicals", &code))
10643 c_retval = xmlUCSIsKangxiRadicals(code);
10644 py_retval = libxml_intWrap((int) c_retval);
10648 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10649 #if defined(LIBXML_UNICODE_ENABLED)
10651 libxml_xmlUCSIsKannada(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10652 PyObject *py_retval;
10656 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKannada", &code))
10659 c_retval = xmlUCSIsKannada(code);
10660 py_retval = libxml_intWrap((int) c_retval);
10664 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10665 #if defined(LIBXML_UNICODE_ENABLED)
10667 libxml_xmlUCSIsKatakana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10668 PyObject *py_retval;
10672 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKatakana", &code))
10675 c_retval = xmlUCSIsKatakana(code);
10676 py_retval = libxml_intWrap((int) c_retval);
10680 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10681 #if defined(LIBXML_UNICODE_ENABLED)
10683 libxml_xmlUCSIsKatakanaPhoneticExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10684 PyObject *py_retval;
10688 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKatakanaPhoneticExtensions", &code))
10691 c_retval = xmlUCSIsKatakanaPhoneticExtensions(code);
10692 py_retval = libxml_intWrap((int) c_retval);
10696 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10697 #if defined(LIBXML_UNICODE_ENABLED)
10699 libxml_xmlUCSIsKhmer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10700 PyObject *py_retval;
10704 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKhmer", &code))
10707 c_retval = xmlUCSIsKhmer(code);
10708 py_retval = libxml_intWrap((int) c_retval);
10712 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10713 #if defined(LIBXML_UNICODE_ENABLED)
10715 libxml_xmlUCSIsKhmerSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10716 PyObject *py_retval;
10720 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKhmerSymbols", &code))
10723 c_retval = xmlUCSIsKhmerSymbols(code);
10724 py_retval = libxml_intWrap((int) c_retval);
10728 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10729 #if defined(LIBXML_UNICODE_ENABLED)
10731 libxml_xmlUCSIsLao(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10732 PyObject *py_retval;
10736 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLao", &code))
10739 c_retval = xmlUCSIsLao(code);
10740 py_retval = libxml_intWrap((int) c_retval);
10744 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10745 #if defined(LIBXML_UNICODE_ENABLED)
10747 libxml_xmlUCSIsLatin1Supplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10748 PyObject *py_retval;
10752 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLatin1Supplement", &code))
10755 c_retval = xmlUCSIsLatin1Supplement(code);
10756 py_retval = libxml_intWrap((int) c_retval);
10760 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10761 #if defined(LIBXML_UNICODE_ENABLED)
10763 libxml_xmlUCSIsLatinExtendedA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10764 PyObject *py_retval;
10768 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLatinExtendedA", &code))
10771 c_retval = xmlUCSIsLatinExtendedA(code);
10772 py_retval = libxml_intWrap((int) c_retval);
10776 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10777 #if defined(LIBXML_UNICODE_ENABLED)
10779 libxml_xmlUCSIsLatinExtendedAdditional(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10780 PyObject *py_retval;
10784 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLatinExtendedAdditional", &code))
10787 c_retval = xmlUCSIsLatinExtendedAdditional(code);
10788 py_retval = libxml_intWrap((int) c_retval);
10792 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10793 #if defined(LIBXML_UNICODE_ENABLED)
10795 libxml_xmlUCSIsLatinExtendedB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10796 PyObject *py_retval;
10800 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLatinExtendedB", &code))
10803 c_retval = xmlUCSIsLatinExtendedB(code);
10804 py_retval = libxml_intWrap((int) c_retval);
10808 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10809 #if defined(LIBXML_UNICODE_ENABLED)
10811 libxml_xmlUCSIsLetterlikeSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10812 PyObject *py_retval;
10816 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLetterlikeSymbols", &code))
10819 c_retval = xmlUCSIsLetterlikeSymbols(code);
10820 py_retval = libxml_intWrap((int) c_retval);
10824 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10825 #if defined(LIBXML_UNICODE_ENABLED)
10827 libxml_xmlUCSIsLimbu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10828 PyObject *py_retval;
10832 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLimbu", &code))
10835 c_retval = xmlUCSIsLimbu(code);
10836 py_retval = libxml_intWrap((int) c_retval);
10840 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10841 #if defined(LIBXML_UNICODE_ENABLED)
10843 libxml_xmlUCSIsLinearBIdeograms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10844 PyObject *py_retval;
10848 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLinearBIdeograms", &code))
10851 c_retval = xmlUCSIsLinearBIdeograms(code);
10852 py_retval = libxml_intWrap((int) c_retval);
10856 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10857 #if defined(LIBXML_UNICODE_ENABLED)
10859 libxml_xmlUCSIsLinearBSyllabary(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10860 PyObject *py_retval;
10864 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLinearBSyllabary", &code))
10867 c_retval = xmlUCSIsLinearBSyllabary(code);
10868 py_retval = libxml_intWrap((int) c_retval);
10872 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10873 #if defined(LIBXML_UNICODE_ENABLED)
10875 libxml_xmlUCSIsLowSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10876 PyObject *py_retval;
10880 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLowSurrogates", &code))
10883 c_retval = xmlUCSIsLowSurrogates(code);
10884 py_retval = libxml_intWrap((int) c_retval);
10888 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10889 #if defined(LIBXML_UNICODE_ENABLED)
10891 libxml_xmlUCSIsMalayalam(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10892 PyObject *py_retval;
10896 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMalayalam", &code))
10899 c_retval = xmlUCSIsMalayalam(code);
10900 py_retval = libxml_intWrap((int) c_retval);
10904 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10905 #if defined(LIBXML_UNICODE_ENABLED)
10907 libxml_xmlUCSIsMathematicalAlphanumericSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10908 PyObject *py_retval;
10912 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMathematicalAlphanumericSymbols", &code))
10915 c_retval = xmlUCSIsMathematicalAlphanumericSymbols(code);
10916 py_retval = libxml_intWrap((int) c_retval);
10920 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10921 #if defined(LIBXML_UNICODE_ENABLED)
10923 libxml_xmlUCSIsMathematicalOperators(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10924 PyObject *py_retval;
10928 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMathematicalOperators", &code))
10931 c_retval = xmlUCSIsMathematicalOperators(code);
10932 py_retval = libxml_intWrap((int) c_retval);
10936 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10937 #if defined(LIBXML_UNICODE_ENABLED)
10939 libxml_xmlUCSIsMiscellaneousMathematicalSymbolsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10940 PyObject *py_retval;
10944 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousMathematicalSymbolsA", &code))
10947 c_retval = xmlUCSIsMiscellaneousMathematicalSymbolsA(code);
10948 py_retval = libxml_intWrap((int) c_retval);
10952 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10953 #if defined(LIBXML_UNICODE_ENABLED)
10955 libxml_xmlUCSIsMiscellaneousMathematicalSymbolsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10956 PyObject *py_retval;
10960 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousMathematicalSymbolsB", &code))
10963 c_retval = xmlUCSIsMiscellaneousMathematicalSymbolsB(code);
10964 py_retval = libxml_intWrap((int) c_retval);
10968 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10969 #if defined(LIBXML_UNICODE_ENABLED)
10971 libxml_xmlUCSIsMiscellaneousSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10972 PyObject *py_retval;
10976 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousSymbols", &code))
10979 c_retval = xmlUCSIsMiscellaneousSymbols(code);
10980 py_retval = libxml_intWrap((int) c_retval);
10984 #endif /* defined(LIBXML_UNICODE_ENABLED) */
10985 #if defined(LIBXML_UNICODE_ENABLED)
10987 libxml_xmlUCSIsMiscellaneousSymbolsandArrows(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
10988 PyObject *py_retval;
10992 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousSymbolsandArrows", &code))
10995 c_retval = xmlUCSIsMiscellaneousSymbolsandArrows(code);
10996 py_retval = libxml_intWrap((int) c_retval);
11000 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11001 #if defined(LIBXML_UNICODE_ENABLED)
11003 libxml_xmlUCSIsMiscellaneousTechnical(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11004 PyObject *py_retval;
11008 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousTechnical", &code))
11011 c_retval = xmlUCSIsMiscellaneousTechnical(code);
11012 py_retval = libxml_intWrap((int) c_retval);
11016 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11017 #if defined(LIBXML_UNICODE_ENABLED)
11019 libxml_xmlUCSIsMongolian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11020 PyObject *py_retval;
11024 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMongolian", &code))
11027 c_retval = xmlUCSIsMongolian(code);
11028 py_retval = libxml_intWrap((int) c_retval);
11032 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11033 #if defined(LIBXML_UNICODE_ENABLED)
11035 libxml_xmlUCSIsMusicalSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11036 PyObject *py_retval;
11040 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMusicalSymbols", &code))
11043 c_retval = xmlUCSIsMusicalSymbols(code);
11044 py_retval = libxml_intWrap((int) c_retval);
11048 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11049 #if defined(LIBXML_UNICODE_ENABLED)
11051 libxml_xmlUCSIsMyanmar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11052 PyObject *py_retval;
11056 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMyanmar", &code))
11059 c_retval = xmlUCSIsMyanmar(code);
11060 py_retval = libxml_intWrap((int) c_retval);
11064 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11065 #if defined(LIBXML_UNICODE_ENABLED)
11067 libxml_xmlUCSIsNumberForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11068 PyObject *py_retval;
11072 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsNumberForms", &code))
11075 c_retval = xmlUCSIsNumberForms(code);
11076 py_retval = libxml_intWrap((int) c_retval);
11080 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11081 #if defined(LIBXML_UNICODE_ENABLED)
11083 libxml_xmlUCSIsOgham(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11084 PyObject *py_retval;
11088 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOgham", &code))
11091 c_retval = xmlUCSIsOgham(code);
11092 py_retval = libxml_intWrap((int) c_retval);
11096 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11097 #if defined(LIBXML_UNICODE_ENABLED)
11099 libxml_xmlUCSIsOldItalic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11100 PyObject *py_retval;
11104 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOldItalic", &code))
11107 c_retval = xmlUCSIsOldItalic(code);
11108 py_retval = libxml_intWrap((int) c_retval);
11112 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11113 #if defined(LIBXML_UNICODE_ENABLED)
11115 libxml_xmlUCSIsOpticalCharacterRecognition(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11116 PyObject *py_retval;
11120 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOpticalCharacterRecognition", &code))
11123 c_retval = xmlUCSIsOpticalCharacterRecognition(code);
11124 py_retval = libxml_intWrap((int) c_retval);
11128 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11129 #if defined(LIBXML_UNICODE_ENABLED)
11131 libxml_xmlUCSIsOriya(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11132 PyObject *py_retval;
11136 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOriya", &code))
11139 c_retval = xmlUCSIsOriya(code);
11140 py_retval = libxml_intWrap((int) c_retval);
11144 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11145 #if defined(LIBXML_UNICODE_ENABLED)
11147 libxml_xmlUCSIsOsmanya(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11148 PyObject *py_retval;
11152 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOsmanya", &code))
11155 c_retval = xmlUCSIsOsmanya(code);
11156 py_retval = libxml_intWrap((int) c_retval);
11160 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11161 #if defined(LIBXML_UNICODE_ENABLED)
11163 libxml_xmlUCSIsPhoneticExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11164 PyObject *py_retval;
11168 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsPhoneticExtensions", &code))
11171 c_retval = xmlUCSIsPhoneticExtensions(code);
11172 py_retval = libxml_intWrap((int) c_retval);
11176 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11177 #if defined(LIBXML_UNICODE_ENABLED)
11179 libxml_xmlUCSIsPrivateUse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11180 PyObject *py_retval;
11184 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsPrivateUse", &code))
11187 c_retval = xmlUCSIsPrivateUse(code);
11188 py_retval = libxml_intWrap((int) c_retval);
11192 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11193 #if defined(LIBXML_UNICODE_ENABLED)
11195 libxml_xmlUCSIsPrivateUseArea(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11196 PyObject *py_retval;
11200 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsPrivateUseArea", &code))
11203 c_retval = xmlUCSIsPrivateUseArea(code);
11204 py_retval = libxml_intWrap((int) c_retval);
11208 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11209 #if defined(LIBXML_UNICODE_ENABLED)
11211 libxml_xmlUCSIsRunic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11212 PyObject *py_retval;
11216 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsRunic", &code))
11219 c_retval = xmlUCSIsRunic(code);
11220 py_retval = libxml_intWrap((int) c_retval);
11224 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11225 #if defined(LIBXML_UNICODE_ENABLED)
11227 libxml_xmlUCSIsShavian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11228 PyObject *py_retval;
11232 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsShavian", &code))
11235 c_retval = xmlUCSIsShavian(code);
11236 py_retval = libxml_intWrap((int) c_retval);
11240 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11241 #if defined(LIBXML_UNICODE_ENABLED)
11243 libxml_xmlUCSIsSinhala(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11244 PyObject *py_retval;
11248 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSinhala", &code))
11251 c_retval = xmlUCSIsSinhala(code);
11252 py_retval = libxml_intWrap((int) c_retval);
11256 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11257 #if defined(LIBXML_UNICODE_ENABLED)
11259 libxml_xmlUCSIsSmallFormVariants(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11260 PyObject *py_retval;
11264 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSmallFormVariants", &code))
11267 c_retval = xmlUCSIsSmallFormVariants(code);
11268 py_retval = libxml_intWrap((int) c_retval);
11272 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11273 #if defined(LIBXML_UNICODE_ENABLED)
11275 libxml_xmlUCSIsSpacingModifierLetters(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11276 PyObject *py_retval;
11280 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSpacingModifierLetters", &code))
11283 c_retval = xmlUCSIsSpacingModifierLetters(code);
11284 py_retval = libxml_intWrap((int) c_retval);
11288 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11289 #if defined(LIBXML_UNICODE_ENABLED)
11291 libxml_xmlUCSIsSpecials(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11292 PyObject *py_retval;
11296 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSpecials", &code))
11299 c_retval = xmlUCSIsSpecials(code);
11300 py_retval = libxml_intWrap((int) c_retval);
11304 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11305 #if defined(LIBXML_UNICODE_ENABLED)
11307 libxml_xmlUCSIsSuperscriptsandSubscripts(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11308 PyObject *py_retval;
11312 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSuperscriptsandSubscripts", &code))
11315 c_retval = xmlUCSIsSuperscriptsandSubscripts(code);
11316 py_retval = libxml_intWrap((int) c_retval);
11320 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11321 #if defined(LIBXML_UNICODE_ENABLED)
11323 libxml_xmlUCSIsSupplementalArrowsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11324 PyObject *py_retval;
11328 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementalArrowsA", &code))
11331 c_retval = xmlUCSIsSupplementalArrowsA(code);
11332 py_retval = libxml_intWrap((int) c_retval);
11336 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11337 #if defined(LIBXML_UNICODE_ENABLED)
11339 libxml_xmlUCSIsSupplementalArrowsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11340 PyObject *py_retval;
11344 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementalArrowsB", &code))
11347 c_retval = xmlUCSIsSupplementalArrowsB(code);
11348 py_retval = libxml_intWrap((int) c_retval);
11352 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11353 #if defined(LIBXML_UNICODE_ENABLED)
11355 libxml_xmlUCSIsSupplementalMathematicalOperators(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11356 PyObject *py_retval;
11360 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementalMathematicalOperators", &code))
11363 c_retval = xmlUCSIsSupplementalMathematicalOperators(code);
11364 py_retval = libxml_intWrap((int) c_retval);
11368 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11369 #if defined(LIBXML_UNICODE_ENABLED)
11371 libxml_xmlUCSIsSupplementaryPrivateUseAreaA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11372 PyObject *py_retval;
11376 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementaryPrivateUseAreaA", &code))
11379 c_retval = xmlUCSIsSupplementaryPrivateUseAreaA(code);
11380 py_retval = libxml_intWrap((int) c_retval);
11384 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11385 #if defined(LIBXML_UNICODE_ENABLED)
11387 libxml_xmlUCSIsSupplementaryPrivateUseAreaB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11388 PyObject *py_retval;
11392 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementaryPrivateUseAreaB", &code))
11395 c_retval = xmlUCSIsSupplementaryPrivateUseAreaB(code);
11396 py_retval = libxml_intWrap((int) c_retval);
11400 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11401 #if defined(LIBXML_UNICODE_ENABLED)
11403 libxml_xmlUCSIsSyriac(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11404 PyObject *py_retval;
11408 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSyriac", &code))
11411 c_retval = xmlUCSIsSyriac(code);
11412 py_retval = libxml_intWrap((int) c_retval);
11416 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11417 #if defined(LIBXML_UNICODE_ENABLED)
11419 libxml_xmlUCSIsTagalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11420 PyObject *py_retval;
11424 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTagalog", &code))
11427 c_retval = xmlUCSIsTagalog(code);
11428 py_retval = libxml_intWrap((int) c_retval);
11432 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11433 #if defined(LIBXML_UNICODE_ENABLED)
11435 libxml_xmlUCSIsTagbanwa(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11436 PyObject *py_retval;
11440 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTagbanwa", &code))
11443 c_retval = xmlUCSIsTagbanwa(code);
11444 py_retval = libxml_intWrap((int) c_retval);
11448 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11449 #if defined(LIBXML_UNICODE_ENABLED)
11451 libxml_xmlUCSIsTags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11452 PyObject *py_retval;
11456 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTags", &code))
11459 c_retval = xmlUCSIsTags(code);
11460 py_retval = libxml_intWrap((int) c_retval);
11464 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11465 #if defined(LIBXML_UNICODE_ENABLED)
11467 libxml_xmlUCSIsTaiLe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11468 PyObject *py_retval;
11472 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTaiLe", &code))
11475 c_retval = xmlUCSIsTaiLe(code);
11476 py_retval = libxml_intWrap((int) c_retval);
11480 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11481 #if defined(LIBXML_UNICODE_ENABLED)
11483 libxml_xmlUCSIsTaiXuanJingSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11484 PyObject *py_retval;
11488 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTaiXuanJingSymbols", &code))
11491 c_retval = xmlUCSIsTaiXuanJingSymbols(code);
11492 py_retval = libxml_intWrap((int) c_retval);
11496 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11497 #if defined(LIBXML_UNICODE_ENABLED)
11499 libxml_xmlUCSIsTamil(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11500 PyObject *py_retval;
11504 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTamil", &code))
11507 c_retval = xmlUCSIsTamil(code);
11508 py_retval = libxml_intWrap((int) c_retval);
11512 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11513 #if defined(LIBXML_UNICODE_ENABLED)
11515 libxml_xmlUCSIsTelugu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11516 PyObject *py_retval;
11520 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTelugu", &code))
11523 c_retval = xmlUCSIsTelugu(code);
11524 py_retval = libxml_intWrap((int) c_retval);
11528 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11529 #if defined(LIBXML_UNICODE_ENABLED)
11531 libxml_xmlUCSIsThaana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11532 PyObject *py_retval;
11536 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsThaana", &code))
11539 c_retval = xmlUCSIsThaana(code);
11540 py_retval = libxml_intWrap((int) c_retval);
11544 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11545 #if defined(LIBXML_UNICODE_ENABLED)
11547 libxml_xmlUCSIsThai(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11548 PyObject *py_retval;
11552 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsThai", &code))
11555 c_retval = xmlUCSIsThai(code);
11556 py_retval = libxml_intWrap((int) c_retval);
11560 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11561 #if defined(LIBXML_UNICODE_ENABLED)
11563 libxml_xmlUCSIsTibetan(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11564 PyObject *py_retval;
11568 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTibetan", &code))
11571 c_retval = xmlUCSIsTibetan(code);
11572 py_retval = libxml_intWrap((int) c_retval);
11576 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11577 #if defined(LIBXML_UNICODE_ENABLED)
11579 libxml_xmlUCSIsUgaritic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11580 PyObject *py_retval;
11584 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsUgaritic", &code))
11587 c_retval = xmlUCSIsUgaritic(code);
11588 py_retval = libxml_intWrap((int) c_retval);
11592 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11593 #if defined(LIBXML_UNICODE_ENABLED)
11595 libxml_xmlUCSIsUnifiedCanadianAboriginalSyllabics(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11596 PyObject *py_retval;
11600 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsUnifiedCanadianAboriginalSyllabics", &code))
11603 c_retval = xmlUCSIsUnifiedCanadianAboriginalSyllabics(code);
11604 py_retval = libxml_intWrap((int) c_retval);
11608 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11609 #if defined(LIBXML_UNICODE_ENABLED)
11611 libxml_xmlUCSIsVariationSelectors(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11612 PyObject *py_retval;
11616 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsVariationSelectors", &code))
11619 c_retval = xmlUCSIsVariationSelectors(code);
11620 py_retval = libxml_intWrap((int) c_retval);
11624 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11625 #if defined(LIBXML_UNICODE_ENABLED)
11627 libxml_xmlUCSIsVariationSelectorsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11628 PyObject *py_retval;
11632 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsVariationSelectorsSupplement", &code))
11635 c_retval = xmlUCSIsVariationSelectorsSupplement(code);
11636 py_retval = libxml_intWrap((int) c_retval);
11640 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11641 #if defined(LIBXML_UNICODE_ENABLED)
11643 libxml_xmlUCSIsYiRadicals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11644 PyObject *py_retval;
11648 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsYiRadicals", &code))
11651 c_retval = xmlUCSIsYiRadicals(code);
11652 py_retval = libxml_intWrap((int) c_retval);
11656 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11657 #if defined(LIBXML_UNICODE_ENABLED)
11659 libxml_xmlUCSIsYiSyllables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11660 PyObject *py_retval;
11664 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsYiSyllables", &code))
11667 c_retval = xmlUCSIsYiSyllables(code);
11668 py_retval = libxml_intWrap((int) c_retval);
11672 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11673 #if defined(LIBXML_UNICODE_ENABLED)
11675 libxml_xmlUCSIsYijingHexagramSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11676 PyObject *py_retval;
11680 if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsYijingHexagramSymbols", &code))
11683 c_retval = xmlUCSIsYijingHexagramSymbols(code);
11684 py_retval = libxml_intWrap((int) c_retval);
11688 #endif /* defined(LIBXML_UNICODE_ENABLED) */
11690 libxml_xmlURIEscape(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11691 PyObject *py_retval;
11692 xmlChar * c_retval;
11695 if (!PyArg_ParseTuple(args, (char *)"z:xmlURIEscape", &str))
11698 c_retval = xmlURIEscape(str);
11699 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
11704 libxml_xmlURIEscapeStr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11705 PyObject *py_retval;
11706 xmlChar * c_retval;
11710 if (!PyArg_ParseTuple(args, (char *)"zz:xmlURIEscapeStr", &str, &list))
11713 c_retval = xmlURIEscapeStr(str, list);
11714 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
11719 libxml_xmlURIGetAuthority(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11720 PyObject *py_retval;
11721 const char * c_retval;
11723 PyObject *pyobj_URI;
11725 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetAuthority", &pyobj_URI))
11727 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11729 c_retval = URI->authority;
11730 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
11735 libxml_xmlURIGetFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11736 PyObject *py_retval;
11737 const char * c_retval;
11739 PyObject *pyobj_URI;
11741 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetFragment", &pyobj_URI))
11743 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11745 c_retval = URI->fragment;
11746 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
11751 libxml_xmlURIGetOpaque(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11752 PyObject *py_retval;
11753 const char * c_retval;
11755 PyObject *pyobj_URI;
11757 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetOpaque", &pyobj_URI))
11759 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11761 c_retval = URI->opaque;
11762 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
11767 libxml_xmlURIGetPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11768 PyObject *py_retval;
11769 const char * c_retval;
11771 PyObject *pyobj_URI;
11773 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetPath", &pyobj_URI))
11775 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11777 c_retval = URI->path;
11778 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
11783 libxml_xmlURIGetPort(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11784 PyObject *py_retval;
11787 PyObject *pyobj_URI;
11789 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetPort", &pyobj_URI))
11791 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11793 c_retval = URI->port;
11794 py_retval = libxml_intWrap((int) c_retval);
11799 libxml_xmlURIGetQuery(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11800 PyObject *py_retval;
11801 const char * c_retval;
11803 PyObject *pyobj_URI;
11805 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetQuery", &pyobj_URI))
11807 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11809 c_retval = URI->query;
11810 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
11815 libxml_xmlURIGetQueryRaw(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11816 PyObject *py_retval;
11817 const char * c_retval;
11819 PyObject *pyobj_URI;
11821 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetQueryRaw", &pyobj_URI))
11823 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11825 c_retval = URI->query_raw;
11826 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
11831 libxml_xmlURIGetScheme(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11832 PyObject *py_retval;
11833 const char * c_retval;
11835 PyObject *pyobj_URI;
11837 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetScheme", &pyobj_URI))
11839 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11841 c_retval = URI->scheme;
11842 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
11847 libxml_xmlURIGetServer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11848 PyObject *py_retval;
11849 const char * c_retval;
11851 PyObject *pyobj_URI;
11853 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetServer", &pyobj_URI))
11855 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11857 c_retval = URI->server;
11858 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
11863 libxml_xmlURIGetUser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11864 PyObject *py_retval;
11865 const char * c_retval;
11867 PyObject *pyobj_URI;
11869 if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetUser", &pyobj_URI))
11871 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11873 c_retval = URI->user;
11874 py_retval = libxml_charPtrConstWrap((const char *) c_retval);
11879 libxml_xmlURISetAuthority(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11881 PyObject *pyobj_URI;
11884 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetAuthority", &pyobj_URI, &authority))
11886 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11888 if (URI->authority != NULL) xmlFree(URI->authority);
11889 URI->authority = (char *)xmlStrdup((const xmlChar *)authority);
11890 Py_INCREF(Py_None);
11895 libxml_xmlURISetFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11897 PyObject *pyobj_URI;
11900 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetFragment", &pyobj_URI, &fragment))
11902 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11904 if (URI->fragment != NULL) xmlFree(URI->fragment);
11905 URI->fragment = (char *)xmlStrdup((const xmlChar *)fragment);
11906 Py_INCREF(Py_None);
11911 libxml_xmlURISetOpaque(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11913 PyObject *pyobj_URI;
11916 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetOpaque", &pyobj_URI, &opaque))
11918 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11920 if (URI->opaque != NULL) xmlFree(URI->opaque);
11921 URI->opaque = (char *)xmlStrdup((const xmlChar *)opaque);
11922 Py_INCREF(Py_None);
11927 libxml_xmlURISetPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11929 PyObject *pyobj_URI;
11932 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetPath", &pyobj_URI, &path))
11934 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11936 if (URI->path != NULL) xmlFree(URI->path);
11937 URI->path = (char *)xmlStrdup((const xmlChar *)path);
11938 Py_INCREF(Py_None);
11943 libxml_xmlURISetPort(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11945 PyObject *pyobj_URI;
11948 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlURISetPort", &pyobj_URI, &port))
11950 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11953 Py_INCREF(Py_None);
11958 libxml_xmlURISetQuery(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11960 PyObject *pyobj_URI;
11963 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetQuery", &pyobj_URI, &query))
11965 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11967 if (URI->query != NULL) xmlFree(URI->query);
11968 URI->query = (char *)xmlStrdup((const xmlChar *)query);
11969 Py_INCREF(Py_None);
11974 libxml_xmlURISetQueryRaw(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11976 PyObject *pyobj_URI;
11979 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetQueryRaw", &pyobj_URI, &query_raw))
11981 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11983 if (URI->query_raw != NULL) xmlFree(URI->query_raw);
11984 URI->query_raw = (char *)xmlStrdup((const xmlChar *)query_raw);
11985 Py_INCREF(Py_None);
11990 libxml_xmlURISetScheme(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
11992 PyObject *pyobj_URI;
11995 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetScheme", &pyobj_URI, &scheme))
11997 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
11999 if (URI->scheme != NULL) xmlFree(URI->scheme);
12000 URI->scheme = (char *)xmlStrdup((const xmlChar *)scheme);
12001 Py_INCREF(Py_None);
12006 libxml_xmlURISetServer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12008 PyObject *pyobj_URI;
12011 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetServer", &pyobj_URI, &server))
12013 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
12015 if (URI->server != NULL) xmlFree(URI->server);
12016 URI->server = (char *)xmlStrdup((const xmlChar *)server);
12017 Py_INCREF(Py_None);
12022 libxml_xmlURISetUser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12024 PyObject *pyobj_URI;
12027 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetUser", &pyobj_URI, &user))
12029 URI = (xmlURIPtr) PyURI_Get(pyobj_URI);
12031 if (URI->user != NULL) xmlFree(URI->user);
12032 URI->user = (char *)xmlStrdup((const xmlChar *)user);
12033 Py_INCREF(Py_None);
12038 libxml_xmlURIUnescapeString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12039 PyObject *py_retval;
12045 if (!PyArg_ParseTuple(args, (char *)"ziz:xmlURIUnescapeString", &str, &len, &target))
12048 c_retval = xmlURIUnescapeString(str, len, target);
12049 py_retval = libxml_charPtrWrap((char *) c_retval);
12054 libxml_xmlUTF8Charcmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12055 PyObject *py_retval;
12060 if (!PyArg_ParseTuple(args, (char *)"zz:xmlUTF8Charcmp", &utf1, &utf2))
12063 c_retval = xmlUTF8Charcmp(utf1, utf2);
12064 py_retval = libxml_intWrap((int) c_retval);
12069 libxml_xmlUTF8Size(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12070 PyObject *py_retval;
12074 if (!PyArg_ParseTuple(args, (char *)"z:xmlUTF8Size", &utf))
12077 c_retval = xmlUTF8Size(utf);
12078 py_retval = libxml_intWrap((int) c_retval);
12083 libxml_xmlUTF8Strlen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12084 PyObject *py_retval;
12088 if (!PyArg_ParseTuple(args, (char *)"z:xmlUTF8Strlen", &utf))
12091 c_retval = xmlUTF8Strlen(utf);
12092 py_retval = libxml_intWrap((int) c_retval);
12097 libxml_xmlUTF8Strloc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12098 PyObject *py_retval;
12103 if (!PyArg_ParseTuple(args, (char *)"zz:xmlUTF8Strloc", &utf, &utfchar))
12106 c_retval = xmlUTF8Strloc(utf, utfchar);
12107 py_retval = libxml_intWrap((int) c_retval);
12112 libxml_xmlUTF8Strndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12113 PyObject *py_retval;
12114 xmlChar * c_retval;
12118 if (!PyArg_ParseTuple(args, (char *)"zi:xmlUTF8Strndup", &utf, &len))
12121 c_retval = xmlUTF8Strndup(utf, len);
12122 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
12127 libxml_xmlUTF8Strpos(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12128 PyObject *py_retval;
12129 const xmlChar * c_retval;
12133 if (!PyArg_ParseTuple(args, (char *)"zi:xmlUTF8Strpos", &utf, &pos))
12136 c_retval = xmlUTF8Strpos(utf, pos);
12137 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
12142 libxml_xmlUTF8Strsize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12143 PyObject *py_retval;
12148 if (!PyArg_ParseTuple(args, (char *)"zi:xmlUTF8Strsize", &utf, &len))
12151 c_retval = xmlUTF8Strsize(utf, len);
12152 py_retval = libxml_intWrap((int) c_retval);
12157 libxml_xmlUTF8Strsub(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12158 PyObject *py_retval;
12159 xmlChar * c_retval;
12164 if (!PyArg_ParseTuple(args, (char *)"zii:xmlUTF8Strsub", &utf, &start, &len))
12167 c_retval = xmlUTF8Strsub(utf, start, len);
12168 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
12173 libxml_xmlUnlinkNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12175 PyObject *pyobj_cur;
12177 if (!PyArg_ParseTuple(args, (char *)"O:xmlUnlinkNode", &pyobj_cur))
12179 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
12181 xmlUnlinkNode(cur);
12182 Py_INCREF(Py_None);
12186 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
12188 libxml_xmlUnsetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12189 PyObject *py_retval;
12192 PyObject *pyobj_node;
12194 PyObject *pyobj_ns;
12197 if (!PyArg_ParseTuple(args, (char *)"OOz:xmlUnsetNsProp", &pyobj_node, &pyobj_ns, &name))
12199 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
12200 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
12202 c_retval = xmlUnsetNsProp(node, ns, name);
12203 py_retval = libxml_intWrap((int) c_retval);
12207 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
12208 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
12210 libxml_xmlUnsetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12211 PyObject *py_retval;
12214 PyObject *pyobj_node;
12217 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlUnsetProp", &pyobj_node, &name))
12219 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
12221 c_retval = xmlUnsetProp(node, name);
12222 py_retval = libxml_intWrap((int) c_retval);
12226 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
12227 #if defined(LIBXML_VALID_ENABLED)
12229 libxml_xmlValidCtxtNormalizeAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12230 PyObject *py_retval;
12231 xmlChar * c_retval;
12232 xmlValidCtxtPtr ctxt;
12233 PyObject *pyobj_ctxt;
12235 PyObject *pyobj_doc;
12237 PyObject *pyobj_elem;
12241 if (!PyArg_ParseTuple(args, (char *)"OOOzz:xmlValidCtxtNormalizeAttributeValue", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &name, &value))
12243 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12244 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12245 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
12247 c_retval = xmlValidCtxtNormalizeAttributeValue(ctxt, doc, elem, name, value);
12248 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
12252 #endif /* defined(LIBXML_VALID_ENABLED) */
12253 #if defined(LIBXML_VALID_ENABLED)
12255 libxml_xmlValidNormalizeAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12256 PyObject *py_retval;
12257 xmlChar * c_retval;
12259 PyObject *pyobj_doc;
12261 PyObject *pyobj_elem;
12265 if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlValidNormalizeAttributeValue", &pyobj_doc, &pyobj_elem, &name, &value))
12267 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12268 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
12270 c_retval = xmlValidNormalizeAttributeValue(doc, elem, name, value);
12271 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
12275 #endif /* defined(LIBXML_VALID_ENABLED) */
12276 #if defined(LIBXML_VALID_ENABLED)
12278 libxml_xmlValidateDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12279 PyObject *py_retval;
12281 xmlValidCtxtPtr ctxt;
12282 PyObject *pyobj_ctxt;
12284 PyObject *pyobj_doc;
12286 if (!PyArg_ParseTuple(args, (char *)"OO:xmlValidateDocument", &pyobj_ctxt, &pyobj_doc))
12288 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12289 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12291 c_retval = xmlValidateDocument(ctxt, doc);
12292 py_retval = libxml_intWrap((int) c_retval);
12296 #endif /* defined(LIBXML_VALID_ENABLED) */
12297 #if defined(LIBXML_VALID_ENABLED)
12299 libxml_xmlValidateDocumentFinal(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12300 PyObject *py_retval;
12302 xmlValidCtxtPtr ctxt;
12303 PyObject *pyobj_ctxt;
12305 PyObject *pyobj_doc;
12307 if (!PyArg_ParseTuple(args, (char *)"OO:xmlValidateDocumentFinal", &pyobj_ctxt, &pyobj_doc))
12309 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12310 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12312 c_retval = xmlValidateDocumentFinal(ctxt, doc);
12313 py_retval = libxml_intWrap((int) c_retval);
12317 #endif /* defined(LIBXML_VALID_ENABLED) */
12318 #if defined(LIBXML_VALID_ENABLED)
12320 libxml_xmlValidateDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12321 PyObject *py_retval;
12323 xmlValidCtxtPtr ctxt;
12324 PyObject *pyobj_ctxt;
12326 PyObject *pyobj_doc;
12328 PyObject *pyobj_dtd;
12330 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlValidateDtd", &pyobj_ctxt, &pyobj_doc, &pyobj_dtd))
12332 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12333 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12334 dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd);
12336 c_retval = xmlValidateDtd(ctxt, doc, dtd);
12337 py_retval = libxml_intWrap((int) c_retval);
12341 #endif /* defined(LIBXML_VALID_ENABLED) */
12342 #if defined(LIBXML_VALID_ENABLED)
12344 libxml_xmlValidateDtdFinal(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12345 PyObject *py_retval;
12347 xmlValidCtxtPtr ctxt;
12348 PyObject *pyobj_ctxt;
12350 PyObject *pyobj_doc;
12352 if (!PyArg_ParseTuple(args, (char *)"OO:xmlValidateDtdFinal", &pyobj_ctxt, &pyobj_doc))
12354 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12355 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12357 c_retval = xmlValidateDtdFinal(ctxt, doc);
12358 py_retval = libxml_intWrap((int) c_retval);
12362 #endif /* defined(LIBXML_VALID_ENABLED) */
12363 #if defined(LIBXML_VALID_ENABLED)
12365 libxml_xmlValidateElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12366 PyObject *py_retval;
12368 xmlValidCtxtPtr ctxt;
12369 PyObject *pyobj_ctxt;
12371 PyObject *pyobj_doc;
12373 PyObject *pyobj_elem;
12375 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlValidateElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem))
12377 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12378 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12379 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
12381 c_retval = xmlValidateElement(ctxt, doc, elem);
12382 py_retval = libxml_intWrap((int) c_retval);
12386 #endif /* defined(LIBXML_VALID_ENABLED) */
12387 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_DEBUG_ENABLED) || defined (LIBXML_HTML_ENABLED) || defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) || defined(LIBXML_LEGACY_ENABLED)
12389 libxml_xmlValidateNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12390 PyObject *py_retval;
12395 if (!PyArg_ParseTuple(args, (char *)"zi:xmlValidateNCName", &value, &space))
12398 c_retval = xmlValidateNCName(value, space);
12399 py_retval = libxml_intWrap((int) c_retval);
12403 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_DEBUG_ENABLED) || defined (LIBXML_HTML_ENABLED) || defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) || defined(LIBXML_LEGACY_ENABLED) */
12404 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
12406 libxml_xmlValidateNMToken(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12407 PyObject *py_retval;
12412 if (!PyArg_ParseTuple(args, (char *)"zi:xmlValidateNMToken", &value, &space))
12415 c_retval = xmlValidateNMToken(value, space);
12416 py_retval = libxml_intWrap((int) c_retval);
12420 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
12421 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
12423 libxml_xmlValidateName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12424 PyObject *py_retval;
12429 if (!PyArg_ParseTuple(args, (char *)"zi:xmlValidateName", &value, &space))
12432 c_retval = xmlValidateName(value, space);
12433 py_retval = libxml_intWrap((int) c_retval);
12437 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
12438 #if defined(LIBXML_VALID_ENABLED)
12440 libxml_xmlValidateNameValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12441 PyObject *py_retval;
12445 if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNameValue", &value))
12448 c_retval = xmlValidateNameValue(value);
12449 py_retval = libxml_intWrap((int) c_retval);
12453 #endif /* defined(LIBXML_VALID_ENABLED) */
12454 #if defined(LIBXML_VALID_ENABLED)
12456 libxml_xmlValidateNamesValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12457 PyObject *py_retval;
12461 if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNamesValue", &value))
12464 c_retval = xmlValidateNamesValue(value);
12465 py_retval = libxml_intWrap((int) c_retval);
12469 #endif /* defined(LIBXML_VALID_ENABLED) */
12470 #if defined(LIBXML_VALID_ENABLED)
12472 libxml_xmlValidateNmtokenValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12473 PyObject *py_retval;
12477 if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNmtokenValue", &value))
12480 c_retval = xmlValidateNmtokenValue(value);
12481 py_retval = libxml_intWrap((int) c_retval);
12485 #endif /* defined(LIBXML_VALID_ENABLED) */
12486 #if defined(LIBXML_VALID_ENABLED)
12488 libxml_xmlValidateNmtokensValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12489 PyObject *py_retval;
12493 if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNmtokensValue", &value))
12496 c_retval = xmlValidateNmtokensValue(value);
12497 py_retval = libxml_intWrap((int) c_retval);
12501 #endif /* defined(LIBXML_VALID_ENABLED) */
12502 #if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
12504 libxml_xmlValidateNotationUse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12505 PyObject *py_retval;
12507 xmlValidCtxtPtr ctxt;
12508 PyObject *pyobj_ctxt;
12510 PyObject *pyobj_doc;
12511 xmlChar * notationName;
12513 if (!PyArg_ParseTuple(args, (char *)"OOz:xmlValidateNotationUse", &pyobj_ctxt, &pyobj_doc, ¬ationName))
12515 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12516 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12518 c_retval = xmlValidateNotationUse(ctxt, doc, notationName);
12519 py_retval = libxml_intWrap((int) c_retval);
12523 #endif /* defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
12524 #if defined(LIBXML_VALID_ENABLED)
12526 libxml_xmlValidateOneAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12527 PyObject *py_retval;
12529 xmlValidCtxtPtr ctxt;
12530 PyObject *pyobj_ctxt;
12532 PyObject *pyobj_doc;
12534 PyObject *pyobj_elem;
12536 PyObject *pyobj_attr;
12539 if (!PyArg_ParseTuple(args, (char *)"OOOOz:xmlValidateOneAttribute", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &pyobj_attr, &value))
12541 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12542 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12543 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
12544 attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr);
12546 c_retval = xmlValidateOneAttribute(ctxt, doc, elem, attr, value);
12547 py_retval = libxml_intWrap((int) c_retval);
12551 #endif /* defined(LIBXML_VALID_ENABLED) */
12552 #if defined(LIBXML_VALID_ENABLED)
12554 libxml_xmlValidateOneElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12555 PyObject *py_retval;
12557 xmlValidCtxtPtr ctxt;
12558 PyObject *pyobj_ctxt;
12560 PyObject *pyobj_doc;
12562 PyObject *pyobj_elem;
12564 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlValidateOneElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem))
12566 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12567 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12568 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
12570 c_retval = xmlValidateOneElement(ctxt, doc, elem);
12571 py_retval = libxml_intWrap((int) c_retval);
12575 #endif /* defined(LIBXML_VALID_ENABLED) */
12576 #if defined(LIBXML_VALID_ENABLED)
12578 libxml_xmlValidateOneNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12579 PyObject *py_retval;
12581 xmlValidCtxtPtr ctxt;
12582 PyObject *pyobj_ctxt;
12584 PyObject *pyobj_doc;
12586 PyObject *pyobj_elem;
12589 PyObject *pyobj_ns;
12592 if (!PyArg_ParseTuple(args, (char *)"OOOzOz:xmlValidateOneNamespace", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &prefix, &pyobj_ns, &value))
12594 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12595 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12596 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
12597 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
12599 c_retval = xmlValidateOneNamespace(ctxt, doc, elem, prefix, ns, value);
12600 py_retval = libxml_intWrap((int) c_retval);
12604 #endif /* defined(LIBXML_VALID_ENABLED) */
12605 #if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED)
12607 libxml_xmlValidatePopElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12608 PyObject *py_retval;
12610 xmlValidCtxtPtr ctxt;
12611 PyObject *pyobj_ctxt;
12613 PyObject *pyobj_doc;
12615 PyObject *pyobj_elem;
12618 if (!PyArg_ParseTuple(args, (char *)"OOOz:xmlValidatePopElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &qname))
12620 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12621 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12622 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
12624 c_retval = xmlValidatePopElement(ctxt, doc, elem, qname);
12625 py_retval = libxml_intWrap((int) c_retval);
12629 #endif /* defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) */
12630 #if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED)
12632 libxml_xmlValidatePushCData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12633 PyObject *py_retval;
12635 xmlValidCtxtPtr ctxt;
12636 PyObject *pyobj_ctxt;
12640 if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlValidatePushCData", &pyobj_ctxt, &data, &len))
12642 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12644 c_retval = xmlValidatePushCData(ctxt, data, len);
12645 py_retval = libxml_intWrap((int) c_retval);
12649 #endif /* defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) */
12650 #if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED)
12652 libxml_xmlValidatePushElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12653 PyObject *py_retval;
12655 xmlValidCtxtPtr ctxt;
12656 PyObject *pyobj_ctxt;
12658 PyObject *pyobj_doc;
12660 PyObject *pyobj_elem;
12663 if (!PyArg_ParseTuple(args, (char *)"OOOz:xmlValidatePushElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &qname))
12665 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12666 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12667 elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem);
12669 c_retval = xmlValidatePushElement(ctxt, doc, elem, qname);
12670 py_retval = libxml_intWrap((int) c_retval);
12674 #endif /* defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) */
12675 #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
12677 libxml_xmlValidateQName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12678 PyObject *py_retval;
12683 if (!PyArg_ParseTuple(args, (char *)"zi:xmlValidateQName", &value, &space))
12686 c_retval = xmlValidateQName(value, space);
12687 py_retval = libxml_intWrap((int) c_retval);
12691 #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
12692 #if defined(LIBXML_VALID_ENABLED)
12694 libxml_xmlValidateRoot(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12695 PyObject *py_retval;
12697 xmlValidCtxtPtr ctxt;
12698 PyObject *pyobj_ctxt;
12700 PyObject *pyobj_doc;
12702 if (!PyArg_ParseTuple(args, (char *)"OO:xmlValidateRoot", &pyobj_ctxt, &pyobj_doc))
12704 ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt);
12705 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12707 c_retval = xmlValidateRoot(ctxt, doc);
12708 py_retval = libxml_intWrap((int) c_retval);
12712 #endif /* defined(LIBXML_VALID_ENABLED) */
12713 #if defined(LIBXML_XINCLUDE_ENABLED)
12715 libxml_xmlXIncludeProcess(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12716 PyObject *py_retval;
12719 PyObject *pyobj_doc;
12721 if (!PyArg_ParseTuple(args, (char *)"O:xmlXIncludeProcess", &pyobj_doc))
12723 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12725 c_retval = xmlXIncludeProcess(doc);
12726 py_retval = libxml_intWrap((int) c_retval);
12730 #endif /* defined(LIBXML_XINCLUDE_ENABLED) */
12731 #if defined(LIBXML_XINCLUDE_ENABLED)
12733 libxml_xmlXIncludeProcessFlags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12734 PyObject *py_retval;
12737 PyObject *pyobj_doc;
12740 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXIncludeProcessFlags", &pyobj_doc, &flags))
12742 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
12744 c_retval = xmlXIncludeProcessFlags(doc, flags);
12745 py_retval = libxml_intWrap((int) c_retval);
12749 #endif /* defined(LIBXML_XINCLUDE_ENABLED) */
12750 #if defined(LIBXML_XINCLUDE_ENABLED)
12752 libxml_xmlXIncludeProcessTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12753 PyObject *py_retval;
12756 PyObject *pyobj_tree;
12758 if (!PyArg_ParseTuple(args, (char *)"O:xmlXIncludeProcessTree", &pyobj_tree))
12760 tree = (xmlNodePtr) PyxmlNode_Get(pyobj_tree);
12762 c_retval = xmlXIncludeProcessTree(tree);
12763 py_retval = libxml_intWrap((int) c_retval);
12767 #endif /* defined(LIBXML_XINCLUDE_ENABLED) */
12768 #if defined(LIBXML_XINCLUDE_ENABLED)
12770 libxml_xmlXIncludeProcessTreeFlags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12771 PyObject *py_retval;
12774 PyObject *pyobj_tree;
12777 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXIncludeProcessTreeFlags", &pyobj_tree, &flags))
12779 tree = (xmlNodePtr) PyxmlNode_Get(pyobj_tree);
12781 c_retval = xmlXIncludeProcessTreeFlags(tree, flags);
12782 py_retval = libxml_intWrap((int) c_retval);
12786 #endif /* defined(LIBXML_XINCLUDE_ENABLED) */
12787 #if defined(LIBXML_XPATH_ENABLED)
12789 libxml_xmlXPathAddValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12790 xmlXPathParserContextPtr ctxt;
12791 PyObject *pyobj_ctxt;
12793 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathAddValues", &pyobj_ctxt))
12795 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
12797 xmlXPathAddValues(ctxt);
12798 Py_INCREF(Py_None);
12802 #endif /* defined(LIBXML_XPATH_ENABLED) */
12803 #if defined(LIBXML_XPATH_ENABLED)
12805 libxml_xmlXPathBooleanFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12806 xmlXPathParserContextPtr ctxt;
12807 PyObject *pyobj_ctxt;
12810 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathBooleanFunction", &pyobj_ctxt, &nargs))
12812 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
12814 xmlXPathBooleanFunction(ctxt, nargs);
12815 Py_INCREF(Py_None);
12819 #endif /* defined(LIBXML_XPATH_ENABLED) */
12820 #if defined(LIBXML_XPATH_ENABLED)
12822 libxml_xmlXPathCastBooleanToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12823 PyObject *py_retval;
12827 if (!PyArg_ParseTuple(args, (char *)"i:xmlXPathCastBooleanToNumber", &val))
12830 c_retval = xmlXPathCastBooleanToNumber(val);
12831 py_retval = libxml_doubleWrap((double) c_retval);
12835 #endif /* defined(LIBXML_XPATH_ENABLED) */
12836 #if defined(LIBXML_XPATH_ENABLED)
12838 libxml_xmlXPathCastBooleanToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12839 PyObject *py_retval;
12840 xmlChar * c_retval;
12843 if (!PyArg_ParseTuple(args, (char *)"i:xmlXPathCastBooleanToString", &val))
12846 c_retval = xmlXPathCastBooleanToString(val);
12847 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
12851 #endif /* defined(LIBXML_XPATH_ENABLED) */
12852 #if defined(LIBXML_XPATH_ENABLED)
12854 libxml_xmlXPathCastNodeToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12855 PyObject *py_retval;
12858 PyObject *pyobj_node;
12860 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathCastNodeToNumber", &pyobj_node))
12862 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
12864 c_retval = xmlXPathCastNodeToNumber(node);
12865 py_retval = libxml_doubleWrap((double) c_retval);
12869 #endif /* defined(LIBXML_XPATH_ENABLED) */
12870 #if defined(LIBXML_XPATH_ENABLED)
12872 libxml_xmlXPathCastNodeToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12873 PyObject *py_retval;
12874 xmlChar * c_retval;
12876 PyObject *pyobj_node;
12878 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathCastNodeToString", &pyobj_node))
12880 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
12882 c_retval = xmlXPathCastNodeToString(node);
12883 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
12887 #endif /* defined(LIBXML_XPATH_ENABLED) */
12888 #if defined(LIBXML_XPATH_ENABLED)
12890 libxml_xmlXPathCastNumberToBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12891 PyObject *py_retval;
12895 if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathCastNumberToBoolean", &val))
12898 c_retval = xmlXPathCastNumberToBoolean(val);
12899 py_retval = libxml_intWrap((int) c_retval);
12903 #endif /* defined(LIBXML_XPATH_ENABLED) */
12904 #if defined(LIBXML_XPATH_ENABLED)
12906 libxml_xmlXPathCastNumberToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12907 PyObject *py_retval;
12908 xmlChar * c_retval;
12911 if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathCastNumberToString", &val))
12914 c_retval = xmlXPathCastNumberToString(val);
12915 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
12919 #endif /* defined(LIBXML_XPATH_ENABLED) */
12920 #if defined(LIBXML_XPATH_ENABLED)
12922 libxml_xmlXPathCastStringToBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12923 PyObject *py_retval;
12927 if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathCastStringToBoolean", &val))
12930 c_retval = xmlXPathCastStringToBoolean(val);
12931 py_retval = libxml_intWrap((int) c_retval);
12935 #endif /* defined(LIBXML_XPATH_ENABLED) */
12936 #if defined(LIBXML_XPATH_ENABLED)
12938 libxml_xmlXPathCastStringToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12939 PyObject *py_retval;
12943 if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathCastStringToNumber", &val))
12946 c_retval = xmlXPathCastStringToNumber(val);
12947 py_retval = libxml_doubleWrap((double) c_retval);
12951 #endif /* defined(LIBXML_XPATH_ENABLED) */
12952 #if defined(LIBXML_XPATH_ENABLED)
12954 libxml_xmlXPathCeilingFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12955 xmlXPathParserContextPtr ctxt;
12956 PyObject *pyobj_ctxt;
12959 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathCeilingFunction", &pyobj_ctxt, &nargs))
12961 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
12963 xmlXPathCeilingFunction(ctxt, nargs);
12964 Py_INCREF(Py_None);
12968 #endif /* defined(LIBXML_XPATH_ENABLED) */
12969 #if defined(LIBXML_XPATH_ENABLED)
12971 libxml_xmlXPathCmpNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12972 PyObject *py_retval;
12975 PyObject *pyobj_node1;
12977 PyObject *pyobj_node2;
12979 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathCmpNodes", &pyobj_node1, &pyobj_node2))
12981 node1 = (xmlNodePtr) PyxmlNode_Get(pyobj_node1);
12982 node2 = (xmlNodePtr) PyxmlNode_Get(pyobj_node2);
12984 c_retval = xmlXPathCmpNodes(node1, node2);
12985 py_retval = libxml_intWrap((int) c_retval);
12989 #endif /* defined(LIBXML_XPATH_ENABLED) */
12990 #if defined(LIBXML_XPATH_ENABLED)
12992 libxml_xmlXPathCompareValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
12993 PyObject *py_retval;
12995 xmlXPathParserContextPtr ctxt;
12996 PyObject *pyobj_ctxt;
13000 if (!PyArg_ParseTuple(args, (char *)"Oii:xmlXPathCompareValues", &pyobj_ctxt, &inf, &strict))
13002 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13004 c_retval = xmlXPathCompareValues(ctxt, inf, strict);
13005 py_retval = libxml_intWrap((int) c_retval);
13009 #endif /* defined(LIBXML_XPATH_ENABLED) */
13010 #if defined(LIBXML_XPATH_ENABLED)
13012 libxml_xmlXPathConcatFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13013 xmlXPathParserContextPtr ctxt;
13014 PyObject *pyobj_ctxt;
13017 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathConcatFunction", &pyobj_ctxt, &nargs))
13019 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13021 xmlXPathConcatFunction(ctxt, nargs);
13022 Py_INCREF(Py_None);
13026 #endif /* defined(LIBXML_XPATH_ENABLED) */
13027 #if defined(LIBXML_XPATH_ENABLED)
13029 libxml_xmlXPathContainsFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13030 xmlXPathParserContextPtr ctxt;
13031 PyObject *pyobj_ctxt;
13034 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathContainsFunction", &pyobj_ctxt, &nargs))
13036 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13038 xmlXPathContainsFunction(ctxt, nargs);
13039 Py_INCREF(Py_None);
13043 #endif /* defined(LIBXML_XPATH_ENABLED) */
13044 #if defined(LIBXML_XPATH_ENABLED)
13046 libxml_xmlXPathContextSetCache(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13047 PyObject *py_retval;
13049 xmlXPathContextPtr ctxt;
13050 PyObject *pyobj_ctxt;
13055 if (!PyArg_ParseTuple(args, (char *)"Oiii:xmlXPathContextSetCache", &pyobj_ctxt, &active, &value, &options))
13057 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13059 c_retval = xmlXPathContextSetCache(ctxt, active, value, options);
13060 py_retval = libxml_intWrap((int) c_retval);
13064 #endif /* defined(LIBXML_XPATH_ENABLED) */
13065 #if defined(LIBXML_XPATH_ENABLED)
13067 libxml_xmlXPathCountFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13068 xmlXPathParserContextPtr ctxt;
13069 PyObject *pyobj_ctxt;
13072 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathCountFunction", &pyobj_ctxt, &nargs))
13074 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13076 xmlXPathCountFunction(ctxt, nargs);
13077 Py_INCREF(Py_None);
13081 #endif /* defined(LIBXML_XPATH_ENABLED) */
13082 #if defined(LIBXML_XPATH_ENABLED)
13084 libxml_xmlXPathDivValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13085 xmlXPathParserContextPtr ctxt;
13086 PyObject *pyobj_ctxt;
13088 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathDivValues", &pyobj_ctxt))
13090 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13092 xmlXPathDivValues(ctxt);
13093 Py_INCREF(Py_None);
13097 #endif /* defined(LIBXML_XPATH_ENABLED) */
13098 #if defined(LIBXML_XPATH_ENABLED)
13100 libxml_xmlXPathEqualValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13101 PyObject *py_retval;
13103 xmlXPathParserContextPtr ctxt;
13104 PyObject *pyobj_ctxt;
13106 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathEqualValues", &pyobj_ctxt))
13108 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13110 c_retval = xmlXPathEqualValues(ctxt);
13111 py_retval = libxml_intWrap((int) c_retval);
13115 #endif /* defined(LIBXML_XPATH_ENABLED) */
13116 #if defined(LIBXML_XPATH_ENABLED)
13118 libxml_xmlXPathErr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13119 xmlXPathParserContextPtr ctxt;
13120 PyObject *pyobj_ctxt;
13123 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathErr", &pyobj_ctxt, &error))
13125 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13127 xmlXPathErr(ctxt, error);
13128 Py_INCREF(Py_None);
13132 #endif /* defined(LIBXML_XPATH_ENABLED) */
13133 #if defined(LIBXML_XPATH_ENABLED)
13135 libxml_xmlXPathEval(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13136 PyObject *py_retval;
13137 xmlXPathObjectPtr c_retval;
13139 xmlXPathContextPtr ctx;
13140 PyObject *pyobj_ctx;
13142 if (!PyArg_ParseTuple(args, (char *)"zO:xmlXPathEval", &str, &pyobj_ctx))
13144 ctx = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctx);
13146 c_retval = xmlXPathEval(str, ctx);
13147 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
13151 #endif /* defined(LIBXML_XPATH_ENABLED) */
13152 #if defined(LIBXML_XPATH_ENABLED)
13154 libxml_xmlXPathEvalExpr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13155 xmlXPathParserContextPtr ctxt;
13156 PyObject *pyobj_ctxt;
13158 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathEvalExpr", &pyobj_ctxt))
13160 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13162 xmlXPathEvalExpr(ctxt);
13163 Py_INCREF(Py_None);
13167 #endif /* defined(LIBXML_XPATH_ENABLED) */
13168 #if defined(LIBXML_XPATH_ENABLED)
13170 libxml_xmlXPathEvalExpression(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13171 PyObject *py_retval;
13172 xmlXPathObjectPtr c_retval;
13174 xmlXPathContextPtr ctxt;
13175 PyObject *pyobj_ctxt;
13177 if (!PyArg_ParseTuple(args, (char *)"zO:xmlXPathEvalExpression", &str, &pyobj_ctxt))
13179 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13181 c_retval = xmlXPathEvalExpression(str, ctxt);
13182 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
13186 #endif /* defined(LIBXML_XPATH_ENABLED) */
13187 #if defined(LIBXML_XPATH_ENABLED)
13189 libxml_xmlXPathFalseFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13190 xmlXPathParserContextPtr ctxt;
13191 PyObject *pyobj_ctxt;
13194 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathFalseFunction", &pyobj_ctxt, &nargs))
13196 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13198 xmlXPathFalseFunction(ctxt, nargs);
13199 Py_INCREF(Py_None);
13203 #endif /* defined(LIBXML_XPATH_ENABLED) */
13204 #if defined(LIBXML_XPATH_ENABLED)
13206 libxml_xmlXPathFloorFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13207 xmlXPathParserContextPtr ctxt;
13208 PyObject *pyobj_ctxt;
13211 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathFloorFunction", &pyobj_ctxt, &nargs))
13213 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13215 xmlXPathFloorFunction(ctxt, nargs);
13216 Py_INCREF(Py_None);
13220 #endif /* defined(LIBXML_XPATH_ENABLED) */
13221 #if defined(LIBXML_XPATH_ENABLED)
13223 libxml_xmlXPathFreeContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13224 xmlXPathContextPtr ctxt;
13225 PyObject *pyobj_ctxt;
13227 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathFreeContext", &pyobj_ctxt))
13229 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13231 xmlXPathFreeContext(ctxt);
13232 Py_INCREF(Py_None);
13236 #endif /* defined(LIBXML_XPATH_ENABLED) */
13237 #if defined(LIBXML_XPATH_ENABLED)
13239 libxml_xmlXPathFreeParserContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13240 xmlXPathParserContextPtr ctxt;
13241 PyObject *pyobj_ctxt;
13243 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathFreeParserContext", &pyobj_ctxt))
13245 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13247 xmlXPathFreeParserContext(ctxt);
13248 Py_INCREF(Py_None);
13252 #endif /* defined(LIBXML_XPATH_ENABLED) */
13253 #if defined(LIBXML_XPATH_ENABLED)
13255 libxml_xmlXPathGetContextDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13256 PyObject *py_retval;
13257 xmlDocPtr c_retval;
13258 xmlXPathContextPtr ctxt;
13259 PyObject *pyobj_ctxt;
13261 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextDoc", &pyobj_ctxt))
13263 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13265 c_retval = ctxt->doc;
13266 py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
13270 #endif /* defined(LIBXML_XPATH_ENABLED) */
13271 #if defined(LIBXML_XPATH_ENABLED)
13273 libxml_xmlXPathGetContextNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13274 PyObject *py_retval;
13275 xmlNodePtr c_retval;
13276 xmlXPathContextPtr ctxt;
13277 PyObject *pyobj_ctxt;
13279 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextNode", &pyobj_ctxt))
13281 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13283 c_retval = ctxt->node;
13284 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13288 #endif /* defined(LIBXML_XPATH_ENABLED) */
13289 #if defined(LIBXML_XPATH_ENABLED)
13291 libxml_xmlXPathGetContextPosition(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13292 PyObject *py_retval;
13294 xmlXPathContextPtr ctxt;
13295 PyObject *pyobj_ctxt;
13297 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextPosition", &pyobj_ctxt))
13299 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13301 c_retval = ctxt->proximityPosition;
13302 py_retval = libxml_intWrap((int) c_retval);
13306 #endif /* defined(LIBXML_XPATH_ENABLED) */
13307 #if defined(LIBXML_XPATH_ENABLED)
13309 libxml_xmlXPathGetContextSize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13310 PyObject *py_retval;
13312 xmlXPathContextPtr ctxt;
13313 PyObject *pyobj_ctxt;
13315 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextSize", &pyobj_ctxt))
13317 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13319 c_retval = ctxt->contextSize;
13320 py_retval = libxml_intWrap((int) c_retval);
13324 #endif /* defined(LIBXML_XPATH_ENABLED) */
13325 #if defined(LIBXML_XPATH_ENABLED)
13327 libxml_xmlXPathGetFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13328 PyObject *py_retval;
13329 const xmlChar * c_retval;
13330 xmlXPathContextPtr ctxt;
13331 PyObject *pyobj_ctxt;
13333 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetFunction", &pyobj_ctxt))
13335 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13337 c_retval = ctxt->function;
13338 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
13342 #endif /* defined(LIBXML_XPATH_ENABLED) */
13343 #if defined(LIBXML_XPATH_ENABLED)
13345 libxml_xmlXPathGetFunctionURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13346 PyObject *py_retval;
13347 const xmlChar * c_retval;
13348 xmlXPathContextPtr ctxt;
13349 PyObject *pyobj_ctxt;
13351 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetFunctionURI", &pyobj_ctxt))
13353 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13355 c_retval = ctxt->functionURI;
13356 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
13360 #endif /* defined(LIBXML_XPATH_ENABLED) */
13361 #if defined(LIBXML_XPATH_ENABLED)
13363 libxml_xmlXPathIdFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13364 xmlXPathParserContextPtr ctxt;
13365 PyObject *pyobj_ctxt;
13368 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathIdFunction", &pyobj_ctxt, &nargs))
13370 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13372 xmlXPathIdFunction(ctxt, nargs);
13373 Py_INCREF(Py_None);
13377 #endif /* defined(LIBXML_XPATH_ENABLED) */
13378 #if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
13380 libxml_xmlXPathInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) {
13383 Py_INCREF(Py_None);
13387 #endif /* defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
13388 #if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
13390 libxml_xmlXPathIsInf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13391 PyObject *py_retval;
13395 if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathIsInf", &val))
13398 c_retval = xmlXPathIsInf(val);
13399 py_retval = libxml_intWrap((int) c_retval);
13403 #endif /* defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
13404 #if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
13406 libxml_xmlXPathIsNaN(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13407 PyObject *py_retval;
13411 if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathIsNaN", &val))
13414 c_retval = xmlXPathIsNaN(val);
13415 py_retval = libxml_intWrap((int) c_retval);
13419 #endif /* defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
13420 #if defined(LIBXML_XPATH_ENABLED)
13422 libxml_xmlXPathIsNodeType(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13423 PyObject *py_retval;
13427 if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathIsNodeType", &name))
13430 c_retval = xmlXPathIsNodeType(name);
13431 py_retval = libxml_intWrap((int) c_retval);
13435 #endif /* defined(LIBXML_XPATH_ENABLED) */
13436 #if defined(LIBXML_XPATH_ENABLED)
13438 libxml_xmlXPathLangFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13439 xmlXPathParserContextPtr ctxt;
13440 PyObject *pyobj_ctxt;
13443 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathLangFunction", &pyobj_ctxt, &nargs))
13445 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13447 xmlXPathLangFunction(ctxt, nargs);
13448 Py_INCREF(Py_None);
13452 #endif /* defined(LIBXML_XPATH_ENABLED) */
13453 #if defined(LIBXML_XPATH_ENABLED)
13455 libxml_xmlXPathLastFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13456 xmlXPathParserContextPtr ctxt;
13457 PyObject *pyobj_ctxt;
13460 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathLastFunction", &pyobj_ctxt, &nargs))
13462 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13464 xmlXPathLastFunction(ctxt, nargs);
13465 Py_INCREF(Py_None);
13469 #endif /* defined(LIBXML_XPATH_ENABLED) */
13470 #if defined(LIBXML_XPATH_ENABLED)
13472 libxml_xmlXPathLocalNameFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13473 xmlXPathParserContextPtr ctxt;
13474 PyObject *pyobj_ctxt;
13477 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathLocalNameFunction", &pyobj_ctxt, &nargs))
13479 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13481 xmlXPathLocalNameFunction(ctxt, nargs);
13482 Py_INCREF(Py_None);
13486 #endif /* defined(LIBXML_XPATH_ENABLED) */
13487 #if defined(LIBXML_XPATH_ENABLED)
13489 libxml_xmlXPathModValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13490 xmlXPathParserContextPtr ctxt;
13491 PyObject *pyobj_ctxt;
13493 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathModValues", &pyobj_ctxt))
13495 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13497 xmlXPathModValues(ctxt);
13498 Py_INCREF(Py_None);
13502 #endif /* defined(LIBXML_XPATH_ENABLED) */
13503 #if defined(LIBXML_XPATH_ENABLED)
13505 libxml_xmlXPathMultValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13506 xmlXPathParserContextPtr ctxt;
13507 PyObject *pyobj_ctxt;
13509 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathMultValues", &pyobj_ctxt))
13511 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13513 xmlXPathMultValues(ctxt);
13514 Py_INCREF(Py_None);
13518 #endif /* defined(LIBXML_XPATH_ENABLED) */
13519 #if defined(LIBXML_XPATH_ENABLED)
13521 libxml_xmlXPathNamespaceURIFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13522 xmlXPathParserContextPtr ctxt;
13523 PyObject *pyobj_ctxt;
13526 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathNamespaceURIFunction", &pyobj_ctxt, &nargs))
13528 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13530 xmlXPathNamespaceURIFunction(ctxt, nargs);
13531 Py_INCREF(Py_None);
13535 #endif /* defined(LIBXML_XPATH_ENABLED) */
13536 #if defined(LIBXML_XPATH_ENABLED)
13538 libxml_xmlXPathNewBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13539 PyObject *py_retval;
13540 xmlXPathObjectPtr c_retval;
13543 if (!PyArg_ParseTuple(args, (char *)"i:xmlXPathNewBoolean", &val))
13546 c_retval = xmlXPathNewBoolean(val);
13547 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
13551 #endif /* defined(LIBXML_XPATH_ENABLED) */
13552 #if defined(LIBXML_XPATH_ENABLED)
13554 libxml_xmlXPathNewCString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13555 PyObject *py_retval;
13556 xmlXPathObjectPtr c_retval;
13559 if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathNewCString", &val))
13562 c_retval = xmlXPathNewCString(val);
13563 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
13567 #endif /* defined(LIBXML_XPATH_ENABLED) */
13568 #if defined(LIBXML_XPATH_ENABLED)
13570 libxml_xmlXPathNewContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13571 PyObject *py_retval;
13572 xmlXPathContextPtr c_retval;
13574 PyObject *pyobj_doc;
13576 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNewContext", &pyobj_doc))
13578 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
13580 c_retval = xmlXPathNewContext(doc);
13581 py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval);
13585 #endif /* defined(LIBXML_XPATH_ENABLED) */
13586 #if defined(LIBXML_XPATH_ENABLED)
13588 libxml_xmlXPathNewFloat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13589 PyObject *py_retval;
13590 xmlXPathObjectPtr c_retval;
13593 if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathNewFloat", &val))
13596 c_retval = xmlXPathNewFloat(val);
13597 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
13601 #endif /* defined(LIBXML_XPATH_ENABLED) */
13602 #if defined(LIBXML_XPATH_ENABLED)
13604 libxml_xmlXPathNewNodeSet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13605 PyObject *py_retval;
13606 xmlXPathObjectPtr c_retval;
13608 PyObject *pyobj_val;
13610 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNewNodeSet", &pyobj_val))
13612 val = (xmlNodePtr) PyxmlNode_Get(pyobj_val);
13614 c_retval = xmlXPathNewNodeSet(val);
13615 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
13619 #endif /* defined(LIBXML_XPATH_ENABLED) */
13620 #if defined(LIBXML_XPATH_ENABLED)
13622 libxml_xmlXPathNewParserContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13623 PyObject *py_retval;
13624 xmlXPathParserContextPtr c_retval;
13626 xmlXPathContextPtr ctxt;
13627 PyObject *pyobj_ctxt;
13629 if (!PyArg_ParseTuple(args, (char *)"zO:xmlXPathNewParserContext", &str, &pyobj_ctxt))
13631 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
13633 c_retval = xmlXPathNewParserContext(str, ctxt);
13634 py_retval = libxml_xmlXPathParserContextPtrWrap((xmlXPathParserContextPtr) c_retval);
13638 #endif /* defined(LIBXML_XPATH_ENABLED) */
13639 #if defined(LIBXML_XPATH_ENABLED)
13641 libxml_xmlXPathNewString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13642 PyObject *py_retval;
13643 xmlXPathObjectPtr c_retval;
13646 if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathNewString", &val))
13649 c_retval = xmlXPathNewString(val);
13650 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
13654 #endif /* defined(LIBXML_XPATH_ENABLED) */
13655 #if defined(LIBXML_XPATH_ENABLED)
13657 libxml_xmlXPathNewValueTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13658 PyObject *py_retval;
13659 xmlXPathObjectPtr c_retval;
13661 PyObject *pyobj_val;
13663 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNewValueTree", &pyobj_val))
13665 val = (xmlNodePtr) PyxmlNode_Get(pyobj_val);
13667 c_retval = xmlXPathNewValueTree(val);
13668 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
13672 #endif /* defined(LIBXML_XPATH_ENABLED) */
13673 #if defined(LIBXML_XPATH_ENABLED)
13675 libxml_xmlXPathNextAncestor(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13676 PyObject *py_retval;
13677 xmlNodePtr c_retval;
13678 xmlXPathParserContextPtr ctxt;
13679 PyObject *pyobj_ctxt;
13681 PyObject *pyobj_cur;
13683 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextAncestor", &pyobj_ctxt, &pyobj_cur))
13685 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13686 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13688 c_retval = xmlXPathNextAncestor(ctxt, cur);
13689 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13693 #endif /* defined(LIBXML_XPATH_ENABLED) */
13694 #if defined(LIBXML_XPATH_ENABLED)
13696 libxml_xmlXPathNextAncestorOrSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13697 PyObject *py_retval;
13698 xmlNodePtr c_retval;
13699 xmlXPathParserContextPtr ctxt;
13700 PyObject *pyobj_ctxt;
13702 PyObject *pyobj_cur;
13704 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextAncestorOrSelf", &pyobj_ctxt, &pyobj_cur))
13706 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13707 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13709 c_retval = xmlXPathNextAncestorOrSelf(ctxt, cur);
13710 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13714 #endif /* defined(LIBXML_XPATH_ENABLED) */
13715 #if defined(LIBXML_XPATH_ENABLED)
13717 libxml_xmlXPathNextAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13718 PyObject *py_retval;
13719 xmlNodePtr c_retval;
13720 xmlXPathParserContextPtr ctxt;
13721 PyObject *pyobj_ctxt;
13723 PyObject *pyobj_cur;
13725 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextAttribute", &pyobj_ctxt, &pyobj_cur))
13727 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13728 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13730 c_retval = xmlXPathNextAttribute(ctxt, cur);
13731 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13735 #endif /* defined(LIBXML_XPATH_ENABLED) */
13736 #if defined(LIBXML_XPATH_ENABLED)
13738 libxml_xmlXPathNextChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13739 PyObject *py_retval;
13740 xmlNodePtr c_retval;
13741 xmlXPathParserContextPtr ctxt;
13742 PyObject *pyobj_ctxt;
13744 PyObject *pyobj_cur;
13746 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextChild", &pyobj_ctxt, &pyobj_cur))
13748 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13749 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13751 c_retval = xmlXPathNextChild(ctxt, cur);
13752 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13756 #endif /* defined(LIBXML_XPATH_ENABLED) */
13757 #if defined(LIBXML_XPATH_ENABLED)
13759 libxml_xmlXPathNextDescendant(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13760 PyObject *py_retval;
13761 xmlNodePtr c_retval;
13762 xmlXPathParserContextPtr ctxt;
13763 PyObject *pyobj_ctxt;
13765 PyObject *pyobj_cur;
13767 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextDescendant", &pyobj_ctxt, &pyobj_cur))
13769 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13770 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13772 c_retval = xmlXPathNextDescendant(ctxt, cur);
13773 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13777 #endif /* defined(LIBXML_XPATH_ENABLED) */
13778 #if defined(LIBXML_XPATH_ENABLED)
13780 libxml_xmlXPathNextDescendantOrSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13781 PyObject *py_retval;
13782 xmlNodePtr c_retval;
13783 xmlXPathParserContextPtr ctxt;
13784 PyObject *pyobj_ctxt;
13786 PyObject *pyobj_cur;
13788 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextDescendantOrSelf", &pyobj_ctxt, &pyobj_cur))
13790 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13791 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13793 c_retval = xmlXPathNextDescendantOrSelf(ctxt, cur);
13794 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13798 #endif /* defined(LIBXML_XPATH_ENABLED) */
13799 #if defined(LIBXML_XPATH_ENABLED)
13801 libxml_xmlXPathNextFollowing(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13802 PyObject *py_retval;
13803 xmlNodePtr c_retval;
13804 xmlXPathParserContextPtr ctxt;
13805 PyObject *pyobj_ctxt;
13807 PyObject *pyobj_cur;
13809 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextFollowing", &pyobj_ctxt, &pyobj_cur))
13811 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13812 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13814 c_retval = xmlXPathNextFollowing(ctxt, cur);
13815 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13819 #endif /* defined(LIBXML_XPATH_ENABLED) */
13820 #if defined(LIBXML_XPATH_ENABLED)
13822 libxml_xmlXPathNextFollowingSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13823 PyObject *py_retval;
13824 xmlNodePtr c_retval;
13825 xmlXPathParserContextPtr ctxt;
13826 PyObject *pyobj_ctxt;
13828 PyObject *pyobj_cur;
13830 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextFollowingSibling", &pyobj_ctxt, &pyobj_cur))
13832 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13833 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13835 c_retval = xmlXPathNextFollowingSibling(ctxt, cur);
13836 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13840 #endif /* defined(LIBXML_XPATH_ENABLED) */
13841 #if defined(LIBXML_XPATH_ENABLED)
13843 libxml_xmlXPathNextNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13844 PyObject *py_retval;
13845 xmlNodePtr c_retval;
13846 xmlXPathParserContextPtr ctxt;
13847 PyObject *pyobj_ctxt;
13849 PyObject *pyobj_cur;
13851 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextNamespace", &pyobj_ctxt, &pyobj_cur))
13853 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13854 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13856 c_retval = xmlXPathNextNamespace(ctxt, cur);
13857 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13861 #endif /* defined(LIBXML_XPATH_ENABLED) */
13862 #if defined(LIBXML_XPATH_ENABLED)
13864 libxml_xmlXPathNextParent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13865 PyObject *py_retval;
13866 xmlNodePtr c_retval;
13867 xmlXPathParserContextPtr ctxt;
13868 PyObject *pyobj_ctxt;
13870 PyObject *pyobj_cur;
13872 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextParent", &pyobj_ctxt, &pyobj_cur))
13874 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13875 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13877 c_retval = xmlXPathNextParent(ctxt, cur);
13878 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13882 #endif /* defined(LIBXML_XPATH_ENABLED) */
13883 #if defined(LIBXML_XPATH_ENABLED)
13885 libxml_xmlXPathNextPreceding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13886 PyObject *py_retval;
13887 xmlNodePtr c_retval;
13888 xmlXPathParserContextPtr ctxt;
13889 PyObject *pyobj_ctxt;
13891 PyObject *pyobj_cur;
13893 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextPreceding", &pyobj_ctxt, &pyobj_cur))
13895 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13896 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13898 c_retval = xmlXPathNextPreceding(ctxt, cur);
13899 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13903 #endif /* defined(LIBXML_XPATH_ENABLED) */
13904 #if defined(LIBXML_XPATH_ENABLED)
13906 libxml_xmlXPathNextPrecedingSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13907 PyObject *py_retval;
13908 xmlNodePtr c_retval;
13909 xmlXPathParserContextPtr ctxt;
13910 PyObject *pyobj_ctxt;
13912 PyObject *pyobj_cur;
13914 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextPrecedingSibling", &pyobj_ctxt, &pyobj_cur))
13916 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13917 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13919 c_retval = xmlXPathNextPrecedingSibling(ctxt, cur);
13920 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13924 #endif /* defined(LIBXML_XPATH_ENABLED) */
13925 #if defined(LIBXML_XPATH_ENABLED)
13927 libxml_xmlXPathNextSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13928 PyObject *py_retval;
13929 xmlNodePtr c_retval;
13930 xmlXPathParserContextPtr ctxt;
13931 PyObject *pyobj_ctxt;
13933 PyObject *pyobj_cur;
13935 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextSelf", &pyobj_ctxt, &pyobj_cur))
13937 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13938 cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur);
13940 c_retval = xmlXPathNextSelf(ctxt, cur);
13941 py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
13945 #endif /* defined(LIBXML_XPATH_ENABLED) */
13946 #if defined(LIBXML_XPATH_ENABLED)
13948 libxml_xmlXPathNodeEval(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13949 PyObject *py_retval;
13950 xmlXPathObjectPtr c_retval;
13952 PyObject *pyobj_node;
13954 xmlXPathContextPtr ctx;
13955 PyObject *pyobj_ctx;
13957 if (!PyArg_ParseTuple(args, (char *)"OzO:xmlXPathNodeEval", &pyobj_node, &str, &pyobj_ctx))
13959 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
13960 ctx = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctx);
13962 c_retval = xmlXPathNodeEval(node, str, ctx);
13963 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
13967 #endif /* defined(LIBXML_XPATH_ENABLED) */
13968 #if defined(LIBXML_XPATH_ENABLED)
13970 libxml_xmlXPathNodeSetFreeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13972 PyObject *pyobj_ns;
13974 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNodeSetFreeNs", &pyobj_ns))
13976 ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns);
13978 xmlXPathNodeSetFreeNs(ns);
13979 Py_INCREF(Py_None);
13983 #endif /* defined(LIBXML_XPATH_ENABLED) */
13984 #if defined(LIBXML_XPATH_ENABLED)
13986 libxml_xmlXPathNormalizeFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
13987 xmlXPathParserContextPtr ctxt;
13988 PyObject *pyobj_ctxt;
13991 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathNormalizeFunction", &pyobj_ctxt, &nargs))
13993 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
13995 xmlXPathNormalizeFunction(ctxt, nargs);
13996 Py_INCREF(Py_None);
14000 #endif /* defined(LIBXML_XPATH_ENABLED) */
14001 #if defined(LIBXML_XPATH_ENABLED)
14003 libxml_xmlXPathNotEqualValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14004 PyObject *py_retval;
14006 xmlXPathParserContextPtr ctxt;
14007 PyObject *pyobj_ctxt;
14009 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNotEqualValues", &pyobj_ctxt))
14011 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14013 c_retval = xmlXPathNotEqualValues(ctxt);
14014 py_retval = libxml_intWrap((int) c_retval);
14018 #endif /* defined(LIBXML_XPATH_ENABLED) */
14019 #if defined(LIBXML_XPATH_ENABLED)
14021 libxml_xmlXPathNotFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14022 xmlXPathParserContextPtr ctxt;
14023 PyObject *pyobj_ctxt;
14026 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathNotFunction", &pyobj_ctxt, &nargs))
14028 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14030 xmlXPathNotFunction(ctxt, nargs);
14031 Py_INCREF(Py_None);
14035 #endif /* defined(LIBXML_XPATH_ENABLED) */
14036 #if defined(LIBXML_XPATH_ENABLED)
14038 libxml_xmlXPathNsLookup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14039 PyObject *py_retval;
14040 const xmlChar * c_retval;
14041 xmlXPathContextPtr ctxt;
14042 PyObject *pyobj_ctxt;
14045 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlXPathNsLookup", &pyobj_ctxt, &prefix))
14047 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14049 c_retval = xmlXPathNsLookup(ctxt, prefix);
14050 py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
14054 #endif /* defined(LIBXML_XPATH_ENABLED) */
14055 #if defined(LIBXML_XPATH_ENABLED)
14057 libxml_xmlXPathNumberFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14058 xmlXPathParserContextPtr ctxt;
14059 PyObject *pyobj_ctxt;
14062 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathNumberFunction", &pyobj_ctxt, &nargs))
14064 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14066 xmlXPathNumberFunction(ctxt, nargs);
14067 Py_INCREF(Py_None);
14071 #endif /* defined(LIBXML_XPATH_ENABLED) */
14072 #if defined(LIBXML_XPATH_ENABLED)
14074 libxml_xmlXPathOrderDocElems(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14075 PyObject *py_retval;
14078 PyObject *pyobj_doc;
14080 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathOrderDocElems", &pyobj_doc))
14082 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
14084 c_retval = xmlXPathOrderDocElems(doc);
14085 py_retval = libxml_longWrap((long) c_retval);
14089 #endif /* defined(LIBXML_XPATH_ENABLED) */
14090 #if defined(LIBXML_XPATH_ENABLED)
14092 libxml_xmlXPathParseNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14093 PyObject *py_retval;
14094 xmlChar * c_retval;
14095 xmlXPathParserContextPtr ctxt;
14096 PyObject *pyobj_ctxt;
14098 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathParseNCName", &pyobj_ctxt))
14100 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14102 c_retval = xmlXPathParseNCName(ctxt);
14103 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
14107 #endif /* defined(LIBXML_XPATH_ENABLED) */
14108 #if defined(LIBXML_XPATH_ENABLED)
14110 libxml_xmlXPathParseName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14111 PyObject *py_retval;
14112 xmlChar * c_retval;
14113 xmlXPathParserContextPtr ctxt;
14114 PyObject *pyobj_ctxt;
14116 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathParseName", &pyobj_ctxt))
14118 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14120 c_retval = xmlXPathParseName(ctxt);
14121 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
14125 #endif /* defined(LIBXML_XPATH_ENABLED) */
14126 #if defined(LIBXML_XPATH_ENABLED)
14128 libxml_xmlXPathParserGetContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14129 PyObject *py_retval;
14130 xmlXPathContextPtr c_retval;
14131 xmlXPathParserContextPtr ctxt;
14132 PyObject *pyobj_ctxt;
14134 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathParserGetContext", &pyobj_ctxt))
14136 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14138 c_retval = ctxt->context;
14139 py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval);
14143 #endif /* defined(LIBXML_XPATH_ENABLED) */
14144 #if defined(LIBXML_XPATH_ENABLED)
14146 libxml_xmlXPathPopBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14147 PyObject *py_retval;
14149 xmlXPathParserContextPtr ctxt;
14150 PyObject *pyobj_ctxt;
14152 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathPopBoolean", &pyobj_ctxt))
14154 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14156 c_retval = xmlXPathPopBoolean(ctxt);
14157 py_retval = libxml_intWrap((int) c_retval);
14161 #endif /* defined(LIBXML_XPATH_ENABLED) */
14162 #if defined(LIBXML_XPATH_ENABLED)
14164 libxml_xmlXPathPopNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14165 PyObject *py_retval;
14167 xmlXPathParserContextPtr ctxt;
14168 PyObject *pyobj_ctxt;
14170 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathPopNumber", &pyobj_ctxt))
14172 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14174 c_retval = xmlXPathPopNumber(ctxt);
14175 py_retval = libxml_doubleWrap((double) c_retval);
14179 #endif /* defined(LIBXML_XPATH_ENABLED) */
14180 #if defined(LIBXML_XPATH_ENABLED)
14182 libxml_xmlXPathPopString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14183 PyObject *py_retval;
14184 xmlChar * c_retval;
14185 xmlXPathParserContextPtr ctxt;
14186 PyObject *pyobj_ctxt;
14188 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathPopString", &pyobj_ctxt))
14190 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14192 c_retval = xmlXPathPopString(ctxt);
14193 py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval);
14197 #endif /* defined(LIBXML_XPATH_ENABLED) */
14198 #if defined(LIBXML_XPATH_ENABLED)
14200 libxml_xmlXPathPositionFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14201 xmlXPathParserContextPtr ctxt;
14202 PyObject *pyobj_ctxt;
14205 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathPositionFunction", &pyobj_ctxt, &nargs))
14207 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14209 xmlXPathPositionFunction(ctxt, nargs);
14210 Py_INCREF(Py_None);
14214 #endif /* defined(LIBXML_XPATH_ENABLED) */
14215 #if defined(LIBXML_XPATH_ENABLED)
14217 libxml_xmlXPathRegisterAllFunctions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14218 xmlXPathContextPtr ctxt;
14219 PyObject *pyobj_ctxt;
14221 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRegisterAllFunctions", &pyobj_ctxt))
14223 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14225 xmlXPathRegisterAllFunctions(ctxt);
14226 Py_INCREF(Py_None);
14230 #endif /* defined(LIBXML_XPATH_ENABLED) */
14231 #if defined(LIBXML_XPATH_ENABLED)
14233 libxml_xmlXPathRegisterNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14234 PyObject *py_retval;
14236 xmlXPathContextPtr ctxt;
14237 PyObject *pyobj_ctxt;
14241 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlXPathRegisterNs", &pyobj_ctxt, &prefix, &ns_uri))
14243 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14245 c_retval = xmlXPathRegisterNs(ctxt, prefix, ns_uri);
14246 py_retval = libxml_intWrap((int) c_retval);
14250 #endif /* defined(LIBXML_XPATH_ENABLED) */
14251 #if defined(LIBXML_XPATH_ENABLED)
14253 #if defined(LIBXML_XPATH_ENABLED)
14255 libxml_xmlXPathRegisteredFuncsCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14256 xmlXPathContextPtr ctxt;
14257 PyObject *pyobj_ctxt;
14259 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRegisteredFuncsCleanup", &pyobj_ctxt))
14261 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14263 xmlXPathRegisteredFuncsCleanup(ctxt);
14264 Py_INCREF(Py_None);
14268 #endif /* defined(LIBXML_XPATH_ENABLED) */
14269 #if defined(LIBXML_XPATH_ENABLED)
14271 libxml_xmlXPathRegisteredNsCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14272 xmlXPathContextPtr ctxt;
14273 PyObject *pyobj_ctxt;
14275 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRegisteredNsCleanup", &pyobj_ctxt))
14277 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14279 xmlXPathRegisteredNsCleanup(ctxt);
14280 Py_INCREF(Py_None);
14284 #endif /* defined(LIBXML_XPATH_ENABLED) */
14285 #if defined(LIBXML_XPATH_ENABLED)
14287 libxml_xmlXPathRegisteredVariablesCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14288 xmlXPathContextPtr ctxt;
14289 PyObject *pyobj_ctxt;
14291 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRegisteredVariablesCleanup", &pyobj_ctxt))
14293 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14295 xmlXPathRegisteredVariablesCleanup(ctxt);
14296 Py_INCREF(Py_None);
14300 #endif /* defined(LIBXML_XPATH_ENABLED) */
14301 #if defined(LIBXML_XPATH_ENABLED)
14303 libxml_xmlXPathRoot(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14304 xmlXPathParserContextPtr ctxt;
14305 PyObject *pyobj_ctxt;
14307 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRoot", &pyobj_ctxt))
14309 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14311 xmlXPathRoot(ctxt);
14312 Py_INCREF(Py_None);
14316 #endif /* defined(LIBXML_XPATH_ENABLED) */
14317 #if defined(LIBXML_XPATH_ENABLED)
14319 libxml_xmlXPathRoundFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14320 xmlXPathParserContextPtr ctxt;
14321 PyObject *pyobj_ctxt;
14324 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathRoundFunction", &pyobj_ctxt, &nargs))
14326 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14328 xmlXPathRoundFunction(ctxt, nargs);
14329 Py_INCREF(Py_None);
14333 #endif /* defined(LIBXML_XPATH_ENABLED) */
14334 #if defined(LIBXML_XPATH_ENABLED)
14336 libxml_xmlXPathSetContextDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14337 xmlXPathContextPtr ctxt;
14338 PyObject *pyobj_ctxt;
14340 PyObject *pyobj_doc;
14342 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathSetContextDoc", &pyobj_ctxt, &pyobj_doc))
14344 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14345 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
14348 Py_INCREF(Py_None);
14352 #endif /* defined(LIBXML_XPATH_ENABLED) */
14353 #if defined(LIBXML_XPATH_ENABLED)
14355 libxml_xmlXPathSetContextNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14356 xmlXPathContextPtr ctxt;
14357 PyObject *pyobj_ctxt;
14359 PyObject *pyobj_node;
14361 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathSetContextNode", &pyobj_ctxt, &pyobj_node))
14363 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14364 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
14367 Py_INCREF(Py_None);
14371 #endif /* defined(LIBXML_XPATH_ENABLED) */
14372 #if defined(LIBXML_XPATH_ENABLED)
14374 libxml_xmlXPathStartsWithFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14375 xmlXPathParserContextPtr ctxt;
14376 PyObject *pyobj_ctxt;
14379 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathStartsWithFunction", &pyobj_ctxt, &nargs))
14381 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14383 xmlXPathStartsWithFunction(ctxt, nargs);
14384 Py_INCREF(Py_None);
14388 #endif /* defined(LIBXML_XPATH_ENABLED) */
14389 #if defined(LIBXML_XPATH_ENABLED)
14391 libxml_xmlXPathStringEvalNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14392 PyObject *py_retval;
14396 if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathStringEvalNumber", &str))
14399 c_retval = xmlXPathStringEvalNumber(str);
14400 py_retval = libxml_doubleWrap((double) c_retval);
14404 #endif /* defined(LIBXML_XPATH_ENABLED) */
14405 #if defined(LIBXML_XPATH_ENABLED)
14407 libxml_xmlXPathStringFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14408 xmlXPathParserContextPtr ctxt;
14409 PyObject *pyobj_ctxt;
14412 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathStringFunction", &pyobj_ctxt, &nargs))
14414 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14416 xmlXPathStringFunction(ctxt, nargs);
14417 Py_INCREF(Py_None);
14421 #endif /* defined(LIBXML_XPATH_ENABLED) */
14422 #if defined(LIBXML_XPATH_ENABLED)
14424 libxml_xmlXPathStringLengthFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14425 xmlXPathParserContextPtr ctxt;
14426 PyObject *pyobj_ctxt;
14429 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathStringLengthFunction", &pyobj_ctxt, &nargs))
14431 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14433 xmlXPathStringLengthFunction(ctxt, nargs);
14434 Py_INCREF(Py_None);
14438 #endif /* defined(LIBXML_XPATH_ENABLED) */
14439 #if defined(LIBXML_XPATH_ENABLED)
14441 libxml_xmlXPathSubValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14442 xmlXPathParserContextPtr ctxt;
14443 PyObject *pyobj_ctxt;
14445 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathSubValues", &pyobj_ctxt))
14447 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14449 xmlXPathSubValues(ctxt);
14450 Py_INCREF(Py_None);
14454 #endif /* defined(LIBXML_XPATH_ENABLED) */
14455 #if defined(LIBXML_XPATH_ENABLED)
14457 libxml_xmlXPathSubstringAfterFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14458 xmlXPathParserContextPtr ctxt;
14459 PyObject *pyobj_ctxt;
14462 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathSubstringAfterFunction", &pyobj_ctxt, &nargs))
14464 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14466 xmlXPathSubstringAfterFunction(ctxt, nargs);
14467 Py_INCREF(Py_None);
14471 #endif /* defined(LIBXML_XPATH_ENABLED) */
14472 #if defined(LIBXML_XPATH_ENABLED)
14474 libxml_xmlXPathSubstringBeforeFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14475 xmlXPathParserContextPtr ctxt;
14476 PyObject *pyobj_ctxt;
14479 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathSubstringBeforeFunction", &pyobj_ctxt, &nargs))
14481 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14483 xmlXPathSubstringBeforeFunction(ctxt, nargs);
14484 Py_INCREF(Py_None);
14488 #endif /* defined(LIBXML_XPATH_ENABLED) */
14489 #if defined(LIBXML_XPATH_ENABLED)
14491 libxml_xmlXPathSubstringFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14492 xmlXPathParserContextPtr ctxt;
14493 PyObject *pyobj_ctxt;
14496 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathSubstringFunction", &pyobj_ctxt, &nargs))
14498 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14500 xmlXPathSubstringFunction(ctxt, nargs);
14501 Py_INCREF(Py_None);
14505 #endif /* defined(LIBXML_XPATH_ENABLED) */
14506 #if defined(LIBXML_XPATH_ENABLED)
14508 libxml_xmlXPathSumFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14509 xmlXPathParserContextPtr ctxt;
14510 PyObject *pyobj_ctxt;
14513 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathSumFunction", &pyobj_ctxt, &nargs))
14515 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14517 xmlXPathSumFunction(ctxt, nargs);
14518 Py_INCREF(Py_None);
14522 #endif /* defined(LIBXML_XPATH_ENABLED) */
14523 #if defined(LIBXML_XPATH_ENABLED)
14525 libxml_xmlXPathTranslateFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14526 xmlXPathParserContextPtr ctxt;
14527 PyObject *pyobj_ctxt;
14530 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathTranslateFunction", &pyobj_ctxt, &nargs))
14532 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14534 xmlXPathTranslateFunction(ctxt, nargs);
14535 Py_INCREF(Py_None);
14539 #endif /* defined(LIBXML_XPATH_ENABLED) */
14540 #if defined(LIBXML_XPATH_ENABLED)
14542 libxml_xmlXPathTrueFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14543 xmlXPathParserContextPtr ctxt;
14544 PyObject *pyobj_ctxt;
14547 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathTrueFunction", &pyobj_ctxt, &nargs))
14549 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14551 xmlXPathTrueFunction(ctxt, nargs);
14552 Py_INCREF(Py_None);
14556 #endif /* defined(LIBXML_XPATH_ENABLED) */
14557 #if defined(LIBXML_XPATH_ENABLED)
14559 libxml_xmlXPathValueFlipSign(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14560 xmlXPathParserContextPtr ctxt;
14561 PyObject *pyobj_ctxt;
14563 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathValueFlipSign", &pyobj_ctxt))
14565 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14567 xmlXPathValueFlipSign(ctxt);
14568 Py_INCREF(Py_None);
14572 #endif /* defined(LIBXML_XPATH_ENABLED) */
14573 #if defined(LIBXML_XPATH_ENABLED)
14575 libxml_xmlXPathVariableLookup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14576 PyObject *py_retval;
14577 xmlXPathObjectPtr c_retval;
14578 xmlXPathContextPtr ctxt;
14579 PyObject *pyobj_ctxt;
14582 if (!PyArg_ParseTuple(args, (char *)"Oz:xmlXPathVariableLookup", &pyobj_ctxt, &name))
14584 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14586 c_retval = xmlXPathVariableLookup(ctxt, name);
14587 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
14591 #endif /* defined(LIBXML_XPATH_ENABLED) */
14592 #if defined(LIBXML_XPATH_ENABLED)
14594 libxml_xmlXPathVariableLookupNS(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14595 PyObject *py_retval;
14596 xmlXPathObjectPtr c_retval;
14597 xmlXPathContextPtr ctxt;
14598 PyObject *pyobj_ctxt;
14602 if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlXPathVariableLookupNS", &pyobj_ctxt, &name, &ns_uri))
14604 ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
14606 c_retval = xmlXPathVariableLookupNS(ctxt, name, ns_uri);
14607 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
14611 #endif /* defined(LIBXML_XPATH_ENABLED) */
14612 #if defined(LIBXML_XPATH_ENABLED)
14614 libxml_xmlXPatherror(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14615 xmlXPathParserContextPtr ctxt;
14616 PyObject *pyobj_ctxt;
14621 if (!PyArg_ParseTuple(args, (char *)"Ozii:xmlXPatherror", &pyobj_ctxt, &file, &line, &no))
14623 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14625 xmlXPatherror(ctxt, file, line, no);
14626 Py_INCREF(Py_None);
14630 #endif /* defined(LIBXML_XPATH_ENABLED) */
14631 #if defined(LIBXML_XPTR_ENABLED)
14633 libxml_xmlXPtrEval(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14634 PyObject *py_retval;
14635 xmlXPathObjectPtr c_retval;
14637 xmlXPathContextPtr ctx;
14638 PyObject *pyobj_ctx;
14640 if (!PyArg_ParseTuple(args, (char *)"zO:xmlXPtrEval", &str, &pyobj_ctx))
14642 ctx = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctx);
14644 c_retval = xmlXPtrEval(str, ctx);
14645 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
14649 #endif /* defined(LIBXML_XPTR_ENABLED) */
14650 #if defined(LIBXML_XPTR_ENABLED)
14652 libxml_xmlXPtrEvalRangePredicate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14653 xmlXPathParserContextPtr ctxt;
14654 PyObject *pyobj_ctxt;
14656 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPtrEvalRangePredicate", &pyobj_ctxt))
14658 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14660 xmlXPtrEvalRangePredicate(ctxt);
14661 Py_INCREF(Py_None);
14665 #endif /* defined(LIBXML_XPTR_ENABLED) */
14666 #if defined(LIBXML_XPTR_ENABLED)
14668 libxml_xmlXPtrNewCollapsedRange(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14669 PyObject *py_retval;
14670 xmlXPathObjectPtr c_retval;
14672 PyObject *pyobj_start;
14674 if (!PyArg_ParseTuple(args, (char *)"O:xmlXPtrNewCollapsedRange", &pyobj_start))
14676 start = (xmlNodePtr) PyxmlNode_Get(pyobj_start);
14678 c_retval = xmlXPtrNewCollapsedRange(start);
14679 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
14683 #endif /* defined(LIBXML_XPTR_ENABLED) */
14684 #if defined(LIBXML_XPTR_ENABLED)
14686 libxml_xmlXPtrNewContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14687 PyObject *py_retval;
14688 xmlXPathContextPtr c_retval;
14690 PyObject *pyobj_doc;
14692 PyObject *pyobj_here;
14694 PyObject *pyobj_origin;
14696 if (!PyArg_ParseTuple(args, (char *)"OOO:xmlXPtrNewContext", &pyobj_doc, &pyobj_here, &pyobj_origin))
14698 doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc);
14699 here = (xmlNodePtr) PyxmlNode_Get(pyobj_here);
14700 origin = (xmlNodePtr) PyxmlNode_Get(pyobj_origin);
14702 c_retval = xmlXPtrNewContext(doc, here, origin);
14703 py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval);
14707 #endif /* defined(LIBXML_XPTR_ENABLED) */
14708 #if defined(LIBXML_XPTR_ENABLED)
14710 libxml_xmlXPtrNewLocationSetNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14711 PyObject *py_retval;
14712 xmlXPathObjectPtr c_retval;
14714 PyObject *pyobj_start;
14716 PyObject *pyobj_end;
14718 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPtrNewLocationSetNodes", &pyobj_start, &pyobj_end))
14720 start = (xmlNodePtr) PyxmlNode_Get(pyobj_start);
14721 end = (xmlNodePtr) PyxmlNode_Get(pyobj_end);
14723 c_retval = xmlXPtrNewLocationSetNodes(start, end);
14724 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
14728 #endif /* defined(LIBXML_XPTR_ENABLED) */
14729 #if defined(LIBXML_XPTR_ENABLED)
14731 libxml_xmlXPtrNewRange(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14732 PyObject *py_retval;
14733 xmlXPathObjectPtr c_retval;
14735 PyObject *pyobj_start;
14738 PyObject *pyobj_end;
14741 if (!PyArg_ParseTuple(args, (char *)"OiOi:xmlXPtrNewRange", &pyobj_start, &startindex, &pyobj_end, &endindex))
14743 start = (xmlNodePtr) PyxmlNode_Get(pyobj_start);
14744 end = (xmlNodePtr) PyxmlNode_Get(pyobj_end);
14746 c_retval = xmlXPtrNewRange(start, startindex, end, endindex);
14747 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
14751 #endif /* defined(LIBXML_XPTR_ENABLED) */
14752 #if defined(LIBXML_XPTR_ENABLED)
14754 libxml_xmlXPtrNewRangeNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14755 PyObject *py_retval;
14756 xmlXPathObjectPtr c_retval;
14758 PyObject *pyobj_start;
14760 PyObject *pyobj_end;
14762 if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPtrNewRangeNodes", &pyobj_start, &pyobj_end))
14764 start = (xmlNodePtr) PyxmlNode_Get(pyobj_start);
14765 end = (xmlNodePtr) PyxmlNode_Get(pyobj_end);
14767 c_retval = xmlXPtrNewRangeNodes(start, end);
14768 py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval);
14772 #endif /* defined(LIBXML_XPTR_ENABLED) */
14773 #if defined(LIBXML_XPTR_ENABLED)
14775 libxml_xmlXPtrRangeToFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
14776 xmlXPathParserContextPtr ctxt;
14777 PyObject *pyobj_ctxt;
14780 if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPtrRangeToFunction", &pyobj_ctxt, &nargs))
14782 ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
14784 xmlXPtrRangeToFunction(ctxt, nargs);
14785 Py_INCREF(Py_None);
14789 #endif /* defined(LIBXML_XPTR_ENABLED) */