工具从xsd生成xml文件(用于测试) [英] tool to generate xml file from xsd (for testing)

查看:151
本文介绍了工具从xsd生成xml文件(用于测试)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个xsd文件,没有做太多的xml操作,解析等。我想/需要测试xml文件为我的代码,但没有任何样品。 (我使用xerces解析)

I have an xsd file and have not done much xml manipulation, parsing, etc. I want/need test xml files for my code but don't have any samples. (I am using xerces to parse)

这类似于: xml-instance-generation-from-xml-schema-xsd

但我真的不想使它成为一个两步的过程。 (python或java)

but I don't really want to make it a two step process. (python or java)

我只想将xsd文件提供给某些工具,并让它生成一个示例xml文件。

I just want to feed xsd file to some tool and have it generate a sample xml file. How can I do that?


另请参阅: how-to-generate-sample-xml-documents-from-their-dtd-or-xsd


推荐答案

Microsoft已经发布了一个文档生成器工具作为示例。 这是一篇介绍示例应用程序的架构和操作的文章一些细节。

Microsoft has published a "document generator" tool as a sample. This is an article that describes the architecture and operation of the sample app in some detail.

如果您只是想使用文件产生工具,点击此处并安装MSI。

If you just want to use the doc generation tool, click here and install the MSI.

这是免费的。源可用。需要运行.NET Framework。仅适用于XSD。 (不放宽NG或DTD)。

It's free. The source is available. Requires the .NET Framework to run. Works only with XSDs. (not Relax NG or DTD).

这篇关于工具从xsd生成xml文件(用于测试)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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