如果我有数据和标签,我想知道是否有一种方法可以自动从 XSD 模式生成 XML 文件.我想在 python/java 中执行此操作.这似乎很有可能,但我找不到任何允许我这样做的库.我正在寻找一个相当快速的解决方案..有什么想法吗?
I was wondering if there's a way I can automate the generation of XML files from XSD schemas given that I have the data and the labels. I'd like to do this in python/java. It seems very possible, yet I can't find any library that allows me to do this. I'm looking for a fairly quick solution.. Any ideas?
另请参阅:如何生成样本-xml-documents-from-their-dtd-or-xsd
看看 pyXSD 有没有类似的 Python 工具到 JAXB.
Look at pyXSD for Python tools that are similar to JAXB.
XSD 用于创建 Python 类.Python 对象用于发出 XML.
XSD's are used to create Python classes. Python objects are used to emit XML.
这篇关于从 XML 模式 (xsd) 生成 XML 实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!