from data structure to xml an vice versa

Zunbeltz Izaola

Usenet Archive
Joined
Oct 21, 2003
Messages
55
Reaction score
0
Hi,

I'm quite new to xml and i don't know all the techniques that are around xml.

I'm planing a program (in Python). My data structure is like that

class A:
data1
data2
method1
....
list of B

class B:
data3
data4
method2
....
list of C

class C:
data4
data5
method3
....

Whre data are attributes of simple types (numbers, strings,...) and list of ... are list or dictionaries of instaces of clase B ,C ...

I want to know what is the best technique to write a xml file from a instance of class A (write all the data it contains) and what is the best for the oder way; storing the data in a xml way, build the instances with the data in the file.

Thanks in advance

Zunbeltz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,798
Members
249,594
Latest member
henrywalsh

Latest Threads

Top