我可以将xsd ui文件转换为c# [英] can i convert xsd ui file to c#

查看:105
本文介绍了我可以将xsd ui文件转换为c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我被分配了一项任务来识别

XSD UI文件是否可以转换为C#UI解决方案

关于此,我在Google上搜索了很多.但是我找不到这毛钱.

因此,知道是否适用于此将更有用

如果适用,意味着如何?

我所做的是

1)我从互联网下载了一个示例xsd文件

2)然后,我在Visual Studio 10.0命令提示符下将xsd文件传递为

Actually i was assigned with a task to identify

Whether the XSD UI file can be converted into C# UI solution

I googled a lot regarding this. But i could not find a dime about this.

So it will be more helpful to know if it is applicable to do so or not

If applicable means how?

What i did is

1) I downloaded a sample xsd file from internet

2) Then i passed the xsd file in Visual Studio 10.0 command prompt as

xsd.exe -c -l:c# D:\sample.xsd


3)将sample.xsd文件转换为本地驱动器中的sample.cs.

4)然后我不知道该怎么办.

我所做的是正确的,还是我丢失了任何东西,还是应该在此过程中做一些额外的事情?

我想要的是

通过XSD文件创建一个带有两个文本框和一个命令按钮的示例ui,并执行简单的添加操作.如何实现呢?

所以请有人帮我

提前谢谢.

关于问候
R.K.PRABAKAR


3) The sample.xsd file is converted into sample.cs in the local drive.

4) Then i do not know what should i do with that file.

What I have done is correct or am i missing anything or should have to do something additional in the process uh?

What i want is

create a sample ui with two text box and one command button through XSD file and perform simple addition. How to achieve this?

So please somebody help me

Thanks in advance.

With regards
R.K.PRABAKAR

推荐答案

答案与您同在,但我不明白您的要求是什么.

该CS文件是XSD文件的对象表示形式,因此您可以使用该CS文件创建一个对象,如果要序列化该对象并随XML文件一起提供,则该XML文件应针对XSD文件进行验证.

抱歉,您没有提到要使用该C#代码实现的目标.

让我们知道,我们可以为您提供更详细的答案.

谢谢
Rushikesh Joshi
Answer is with you but I don''t under stand what was your requirement.

That CS file is Object representation of XSD file, so you can create an object using that CS file and if you will serialize that object and will come with XML file then that XML file should be validated against XSD file.

Sorry, you have not mentioned what you want to achieve using that C# code.

Let us know so, we can provide you a more detailed answer.

Thanks
Rushikesh Joshi


这篇关于我可以将xsd ui文件转换为c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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