Re: minidom: Genius or just plain bad?
"Martin v. Löwis" <[email protected]> Sun, 31 May 2009 00:30:29 +0200
| Newsgroups | gmane.comp.python.xml |
|---|---|
| Message-ID | <[email protected]> |
Philipp Hagemeister wrote: > I was puzzled when I tripped over the following: > >>>> 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') > '' # wtf? Why do you think this is incorrect? The root element has no attribute named 'a' in the NS namespace. Regards, Martin _______________________________________________ XML-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/xml-sig