I want to use an XML file containing a collection of objects (it is a GML file for GIS applications) as input in models i am developping. Herefore, i want to transform the objects in my XML file into real Python objects so i can use them easily. Is there an easy way of doing this, i.e. transforming the XML collection into a database of objects ?
1 Answer
You might try generateDS. generateDS homepage. Last time I used it was a couple of years ago, and it had some limitations then---there were some valid xsd features that it would not handle. Looks like it has been evolving since then; those limitations may have disappeared, or they may not apply to your situation anyway.
3 Comments
ruben baetens
This indeed looks like what i am looking for, but i'm struggeling to make it work
ruben baetens
It works ! Thank you, dis indeed is absolutly what i needed, automatically generating python code classes from my XML documents.
Pierce
It was very helpful for me a couple of years ago. Big thanks to Dave Kuhlman.
lxml.objectify?