How to convert XSD to Python Class

前端 未结 3 497
执念已碎
执念已碎 2020-12-01 07:11

I just want to know if there is a program that can convert an XSD file to a Python class as JAXB does for Java?

相关标签:
3条回答
  • 2020-12-01 08:02

    PyXB: http://pyxb.sourceforge.net/

    0 讨论(0)
  • 2020-12-01 08:13

    generateDS : I think this is the good tool I need

    Edit : Actually, generateDS does very well the job !! It generates the Python class with all methods (setters and getters, export to XML, import from XML). It works very well !

    0 讨论(0)
  • 2020-12-01 08:14

    Look at http://pypi.python.org/pypi/rsl.xsd/0.2.3

    Also, you might want http://pyxsd.org/ it works very nicely.

    0 讨论(0)
提交回复
热议问题