从XSD架构生成XML [英] Generating XML from an XSD Schema

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

问题描述

大家好,
是否有人知道如何通过在相应的标签中插入从gui检索的数据来将xsd文档转换为xml..

Hi all,
Do any one know how to convert an xsd document into an xml by inserting data retrieved from gui in the respective tags..

推荐答案

这实际上取决于您的实现.您如何进行其他操作(读取XML文件)?您是否基于xsd文件生成了C ++类?如果是,则只需填充它们并序列化它们.
xsd通常用于验证和/或代码生成.
It really depends on your implementation. How are you doing the other way (reading an XML file) ? Did you generate C++ classes based on your xsd file ? If yes, you simply have to populate them and serialize them.
The xsd is normally used for validation and/or code generation.


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

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