Re: [XML-SIG] Help writing out xml

2005-01-11 Thread Harry George
An option is to write the xml manually. That is, each object in your "model" (as in model-view-controller) has a "to_xml" method which takes a fileobject (sys.stdout is default), and writes itself in XML to that file. Indents are controlled by some formatting mechanism. I personally use my "

[XML-SIG] Help writing out xml

2005-01-11 Thread Willis
I'm writing a script that edits and writes xml to a gaim(http://gaim.sourceforge.net) configuration file. However the problem I'm having is I've found no way of outputting xml in python that preserves text nodes. i.e. gaim writes ... willis ... in it's xml file somehow, and the best I can get p