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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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 !
回答2:
PyXB: http://pyxb.sourceforge.net/
回答3:
Look at http://pypi.python.org/pypi/rsl.xsd/0.2.3
Also, you might want http://pyxsd.org/ it works very nicely.