xsd, data binding. Modern approach?

V

Vladimir Kropylev

Hi,

What is the most actual approach to python XML data-binding?
The answers given by google seam to be rather outdated. Can't believe
nothing's changed since 2003.

To be concrete, i've faced the following task:
I HAVE:
- XSD schema (a huge collection of *.xsd files)
TODO:
- create python classes corresponding to the given schema
- create, serialize/deserialize (to/from XML) python objects of these
classes (according to the given schema)

Thanks! :)
 
S

Stefan Behnel

Vladimir said:
What is the most actual approach to python XML data-binding?
The answers given by google seam to be rather outdated. Can't believe
nothing's changed since 2003.

To be concrete, i've faced the following task:
I HAVE:
- XSD schema (a huge collection of *.xsd files)
TODO:
- create python classes corresponding to the given schema
- create, serialize/deserialize (to/from XML) python objects of these
classes (according to the given schema)

If you don't insist on generating code, lxml.objectify might do what you want.

http://codespeak.net/lxml/objectify.html
http://codespeak.net/lxml/objectify.html#asserting-a-schema

Stefan
 
P

Pierre Sangouard

Vladimir said:
Hi,

What is the most actual approach to python XML data-binding?
The answers given by google seam to be rather outdated. Can't believe
nothing's changed since 2003.

To be concrete, i've faced the following task:
I HAVE:
- XSD schema (a huge collection of *.xsd files)
TODO:
- create python classes corresponding to the given schema
- create, serialize/deserialize (to/from XML) python objects of these
classes (according to the given schema)

http://www.rexx.com/~dkuhlman/generateDS.html
 

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,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top