[XML-SIG] Re: PyXML, 4suite, libxml2... what should I choose?
Paul Boddie
paul at boddie.org.uk
Mon Nov 29 22:06:16 CET 2004
Frans Englich wrote:
>
> Currently, I pipe out my structures to libxml2/libxslt's xmllint/xsltproc
> for doing validation, and XSLT processing. libxml2 is capable, but the
> solution is ugly, and slow(de-serialization/serialization). In addition, I
> lack XPath functionality. I have no intentions to skip Python's XML
> structures, and use for example libxml2's.
Although it was written to meet my own simple needs, I suggest you take a look
at libxml2dom:
http://www.python.org/pypi?:action=display&name=libxml2dom
It should be possible to feed DOM nodes from libxml2dom into PyXML's XPath
implementation, although I suppose I ought to wrap the libxml2 XPath
functionality itself in order to be able to drop that particular dependency
on PyXML. I did hear something about 4Suite and XPath convenience methods on
nodes, and that did make me wonder if some kind of standard might emerge that
I could implement in libxml2dom.
Anyway, I've been using libxml2dom with libxslt without unnecessary
serialisation, so this may be what you're looking for. If you and others want
to improve the software, I may establish a SourceForge project for it and let
development follow that course.
Paul
More information about the XML-SIG
mailing list