Topic
  • 1 reply
  • Latest Post - ‏2003-11-01T06:49:02Z by SystemAdmin
SystemAdmin
SystemAdmin
29 Posts

Pinned topic write an xml file with python

‏2003-10-29T09:57:40Z |
Hello,
all I want is to write an xml file with python (the simpliest possible), without typing it as a string.

thanx
Updated on 2003-11-01T06:49:02Z at 2003-11-01T06:49:02Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    29 Posts

    Re: write an xml file with python

    ‏2003-11-01T06:49:02Z  
    Well... if you really do want the simplest thing, that [b]is[/b] writing it as a string.

    There are a variety of other modules--everything from in-memory XML APIs, to templating systems, to object serialization as XML (gnosis.xml.pickle). But it's hard to say which type of thing you want without more description.

    I've covered a number of these styles in this column, and also over in [u]Charming Python[/u] in the Linux Zone. Uche Ogbuji also does a good job in a similar area, both for developerWorks, and for xml.com.