Problem parsing namespaces with xml.dom.minidom
fredrik at pythonware.com
Tue Jan 18 11:53:57 CET 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
sounds like this might be exactly what you need:
(it's also the fastest and most memory-efficient Python-only parser you
can get, but I suppose that's not a problem ;-)
More information about the Python-list