[XML-SIG] [ pyxml-Bugs-637355 ] minidom.writexml does not write attr ns
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 12 Nov 2002 12:19:42 -0800
Bugs item #637355, was opened at 2002-11-12 20:19
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=637355&group_id=6473
Category: DOM
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alan Kennedy (amak)
Assigned to: Nobody/Anonymous (nobody)
Summary: minidom.writexml does not write attr ns
Initial Comment:
Hi,
minidom.Node.writexml does not write attribute
namespaces correctly. Here is a code snippet that
reproduces the problem.
import sys
import xml.dom.minidom as xmd
docstring = "<n:e xmlns:n='http://x.com' n:a='hi!'/>"
doc = xmd.parseString(docstring)
doc.writexml(sys.stdout)
This should produce something like
<n:e n:a="hi!" xmlns:n="http://x.com"/>
but instead produces
<n:e a="hi!" xmlns:n="http://x.com"/>
i.e. the namespace prefix on the attribute is missing.
Regards,
Alan Kennedy.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=637355&group_id=6473