By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,441 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,441 IT Pros & Developers. It's quick & easy.

XML attributes have wrong name

P: n/a
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.

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.