from data structure to xml an vice versa

Z

Zunbeltz Izaola

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top