summaryrefslogtreecommitdiff
path: root/python/libxml_wrap.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix for compilation with python 2.6.8Petr Sumbera2013-05-031-2/+2
| | | | | Remap PyCapsule to PyCObject based on the macro being available instead of using the python version
* Fix python bindings with versions older than 2.7Daniel Veillard2013-04-021-0/+19
| | | | | Need fixing on the Capsule usage, the lack of PyBytes, lack of io module and the way to access exception details.
* Fix compilation on Python3Daniel Veillard2013-03-301-0/+9
| | | | | | | | | | | | | | | | while still compiling on recent Python2: - change the handling of files, tweak the generator, get the fd instead of the FILE *, dup it and fdopen based on mode, add a Release function on Python3 and call to flush from the generated python stubs - switch to using Capsules instead of CObjects - fix PyString to PyBytes - fix PyInt to PyLong - tweak the module registration to compile on both versions - drop PyInstance check for passed xmlNodes and instead check attributes presence Daniel
* Python binding for xmlRegisterInputCallbackAlexey Neyman2013-02-251-0/+2
| | | | | | | | | | | | It is possible to make xmlIO handle any protocol by means of xmlRegisterInputCallback(). However, that function is currently only available in C API. So, the natural solution seems to be implementing Python bindings for the xmlRegisterInputCallback. * python/generator.py: skip xmlPopInputCallbacks * python/libxml.c python/libxml.py python/libxml_wrap.h: implement the wrappers * python/tests/input_callback.py python/tests/Makefile.am: also add a test case
* fx compilation when configured without the reader should fix #513110Daniel Veillard2008-05-121-0/+4
| | | | | | | | | | * xmlschemas.c runtest.c testapi.c include/libxml/xmlreader.h python/types.c python/libxml_wrap.h python/libxml.c: fx compilation when configured without the reader should fix #513110 * doc/*: regenerated Daniel svn path=/trunk/; revision=3743
* Applied patch from Brent Hendricks adding support for late DTD validation.Daniel Veillard2004-11-101-0/+9
| | | | | | | | | * python/generator.py python/libxml.c python/libxml2class.txt python/libxml_wrap.h python/types.c: Applied patch from Brent Hendricks adding support for late DTD validation. * python/tests/Makefile.am python/tests/dtdvalid.py python/tests/test.dtd: integrated the provided regression test Daniel
* trying to remove some warning when compiling on Fedora Core 3 and 64bitsDaniel Veillard2004-08-221-0/+1
| | | | | | | | * xmllint.c xpath.c include/libxml/xpath.h include/libxml/xpathInternals.h python/libxml.c python/libxml_wrap.h: trying to remove some warning when compiling on Fedora Core 3 and 64bits Daniel
* Applied patch from Torkel Lyng to add Schemas support to the PythonDaniel Veillard2004-08-181-0/+30
| | | | | | | | | | * xmlschemas.c include/libxml/xmlschemas.h python/generator.py python/libxml.c python/libxml_wrap.h python/types.c python/tests/schema.py python/tests/Makefile.am: Applied patch from Torkel Lyng to add Schemas support to the Python bindings and extend the schemas error API, registered a new test. * doc/* elfgcchack.h: rebuilt to regenerate the bindings Daniel
* applied patch from Stephane Bidoul for structured error handling fromDaniel Veillard2004-01-061-0/+9
| | | | | | | | * python/libxml2-python-api.xml python/libxml_wrap.h python/types.c python/tests/Makefile.am python/tests/tstLastError.py: applied patch from Stephane Bidoul for structured error handling from python, and the associated test Daniel
* cleanup the output buffer support to at least get the basic to work fixesDaniel Veillard2003-12-041-2/+2
| | | | | | | | | | * python/generator.py python/libxml.c python/libxml_wrap.h: cleanup the output buffer support to at least get the basic to work * python/tests/outbuf.py python/tests/serialize.py: fixes and cleanup. * include/libxml/xmlwriter.h: cleanup Daniel
* fixed doc comment problems adding RelaxNG wrappers added a specific testDaniel Veillard2003-02-091-0/+31
| | | | | | | | | * xpath.c: fixed doc comment problems * python/generator.py python/libxml_wrap.h python/types.c: adding RelaxNG wrappers * python/tests/Makefile.am python/tests/relaxng.py: added a specific test of those early Python RelaxNG bindings Daniel
* comments cleanups use xmllint for doing the RelaxNG tests preparing 2.5.2Daniel Veillard2003-02-051-0/+1
| | | | | | | | | | | | | * HTMLparser.c tree.c xmlIO.c: comments cleanups * Makefile.am: use xmllint for doing the RelaxNG tests * configure.in: preparing 2.5.2 made schemas support default to on instead of off * relaxng.c: removed the verbosity * xmllint.c: added --relaxng option * python/generator.py python/libxml_wrap.h: prepared the integration of the new RelaxNG module and schemas * result/relaxng/*: less verbose output Daniel
* fixing #104096 to compile without regexps DanielDaniel Veillard2003-02-041-0/+4
| | | | | | * configure.in valid.c xmlreader.c python/libxml_wrap.h python/types.c: fixing #104096 to compile without regexps Daniel
* patch from Stéphane Bidoul for better per context error message APIsDaniel Veillard2003-01-201-14/+9
| | | | | | | | | | * xmlreader.c python/drv_libxml2.py python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h python/types.c: patch from Stéphane Bidoul for better per context error message APIs * python/tests/ctxterror.py python/tests/readererr.py: update of the tests Daniel
* applied and fixed a patch from Stephane Bibould to provide per parserDaniel Veillard2003-01-141-0/+14
| | | | | | | | | | * python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h python/types.c: applied and fixed a patch from Stephane Bibould to provide per parser error handlers at the Python level. * python/tests/Makefile.am python/tests/ctxterror.py: added a regression test for it. Daniel
* trying to fix #102037 DanielDaniel Veillard2002-12-271-3/+2
| | | | | * python/libxml_wrap.h: trying to fix #102037 Daniel
* added the close and getattribute methods of XmlTextReader. added theDaniel Veillard2002-12-141-0/+29
| | | | | | | | | | | * xmlreader.c doc/libxml2-api.xml: added the close and getattribute methods of XmlTextReader. * python/generator.py python/libxml_wrap.h python/types.c python/libxml2class.txt: added the reader to the Python bindings * python/tests/Makefile.am python/tests/reader.py: added a specific test for the Python bindings of the Reader APIs * parser.c: small cleanup. Daniel
* improving some documentation comments found and fixed a mem leak withDaniel Veillard2002-09-251-1/+13
| | | | | | | | | | | | | * tree.c: improving some documentation comments * xmlregexp.c: found and fixed a mem leak with python regression tests * doc/*: rebuilt the doc and the API XML file including the xmlregexp.h xmlautomata.h and xmlunicode.h headers * python/generator.py python/libxml2class.txt python/libxml_wrap.h python/types.c: added access to the XML Schemas regexps from python * python/tests/Makefile.am python/tests/regexp.py: added a simple regexp bindings test Daniel
* stupid bug found by mattam@netcourrier.com DanielDaniel Veillard2002-09-171-1/+1
| | | | | * python/libxml_wrap.h: stupid bug found by mattam@netcourrier.com Daniel
* updated the python bindings, added code for easier File I/O, and theDaniel Veillard2002-09-121-0/+18
| | | | | | | | | | | | | * python/generator.py python/libxml.c python/libxml.py python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/types.c: updated the python bindings, added code for easier File I/O, and the ability to define a resolver from Python fixing bug #91635 * python/tests/Makefile.am python/tests/inbuf.py python/tests/outbuf.py python/tests/pushSAXhtml.py python/tests/resolver.py python/tests/serialize.py: updated and augmented the set of Python tests. Daniel
* Added wrapper for the xmlURIPtr type, provided accessors, fixed theDaniel Veillard2002-02-231-0/+11
| | | | | | | | | | * python/generator.py python/libxml.c python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/types.c: Added wrapper for the xmlURIPtr type, provided accessors, fixed the accessor generator for strings * python/tests/Makefile.am python/tests/tstURI.py: added a specific regression test. Daniel
* Changed to the MIT Licence updated the doc accordingly preparing 2.4.14Daniel Veillard2002-02-081-0/+2
| | | | | | | | | | | | | | | | | * Copyright Makefile.am README configure.in libxml.spec.in: Changed to the MIT Licence * doc/FAQ.html doc/catalog.html doc/intro.html doc/xml.html doc/xmlio.html: updated the doc accordingly * include/libxml/xmlwin32version.h configure.in: preparing 2.4.14 release * python/generator.py python/libxml.c python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/types.c: fixed the const xmlChar * wrapper and generator, XPath extension functions now use the context as first argument * python/tests/tstxpath.py python/tests/xpath.py python/tests/xpathext.py: Updated the tests accordingly * tree.c: fixed bug #70067 Daniel
* cleanup always use stdout if output is NULL don't close filedescriptorsDaniel Veillard2002-02-071-0/+21
| | | | | | | | | | | | * Makefile.am: cleanup * debugXML.c: always use stdout if output is NULL * xmlIO.c: don't close filedescriptors passed to outputBuffers * python/Makefile.am python/generator.py python/libxml2class.txt python/libxml_wrap.h python/types.c: augmented the number of bindings handling FILE * and XPath contexts * python/tests/Makefile.am: avoid a stupid problem due to the use of TEST. Daniel
* hardened the addChild function added accessors needed for xmlNode, a bitDaniel Veillard2002-02-041-3/+8
| | | | | | | | | | | * tree.c: hardened the addChild function * python/generator.py python/libxml.c python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/TODO: added accessors needed for xmlNode, a bit more testing and extension of interfaces * python/tests/Makefile.am python/tests/build.py: added a test build from scratch/save/load/check Daniel
* change a small bit in the way valididy error messages get initializedDaniel Veillard2002-02-031-0/+1
| | | | | | | | | | | * parserInternals.c: change a small bit in the way valididy error messages get initialized * python/TODO python/libxml.c python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/types.c: added some memory debugging to track leaks at the libxml2 level * python/tests/*.py: changed all tests to check for leaks, there is just one left in XPath extension registrations. daniel
* cleanup added class for parser context, added first cut for push modeDaniel Veillard2002-02-031-0/+9
| | | | | | | | | | | | * python/Makefile.am python/types.c: cleanup * python/libxml.c python/libxml.py python/libxml_wrap.h python/generator.py python/libxml2-python-api.xml python/libxml2class.txt: added class for parser context, added first cut for push mode support. Added a framework to generate accessors functions. * python/tests/Makefile.am python/tests/push.py: added a push test Daniel
* minor optimization more work on the python bindings, they now supportDaniel Veillard2002-01-311-2/+16
| | | | | | | | * xpath.c: minor optimization * python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h: more work on the python bindings, they now support XPath and there is no evident leak Daniel
* more work on the python bindings. DanielDaniel Veillard2002-01-301-0/+12
| | | | | | * python/generator.py python/libxml.c python/libxml_wrap.h: more work on the python bindings. Daniel
* commited early version of a python binding for private use only ATM DanielDaniel Veillard2002-01-301-0/+18
* python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h: commited early version of a python binding for private use only ATM Daniel