Search code examples
pythonxmldata-bindingxsdxsd2code

Looking for generator of Python <--> XML bindings


I'm looking for a generator which takes schema file(s) (XSD) on input and generates Python code (bindings) able to transform xml file to Python objects and the other way around. It should be customizable so that I could plug in my code dealing with transformation between specific types defined in schema and Python's objects (let's say xsd::dateTime to/from datetime.datetime).


Solution

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

    That's the first Google hit.

    How to convert XSD to Python Class

    That's the second Google hit.