Message322860
The below script prints
http://www.w3.org/2000/xmlns/
aa:aa
It should print
None
aa:aa
because xmlns:z is NOT an attribute of xmlns namespace.
~~~
import xml.dom.minidom
x = xml.dom.minidom.parseString("<x xmlns:z='aa:aa' z:q='1'/>")
for i in x.documentElement.attributes.values():
print(i.namespaceURI)
~~~ |
|
Date |
User |
Action |
Args |
2018-08-01 13:32:29 | porton | set | recipients:
+ porton |
2018-08-01 13:32:29 | porton | set | messageid: <1533130349.62.0.56676864532.issue34306@psf.upfronthosting.co.za> |
2018-08-01 13:32:29 | porton | link | issue34306 messages |
2018-08-01 13:32:29 | porton | create | |
|