Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.118 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.77; '*S*': 0.01; 'python': 0.11; 'received:10.50': 0.16; 'subject:XML': 0.16; 'subject:class': 0.16; 'gmbh': 0.22; 'header:User-Agent:1': 0.23; 'class': 0.32; 'instances': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'list,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'subject:back': 0.60; 'back': 0.62; '260': 0.84 X-Virus-Scanned: Debian amavisd-new at ispconfig-mx01-ha03.globe.de Date: Thu, 23 May 2013 12:37:05 +0200 From: Schneider Organization: GLOBE Development GmbH User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: python-list@python.org Subject: serialize a class to XML and back Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369305490 news.xs4all.nl 15970 [2001:888:2000:d::a6]:57073 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45796 Hi list, how can I serialize a python class to XML? Plus a way to get the class back from the XML? My aim is to store instances of this class in a database. bg, Johannes -- GLOBE Development GmbH Königsberger Strasse 260 48157 MünsterGLOBE Development GmbH Königsberger Strasse 260 48157 Münster 0251/5205 390