本文介绍了如何将XSD转换为Python类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
JAXB >解决方案
:我认为这是我需要的好工具
编辑:实际上,generateDS做得很好!它使用所有方法(setter和getter,导出到XML,从XML导入)生成Python类。它的效果非常好!
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?
解决方案
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 !
这篇关于如何将XSD转换为Python类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!