| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Resolves #133.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Need fixing on the Capsule usage, the lack of PyBytes,
lack of io module and the way to access exception details.
|
| |
|
|
|
|
| |
need a few changes to the generator and the libxml.py stub
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
* python/libxml.py: typo on a comment
|
|
|
|
|
|
| |
* python/libxml.py: fixed tab problem with patch from Andreas Hanke (bug #408626)
svn path=/trunk/; revision=3586
|
|
|
|
|
|
| |
* python/generator.py python/libxml.py: apparently id() sometimes
generate negative values and %X outputs -XXXX :-(
Daniel
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* 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).
|
|
|
|
|
| |
* python/libxml2.py: remove a tab, as pointed out on IRC
Daniel
|
|
|
|
|
| |
* python/libxml.py: remove warnings to stdout patch from Nic Ferrier
Daniel
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* python/libxml.py: make __str__ call serialize() on nodes, c.f.
bug #157872
Daniel
|
|
|
|
|
|
| |
* python/libxml.py: applied patch from Malcolm Tredinnick fixing
python exception hierarchy #139824
Daniel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
* python/libxml.py: ran 'expand' on the file to get rid of mixture
of tabs and spaces (bug 147424)
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* python/libxml.c python/libxml.py: applied patch from Anthony Carrico
providing Python bindings for the Canonicalization C14N support.
Daniel
|
|
|
|
|
|
|
| |
* parser.c: fixed bug #129489, propagation of parsing flags
in entities.
* parser.c xmlreader.c: improved the comments of parsing options
Daniel
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
* python/libxml.py: oops forgot to modify/commit the new code.
Daniel
|
|
|
|
|
|
| |
* xmllint.c: fixed warning message from IRIX (bug 125182)
* python/libxml.py: removed tabs, replaced with spaces
(bug 125572)
|
|
|
|
|
|
| |
* python/libxml.c python/libxml.py: applied patch from
Brent M Hendricks adding binding for xmlCatalogAddLocal
Daniel
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* python/libxml.py: integrated the Python 2.2 optimizations
from Hannu Krosing, while maintaining compatibility with
1.5 and 2.1
Daniel
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* python/libxml.py: added a few predefined xmlTextReader parser
configuration values.
Daniel
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* tree.c: fix bug #72490
* python/libxml.c python/libxml.py: added methods serialize()
and saveTo() to all node elements.
Daniel
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
* python/libxml.c: couple of bug fixes
Daniel
|
|
|
|
|
| |
* python/*.py: removed tabs and used spaces.
Daniel
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* python/Makefile.am python/TODO python/libxml.py: fixed a small
bug a bit of cleanup.
Daniel
|
|
|
|
|
|
| |
* python/libxml.c python/libxml.py: fixed a stupid bug when renaming
a function
Daniel
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* python/generator.py python/libxml.c python/libxml.py:
more work on the python bindings generator.
Daniel
|