How to convert XSD to Python Class [closed]

℡╲_俬逩灬. 提交于 2019-11-26 13:28:49

问题


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.



来源:https://stackoverflow.com/questions/1072853/how-to-convert-xsd-to-python-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!