XML attributes have wrong name

Nate Gelbard gelbardn at tripwire.com
Mon Mar 22 23:09:33 CET 2004


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

The problem is all the attribute names get munged.

        root = self.doc.createElement("Node")

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