[XML-SIG] libxml python bindings and other python DOM's

Daniel Veillard veillard at redhat.com
Fri Jul 25 11:57:35 EDT 2003

On Fri, Jul 25, 2003 at 01:15:43PM +0200, paul.boddie at ementor.no wrote:
> After seeing how fast libxml2 was, I gave it some consideration - it isn't
> that hard to write some elementary DOM wrapper classes, after all. However,
> for my purposes I rapidly discovered that libxml2's handling of namespaces
> was somewhat different to minidom/cDomlette, and whilst it could be me who

  libxml2 tree support only generate nodes for namespace declarations.
It does not generate equivalent attribute node. When an attribute or an
element uses a namespace there is a reference to the associated namespace
declaration. This is more memory efficient, the drawback is that 
to create a namespaced node you need to have a reference to the
namespace declaration node handy. This makes pure DOM implementation
a bit more complex than a pure straighforward libxml2 API call.


Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

More information about the XML-SIG mailing list