如何从 DTD 或 XSD 生成示例 XML 文档? [英] How to generate sample XML documents from their DTD or XSD?

查看:40
本文介绍了如何从 DTD 或 XSD 生成示例 XML 文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个涉及大量 XML 转换的应用程序.我们本身没有任何适当的输入测试数据,只有 DTD 或 XSD 文件.我们想从这些文件中自己生成我们的测试数据.有没有简单/免费的方法来做到这一点?

We are developing an application that involves a substantial amount of XML transformations. We do not have any proper input test data per se, only DTD or XSD files. We'd like to generate our test data ourselves from these files. Is there an easy/free way to do that?

编辑

显然没有为此提供免费工具,我同意 OxygenXML 是最好的工具之一.

There are apparently no free tools for this, and I agree that OxygenXML is one of the best tools for this.

推荐答案

I think Oxygen (http://www.oxygenxml.com/) 也可以,但这是另一种商业产品.不过,这是一个不错的方法……我强烈建议任何从事大量 XML 工作的人使用它.它也带有一个不错的 Eclipse 插件.

I think Oxygen (http://www.oxygenxml.com/) does it as well, but that's another commerical product. It's a nice one, though... I'd strongly recommend it for anyone doing a lot of XML work. It comes in a nice Eclipse plugin, too.

我相信有一个免费的、功能齐全的 30 天试用版.

I do believe there is a free, fully-featured 30 day trial.

这篇关于如何从 DTD 或 XSD 生成示例 XML 文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆