|
20c60886
|
2020-03-08T17:19:42
|
|
Fix typos
Resolves #133.
|
|
b3e488b0
|
2014-09-27T21:56:03
|
|
Add methods for python3 iterator
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.
|
|
bf4a8f0e
|
2013-04-02T10:27:57
|
|
Fix python bindings with versions older than 2.7
Need fixing on the Capsule usage, the lack of PyBytes,
lack of io module and the way to access exception details.
|
|
87f3287d
|
2013-04-01T13:33:42
|
|
Fix tree iterators broken by 2to3 script
|
|
6f184651
|
2013-03-29T15:17:40
|
|
A few more fixes for python 3 affecting libxml2.py
need a few changes to the generator and the libxml.py stub
|
|
3cb1ae26
|
2013-03-27T22:40:54
|
|
First pass at starting porting to python3
|
|
48da90bc
|
2013-02-25T15:54:25
|
|
Python binding for xmlRegisterInputCallback
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
|
|
e32ceb93
|
2013-02-20T18:28:25
|
|
Python bindings: DOM casts everything to xmlNode
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.
|
|
147687f1
|
2009-08-24T14:08:43
|
|
544910 typo: "renciliateNs"
* python/libxml.py: typo on a comment
|
|
7a12e57b
|
2007-02-16T17:11:09
|
|
fixed tab problem with patch from Andreas Hanke (bug #408626)
* python/libxml.py: fixed tab problem with patch from Andreas Hanke (bug #408626)
svn path=/trunk/; revision=3586
|
|
3b6acc93
|
2006-12-14T15:49:41
|
|
apparently id() sometimes generate negative values and %X outputs -XXXX
* python/generator.py python/libxml.py: apparently id() sometimes
generate negative values and %X outputs -XXXX :-(
Daniel
|
|
46459066
|
2006-10-10T08:40:04
|
|
applied patch from Ross Reedstrom, Brian West and Stefan Anca to add
* python/libxml.py python/types.c: applied patch from Ross Reedstrom,
Brian West and Stefan Anca to add XPointer suport to the Python bindings
Daniel
|
|
40cca61f
|
2006-06-26T18:25:40
|
|
Added code submitted by Andreas Pakulat to provide node equality,
* python/libxml.c, python/libxml.py, python/tests/compareNodes.py,
python/tests/Makefile.am:
Added code submitted by Andreas Pakulat to provide node
equality, inequality and hash functions, plus a single
test program to check the functions (bugs 345779 + 345961).
|
|
745648bc
|
2006-02-27T09:59:30
|
|
remove a tab, as pointed out on IRC Daniel
* python/libxml2.py: remove a tab, as pointed out on IRC
Daniel
|
|
eaccdc65
|
2005-10-27T14:10:52
|
|
remove warnings to stdout patch from Nic Ferrier Daniel
* python/libxml.py: remove warnings to stdout patch from Nic Ferrier
Daniel
|
|
f9cf6f5a
|
2005-04-12T01:02:29
|
|
applied patch from Brent Hendricks adding namespace removal at the python
* python/libxml.c python/libxml.py: applied patch from Brent Hendricks
adding namespace removal at the python level #300209
* python/tests/Makefile.am python/tests/nsdel.py: added the regression
test
Daniel
|
|
0e460da3
|
2005-03-30T22:47:10
|
|
another patch from Brent Hendricks to add new handlers with the various
* python/generator.py python/libxml.py: another patch from Brent
Hendricks to add new handlers with the various validity contexts
* python/tests/Makefile.am python/tests/validDTD.py
python/tests/validRNG.py python/tests/validSchemas.py: also
added the regression tests he provided
Daniel
|
|
1cd4dae1
|
2005-01-15T17:45:28
|
|
make __str__ call serialize() on nodes, c.f. bug #157872 Daniel
* python/libxml.py: make __str__ call serialize() on nodes, c.f.
bug #157872
Daniel
|
|
a81355ef
|
2004-09-28T11:08:27
|
|
applied patch from Malcolm Tredinnick fixing python exception hierarchy
* python/libxml.py: applied patch from Malcolm Tredinnick fixing
python exception hierarchy #139824
Daniel
|
|
1f8658a7
|
2004-08-14T21:46:31
|
|
Dodji pointed out a bug in xmlGetNodePath() applied patch from Albert Chin
* tree.c: Dodji pointed out a bug in xmlGetNodePath()
* xmlcatalog.c: applied patch from Albert Chin to add a
--no-super-update option to xmlcatalog see #145461
and another patch also from Albert Chin to not crash
on -sgml --del without args see #145462
* Makefile.am: applied another patch from Albert Chin to
fix a problem with diff on Solaris #145511
* xmlstring.c: fix xmlCheckUTF8() according to the suggestion
in bug #148115
* python/libxml.py: apply fix from Marc-Antoine Parent about
the errors in libxml(2).py on the node wrapper #135547
Daniel
|
|
37e63946
|
2004-07-12T16:27:37
|
|
ran 'expand' on the file to get rid of mixture of tabs and spaces (bug
* python/libxml.py: ran 'expand' on the file to get rid of mixture
of tabs and spaces (bug 147424)
|
|
f93a8660
|
2004-07-01T12:56:30
|
|
applied patch from Stéphane Bidoul to fix some Python bindings
* python/libxml.c python/generator.py python/libxml.py
python/libxml2-python-api.xml python/libxml2class.txt:
applied patch from Stéphane Bidoul to fix some Python bindings
initialization, then had to change the parserCleanup()
to handle memory released there.
* xmlmemory.c: added more debugging comments.
Daniel
|
|
d5e198ad
|
2004-03-09T09:03:28
|
|
applied patch from Anthony Carrico providing Python bindings for the
* python/libxml.c python/libxml.py: applied patch from Anthony Carrico
providing Python bindings for the Canonicalization C14N support.
Daniel
|
|
87ab1c12
|
2003-12-21T13:01:56
|
|
fixed bug #129489, propagation of parsing flags in entities. improved the
* parser.c: fixed bug #129489, propagation of parsing flags
in entities.
* parser.c xmlreader.c: improved the comments of parsing options
Daniel
|
|
f88d8cf9
|
2003-12-08T10:25:02
|
|
tried to fix the problems reported in bug #126735 fixed again some problem
* python/libxml.py: tried to fix the problems reported in
bug #126735
* xpath.c SAX2.c error.c parser.c valid.c include/libxml/xmlerror.h:
fixed again some problem trying to use the structured error
handlers, c.f. bug #126735
* result/VC/ElementValid: tiny change due to the fix
Daniel
|
|
85bb5b08
|
2003-12-04T14:12:05
|
|
oops forgot to modify/commit the new code. Daniel
* python/libxml.py: oops forgot to modify/commit the new code.
Daniel
|
|
1d75c8a8
|
2003-10-27T13:48:16
|
|
fixed warning message from IRIX (bug 125182) removed tabs, replaced with
* xmllint.c: fixed warning message from IRIX (bug 125182)
* python/libxml.py: removed tabs, replaced with spaces
(bug 125572)
|
|
5439624b
|
2003-04-23T07:36:50
|
|
applied patch from Brent M Hendricks adding binding for xmlCatalogAddLocal
* python/libxml.c python/libxml.py: applied patch from
Brent M Hendricks adding binding for xmlCatalogAddLocal
Daniel
|
|
417be3ae
|
2003-01-20T21:26:34
|
|
patch from Stéphane Bidoul for better per context error message APIs
* 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
|
|
26f70269
|
2003-01-16T22:45:08
|
|
applied a patch from Stéphane Bidoul to allow per XMLtextReader error and
* xmlreader.c include/libxml/xmlreader.h python/generator.py
python/libxml.c python/libxml.py win32/libxml2.def.src: applied
a patch from Stéphane Bidoul to allow per XMLtextReader error
and warning handling
* python/tests/Makefile.am python/tests/readererr.py: adding the
specific regression test
Daniel
|
|
e6227e05
|
2003-01-14T11:42:39
|
|
applied and fixed a patch from Stephane Bibould to provide per parser
* 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
|
|
3e20a292
|
2003-01-10T13:14:40
|
|
fixed bug #102181 by applying the suggested change and fixing the
* python/libxml.py python/libxml.c python/libxml2-python-api.xml:
fixed bug #102181 by applying the suggested change and fixing
the generation/registration problem.
Daniel
|
|
51a447a5
|
2003-01-04T19:42:46
|
|
integrated the Python 2.2 optimizations from Hannu Krosing, while
* python/libxml.py: integrated the Python 2.2 optimizations
from Hannu Krosing, while maintaining compatibility with
1.5 and 2.1
Daniel
|
|
e59494fa
|
2003-01-04T16:35:29
|
|
a bit of cleanup small fix more work on the XmlTextReader tutorial a few
* xmllint.c: a bit of cleanup
* xmlreader.c: small fix
* doc/xmlreader.html: more work on the XmlTextReader tutorial
* python/libxml.py: a few fixes pointed out by Hannu Krosing
Daniel
|
|
e18fc185
|
2002-12-28T22:56:33
|
|
extended the XmlTextReader API a bit, addding accessors for the current
* xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml:
extended the XmlTextReader API a bit, addding accessors for
the current doc and node, and an entity substitution mode for
the parser.
* python/libxml.py python/libxml2class.txt: related updates
* python/tests/Makefile.am python/tests/reader.py
python/tests/reader2.py python/tests/reader3.py: updated a bit
the old tests and added a new one to test the entities handling
Daniel
|
|
f25b4cab
|
2002-12-27T15:18:35
|
|
added a few predefined xmlTextReader parser configuration values. Daniel
* python/libxml.py: added a few predefined xmlTextReader parser
configuration values.
Daniel
|
|
c6d4a933
|
2002-09-12T15:00:57
|
|
updated the python bindings, added code for easier File I/O, and the
* 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
|
|
12171c4d
|
2002-05-29T14:43:10
|
|
Fixed serialize and saveTo comment, Daniel
|
|
f742d341
|
2002-03-07T00:05:35
|
|
fixed xmlReconciliateNs(), added a Python test/example for inter-document
* tree.c python/tests/Makefile.am python/tests/cutnpaste.py:
fixed xmlReconciliateNs(), added a Python test/example for
inter-document cut'n paste
* python/libxml.py: fixed node.doc on document nodes and added
xpathEval() onto node objects
Daniel
|
|
1e77438d
|
2002-03-06T17:35:40
|
|
fix bug #72490 added methods serialize() and saveTo() to all node
* tree.c: fix bug #72490
* python/libxml.c python/libxml.py: added methods serialize()
and saveTo() to all node elements.
Daniel
|
|
8d24cc18
|
2002-03-05T15:41:29
|
|
make sure SAX endDocument is always called as this could result in a
* parser.c: make sure SAX endDocument is always called as
this could result in a Python memory leak otherwise (it's
used to decrement ref-counting)
* python/generator.py python/libxml.c python/libxml.py
python/libxml2-python-api.xml python/libxml2class.txt
python/tests/error.py python/tests/xpath.py: implemented
the suggestions made by Gary Benson and extended the tests
to match it.
Daniel
|
|
797a565a
|
2002-02-12T13:46:21
|
|
couple of bug fixes Daniel
* python/libxml.c: couple of bug fixes
Daniel
|
|
01a6d417
|
2002-02-11T18:42:20
|
|
removed tabs and used spaces. Daniel
* python/*.py: removed tabs and used spaces.
Daniel
|
|
5e5c2d0a
|
2002-02-09T18:03:01
|
|
Justin Fletcher found some parts of the code needing cleanup Fixed the
* parserInternals.c valid.c: Justin Fletcher found some parts
of the code needing cleanup
* libxml.spec.in python/Makefile.am python/generator.py
python/libxml.c python/libxml.py: Fixed the python Makefiles
corrected a bug showing up on ia64, changed the name of the
python internal module too
Daniel
|
|
3ce5257b
|
2002-02-03T15:08:05
|
|
cleanup added class for parser context, added first cut for push mode
* 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
|
|
cfb05462
|
2002-02-02T23:18:22
|
|
fixed a small bug a bit of cleanup. Daniel
* python/Makefile.am python/TODO python/libxml.py: fixed a small
bug a bit of cleanup.
Daniel
|
|
7fd7a94a
|
2002-02-02T12:19:46
|
|
fixed a stupid bug when renaming a function Daniel
* python/libxml.c python/libxml.py: fixed a stupid bug when renaming
a function
Daniel
|
|
a7340c83
|
2002-02-01T17:56:45
|
|
more work, now able to extend the XPath interpreter with functions written
* python/Makefile.am python/generator.py python/libxml.c
python/libxml.py: more work, now able to extend the
XPath interpreter with functions written in python.
Daniel
|
|
1971ee26
|
2002-01-31T20:29:19
|
|
minor optimization more work on the python bindings, they now support
* 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
|
|
36ed5290
|
2002-01-30T23:49:06
|
|
more work on the python bindings generator. Daniel
* python/generator.py python/libxml.c python/libxml.py:
more work on the python bindings generator.
Daniel
|
|
d2897fde
|
2002-01-30T16:37:32
|
|
commited early version of a python binding for private use only ATM Daniel
* 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
|