XML attributes have wrong name
Nate Gelbard
gelbardn at tripwire.com
Mon Mar 22 17:09:33 EST 2004
Hello,
I have a class with a lot of 'setter' methods and a toXML() method
which creates a bunch of elements, attributes, and text nodes from those
variables.
The problem is all the attribute names get munged.
root = self.doc.createElement("Node")
root.setAttribute("type","foo")
turns into
<Node y="foo">
I'm using python RedHat 7.3/python 2.2.3.
--( Nate Gelbard, QA Engineer
--( Tripwire, Inc.
More information about the Python-list
mailing list