Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45796 > unrolled thread

serialize a class to XML and back

Started bySchneider <js@globe.de>
First post2013-05-23 12:37 +0200
Last post2013-05-23 17:01 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  serialize a class to XML and back Schneider <js@globe.de> - 2013-05-23 12:37 +0200
    Re: serialize a class to XML and back alex23 <wuwei23@gmail.com> - 2013-05-23 17:01 -0700

#45796 — serialize a class to XML and back

FromSchneider <js@globe.de>
Date2013-05-23 12:37 +0200
Subjectserialize a class to XML and back
Message-ID<mailman.2009.1369305490.3114.python-list@python.org>
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

[toc] | [next] | [standalone]


#45856

Fromalex23 <wuwei23@gmail.com>
Date2013-05-23 17:01 -0700
Message-ID<31e0af40-d1e5-4b09-b0c2-f4a87b4399e2@wg15g2000pbb.googlegroups.com>
In reply to#45796
On May 23, 8:37 pm, Schneider <j...@globe.de> wrote:
> My aim is to store instances of this class in a database.

Have you considered just pickling the classes instead?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web