minidom toxml() not emitting attribute namespace qualifier
kevin
kmanley at yahoo.com
Mon Jun 23 11:11:08 EDT 2003
Using Python 2.2.3, with this example code:
import xml.dom.minidom
XML = """\
<?xml version="1.0"?>
<elem xmlns:myns="mynamespaceuri" myns:att="value"/>
"""
dom = xml.dom.minidom.parseString( XML )
print dom.toxml()
The output is missing the "myns" namespace qualifier on the "att"
attribute. Can someone tell me what I'm doing wrong?
Thanks, Kevin
More information about the Python-list
mailing list