0

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).

Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366

2 Answers2

3

Try PyXB.

1

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.

Community
  • 1
  • 1
S.Lott
  • 384,516
  • 81
  • 508
  • 779