Problem parsing namespaces with xml.dom.minidom
Fredrik Lundh
fredrik at pythonware.com
Tue Jan 18 05:53:57 EST 2005
Mike McGavin wrote:
>> is the DOM API an absolute requirement?
>
> It wouldn't need to conform to the official specifications of the DOM API, but I guess I'm after
> some comparable functionality.
>
> In particular, I need to be able to parse a namespace-using XML document into some kind of node
> tree, and then being able to query the tree to select elements based on their namespace and local
> tag names, and so on. I don't mind if the methods provided don't conform exactly to DOM
> specifications.
sounds like this might be exactly what you need:
http://effbot.org/zone/element-index.htm
(it's also the fastest and most memory-efficient Python-only parser you
can get, but I suppose that's not a problem ;-)
</F>
More information about the Python-list
mailing list