从XSD生成XML [英] Generating XML from XSD

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

问题描述

Good Day

我所做的部分工作包括为特定的Customs and Excise XML消息编写GUI编辑器.

每条消息都需要新的软件.

我想采用任何模式定义(XSD)并对其进行解析,基于这些元素生成适当的GUI界面,并使用输入的数据来形成所选的XML消息.

我找不到任何示例,并且在网上找到了许多断言表明这是不可能的.

Good Day

Part of what I do involves writing GUI editors for specific Customs and Excise XML messages.

Each message requires new software.

I want do take any schema definition (XSD) and parse it, generating the appropriate GUI interface based on the elements and use the data entered to form the chosen XML message.

I cannot find any examples and have found a number of assertions online that suggest this is not possible. Is it?

推荐答案

当然可以.
我发现有人遇到相同的问题: http://stackoverflow.com/Questions/983399/create-a-gui-from-a-xml-schema-automatically [手动编码XML-serializer/deserializer. XSD [ ^ ].

干杯
Of course it''s possible.
I found someone with the same question : http://stackoverflow.com/questions/983399/create-a-gui-from-a-xml-schema-automatically[^]
Maybe that helps.

I only generated C# classes from XSD and manually coded the XML-serializer/deserializer with XSD[^].

Cheers


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

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