SOM能为我做什么? [英] What can the SOM do for me?

查看:133
本文介绍了SOM能为我做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用XSD.exe生成与我的模式相对应的C#类,这些C#类由C ++/CLI应用程序使用,以基于该模式生成XML文档,但由于一些原因,我对此感到不满意.

1.因此,我无法从自动生成的类中读取模式信息.
2.更重要的是,更改班级涉及到准国家以下的返工.

如何将SOM与C#或C ++/CLI一起使用,以直接询问Schema并基于此询问的结果构建XML文档?

我希望能分享经验.

同时,我正在看几个在线示例,并试图弄清楚下一步该怎么做...

I am using XSD.exe to generate C# classes corresponding to my schema which are consumed by a C++/CLI app to produce XML documents based on the schema, but I am not comfortable with it for a couple of reasons.

1. I cant read the schema information from the autogenerated class, therefore.
2. More importantly a change to the class involves substatanial rework.

How can I use SOM with either C# or C++/CLI to interogate the Schema directly and build my XML documents based on the outcome of this interrogation?

I would appreciate shared experiences.

Meantime I am looking at a couple of online examples and trying to figure out what to do next...

推荐答案

我们所做的是从生成的类中派生出来的,以最小化更改对我们代码库的影响.尽管如此,更改架构确实意味着重新生成类并重新编译应用程序.
What we did was derive from the generated classes to minimize the impact changes had on our code base. Still, changes of the schema did mean regenerating the classes and recompiling the application.


这篇关于SOM能为我做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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