- 21 Oct, 2019 1 commit
-
-
Nick Wellnhofer authored
Closes #108.
-
- 30 Sep, 2019 1 commit
-
-
Jared Yanovich authored
Closes #109.
-
- 26 Sep, 2019 1 commit
-
-
Nick Wellnhofer authored
Closes #107.
-
- 06 Jan, 2019 1 commit
-
-
Nick Wellnhofer authored
- Correct linker flags for MinGW-w64 - Adjust PATH to find libxml2.dll when running tests
-
- 05 Mar, 2018 1 commit
-
-
Patrick Welche authored
_PyVerify_fd disappeared from python with: https://hg.python.org/cpython/rev/e88e2049b793 https://bugzilla.gnome.org/show_bug.cgi?id=776815
-
- 07 Oct, 2017 1 commit
-
-
Nick Wellnhofer authored
-
- 06 Oct, 2017 1 commit
-
-
Daniel Veillard authored
* configure.ac doc/xml.html doc/news.html: updated for release
-
- 04 Sep, 2017 1 commit
-
-
Daniel Veillard authored
* configure.ac, doc/xslt.html: updated for the release * doc/*, python/setup.py, testapi.c: regenerated
-
- 27 Jul, 2017 1 commit
-
-
Patrick Monnerat authored
OS/400 version V5R3 is not supported by IBM anymore. In addition, the iSeries system I have here for development has been changed and the new system is not able to compile for an OS version lower than V6R1. Thus I made some updates to the libxml2 os400 scripts accordingly: - Oldest supported OS version is now V6R1. - Adjust ILE/RPG wrappers comments. - Update copyright year range. - Do not log compiler informational messages.
-
- 01 Jun, 2017 1 commit
-
-
Nick Wellnhofer authored
-
- 09 May, 2016 1 commit
-
-
Daniel Veillard authored
commit c71f9305 added __XML_EXTERNC cpp construct which not understood by apibuild, leading to make dist failures, ask to ignore that construct.
-
- 15 Apr, 2016 1 commit
-
-
Jan Pokorný authored
Signed-off-by:
Jan Pokorný <jpokorny@redhat.com>
-
- 11 Mar, 2016 1 commit
-
-
Michael Stahl authored
... so stop decoding these, which only results in "TypeError: 'str' does not support the buffer interface".
-
- 20 Nov, 2015 1 commit
-
-
Daniel Veillard authored
* configure.ac: updated * doc/*: regenerated
-
- 16 Oct, 2014 2 commits
-
-
Daniel Veillard authored
-
Roumen Petrov authored
-
- 13 Oct, 2014 1 commit
-
-
Daniel Veillard authored
the doc methode for xmlDocGetRootElement wasn't generated anymore
-
- 06 Oct, 2014 1 commit
-
-
John Beck authored
For https://bugzilla.gnome.org/show_bug.cgi?id=734017 Solaris has had libxml2 version 2.9.1 for a while, with Python versions 2.6 and 2.7. While preparing to also build a module for Python 3.4, we ran into an issue with the test case sync.py failing. The failure involved parsing a string that included a Python dictionary, then complaining when the order of the parsed result did not match the original order. But Python dictionaries are unordered by definition; see section 5.5 of https://docs.python.org/2/tutorial/datastructures.html . For whatever reason, Python 2.6 and 2.7 always happened to report the pair of values back in their original order, but with Python 3.4 the order is random. The attached patch allows for either order; it also fixes a typo that was repeated several times thanks to the magic of copy & paste.
-
- 03 Oct, 2014 1 commit
-
-
Ron Angeles authored
xmlCoreDepthFirstItertor and xmlCoreBreadthFirstItertr only implement a python2-compatible iterator interface. The next() method has been changed to __next__(). An alias has been defined to keep python2 compatibility.
-
- 02 Oct, 2013 1 commit
-
-
Daniel Veillard authored
Patrick Welche <prlw1@cam.ac.uk> raised this issue
-
- 12 Jul, 2013 1 commit
-
-
Arfrever Frehtes Taifersar Arahesis authored
-
- 11 Jul, 2013 1 commit
-
-
- 03 Jun, 2013 1 commit
-
-
Armin K authored
-
- 03 May, 2013 1 commit
-
-
Petr Sumbera authored
Remap PyCapsule to PyCObject based on the macro being available instead of using the python version
-
- 02 May, 2013 1 commit
-
-
dcb authored
pointed out by cppcheck
-
- 19 Apr, 2013 2 commits
-
-
Daniel Veillard authored
* configure.in: bumped version * doc/*: updated the symbols file and regenerated
-
Daniel Veillard authored
Showing up apparently in Debian BTS distro https://bugzilla.gnome.org/show_bug.cgi?id=685515
-
- 02 Apr, 2013 1 commit
-
-
Daniel Veillard authored
Need fixing on the Capsule usage, the lack of PyBytes, lack of io module and the way to access exception details.
-
- 01 Apr, 2013 1 commit
-
-
Daniel Veillard authored
-
- 30 Mar, 2013 5 commits
-
-
Daniel Veillard authored
-
Daniel Veillard authored
need a few changes to the generator and the libxml.py stub
-
Daniel Veillard authored
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
-
Daniel Veillard authored
-
Daniel Veillard authored
-
- 27 Mar, 2013 1 commit
-
-
Shaun McCance authored
-
- 27 Feb, 2013 1 commit
-
-
Alexey Neyman authored
Just make it silent if there is no error
-
- 25 Feb, 2013 2 commits
-
-
Alexey Neyman authored
1. Setting entity loader does not increment the refcount on the Python object passed in. This works only if the object is not deleted. For example, the following code results in segmentation fault in Python interpreter when attempting to process any document: [[[ def register_entity_loader(): def entity_loader(URL, ID, ctxt): ... libxml2.setEntityLoader(entity_loader register_entity_loader() ]]] 2. setEntityLoader() does not verify if the passed object is callable. If it is not, current implementation attempts to call it anyway and failing that, silently moves on to default entity loader. Attached patch makes setEntityLoader raise ValueError exception if non-callable object is passed. 3. In debug mode, pythonExternalEntityLoader() outputs the result object to stderr, while the messages before and after the object (description + newline) go to stdout. Attached patch makes them all go to stdout.
-
Alexey Neyman authored
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
-
- 21 Feb, 2013 1 commit
-
-
Alexey Neyman authored
I noticed another issue with Python bindings of libxml: the access methods do not cast the pointers to specific classes such as xmlDtd, xmlEntityDecl, etc. For example, with the following document: <?xml version="1.0"?> <!DOCTYPE root [<!ELEMENT root EMPTY>]> <root/> the following script: import libxml2 doc = libxml2.readFile("c.xml", None, libxml2.XML_PARSE_DTDLOAD) print repr(doc.children) prints: <xmlNode (root) object at 0xb74963ec> With properly cast nodes, it outputs the following: <xmlDtd (root) object at 0xb746352c> The latter object (xmlDtd) enables one to use DTD-specific methods such as debugDumpDTD(), copyDTD(), and so on.
-
- 11 Sep, 2012 1 commit
-
-
Daniel Veillard authored
Remove all space before tabs and space and tabs at end of lines.
-