Martin v. Löwis wrote: >>>>> NS = 'http://phihag.de/2009/test/python/ns' >>>>> s = '<rootelem a="val" xmlns="' + NS + '" />' >>>>> import xml.dom.minidom >>>>> doc = xml.dom.minidom.parseString(s) >>>>> doc.documentElement.getAttributeNS(NS, 'a') > > Why do you think this is incorrect? The root element > has no attribute named 'a' in the NS namespace.
Oops, my bad. You are perfectly right, and this part of my argument is moot. http://www.rpbourret.com/xml/NamespaceMyths.htm#myth4 refutes my misconception in-depth. minidom's code is still yucky though. Cheers, Philipp
signature.asc
Description: OpenPGP digital signature
_______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig