XSD类生成 [英] XSD Class Generation

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

问题描述




有人可以告诉我如何从XSD文件生成类吗?

有没有简单的方法将其转换为类型化数据集等?


或欢迎任何其他建议。


-


SevDer
http://www.sevder.com

推荐答案

SevDer


在IDE的表面上单击鼠标右键,其中XSD的XML不是
演示文稿找到并选择生成数据集。


Cor


" SevDer" < se **** @ newsgroup.nospamschreef in bericht

news:uP ************** @ TK2MSFTNGP03.phx.gbl ...
SevDer

Click right on your mouse on the surface in the IDE where the not XML
presentation of the XSD is located and choose generate dataset.

Cor

"SevDer" <se****@newsgroup.nospamschreef in bericht
news:uP**************@TK2MSFTNGP03.phx.gbl...




有人可以告诉我如何从XSD文件生成类吗?

有没有简单的方法将其转换为类型化的数据集等?


或欢迎任何其他建议。


-

SevDer
http://www.sevder.com


xsd.exe(例如,在VS2005命令提示符下)


例如


xsd my.xsd / classes / enableDataBinding

xsd my.xsd / dataset

xsd /?


Marc

xsd.exe (for example, at a VS2005 command prompt)

e.g.

xsd my.xsd /classes /enableDataBinding
xsd my.xsd /dataset
xsd /?

Marc


你好SevDer,


正如Cor建议的那样,你可以使用Visual Studio的内置DataSet

生成功能从给定的xsd文件生成一个typedDataset。

然而,在VS 2005中,支持的方法与VS 2003不同(没有

生成数据集命令可用)。以下是如何在2005年从xsd文件生成

数据集:
Hi SevDer,

As Cor has suggested, you can use Visual Studio''s built-in DataSet
generation feature to generate a typedDataset from a given xsd file.
However, in VS 2005, the supported approach is different from VS 2003(no
"generate dataset" command is available). Here is how to generate the
dataset from an xsd file in 2005:

>>>>>>>>
>>>>>>>>



1.在解决方案资源管理器中选择xsd文件

2.在Property Grid(F4) )找到CustomTool属性并输入

MSDataSetGenerator

将为您生成类型化的数据集。

<<<<<< ;<<<<<


另外,您可以使用.net框架sdk的内置xsd.exe实用程序来支付
从命令行中的给定xsd文件生成自定义类。这个工具

支持生成普通类和DataSet类:


#XML模式定义工具(Xsd.exe)
http://msdn2.microsoft.com/en-us/ lib ... 0s(VS.71).aspx


希望这也有帮助。


此致,


Steven Cheng


Microsoft MSDN在线支持主管

此帖子按现状提供没有保证,也没有授予任何权利。

1. Select the xsd file in the solution explorer
2. At the Property Grid (F4) find the CustomTool property and type
MSDataSetGenerator
The typed dataset will be generated for you.
<<<<<<<<<

Also, you can use the .net framework sdk''s built-in xsd.exe utility to
generate custom classes from a given xsd file in commandline. This tool
support generating both normal classes and DataSet classes:

#XML Schema Definition Tool (Xsd.exe)
http://msdn2.microsoft.com/en-us/lib...0s(VS.71).aspx

Hope this also helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


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

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