[XML-SIG] PyXML for py 2.5

Stefan Behnel stefan_ml at behnel.de
Sun Feb 24 16:05:39 CET 2008


Hi,

Martin v. Löwis wrote:
> Implementation of specifications is another reason. XSLT2, XPath2,
> XQuery?

There definitely isn't a "standard" solution, but it's not true that there is
nothing, either.

http://www.w3.org/XML/Query/#implementations
http://behnel.de/cgi-bin/weblog_basic/index.php?p=12


> Mapping of Schema definitions to Python classes?

A combination of lxml.objectify and schema validation is close enough to that,
IMHO, but not a bit less powerful, as it's C-implemented and completely
runtime configurable in Python code at basically any granularity.


> XML 1.1?

Honestly - what for?


> XML Encryption and Signature?

Should be easy to wrap libxmlsec if you need it.

http://www.aleksey.com/xmlsec/


> XML Base?

Supported by libxml2.


> Catalogs?

Supported by libxml2.


> Sure, if your processing needs are simple, the Python implementation
> will be simple, and perhaps also reasonably performant. However,
> in an application that is all about XML processing, chances are high
> that you need a functionality that is not available in the XML library
> of your choice, but would be available in Java.

If you start with ElementTree and find that you need a feature that isn't
supported there, chances are high that you will either find it in lxml or that
it would be easy to add to it if you really feel like needing it.

Stefan



More information about the XML-SIG mailing list