How to convert XSD to Python Class [closed]

2019-01-11 00:45发布

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条回答
我欲成王,谁敢阻挡
2楼-- · 2019-01-11 01:05

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

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

查看更多
你好瞎i
4楼-- · 2019-01-11 01:20

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 !

查看更多
登录 后发表回答