Looks like XSD.exe is not delivered as a part of Visual Studio 2010.
看起来像XSD。exe不是作为Visual Studio 2010的一部分交付的。
what is the alternative being offered in VS2010?
VS2010提供的替代方案是什么?
7 个解决方案
#1
41
It's available from the VS 2010 command prompt. Open up the VS 2010 command prompt and type "xsd /?".
它可以从VS 2010命令提示符中获得。打开VS 2010命令提示符,输入“xsd /?”。
#2
19
Start -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Studio Command Prompt
启动->所有程序->微软Visual Studio 2010 -> Visual Studio工具-> Visual Studio命令提示符
You can use xsd.exe from here.
您可以使用xsd。exe。
#3
17
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\xsd.exe
C:\Program Files (x86)\Microsoft sdk \ Windows \ v7.0A \ Bin \ xsd.exe
#4
4
I believe xsd.exe is not available with Visual Studio * 2010 Express
我相信xsd。Visual Studio * 2010 Express不能提供exe
#5
4
XML Schema Definition Tool is available in the menu "Start":
XML模式定义工具可在“开始”菜单中找到:
Start-> All Programs-> Microsoft Visual Studio 2010-> Visual Studio Command Prompt(2010)
启动->所有程序->微软Visual Studio 2010-> Visual Studio命令提示符(2010)
You'll see the welcome message a command line:
您将在命令行中看到欢迎消息:
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
D:\Program Files\Microsoft Visual Studio 10.0\VC>
You can, for example, create an XML scheme from the XML-file.
例如,您可以从XML文件创建一个XML方案。
example.xml:
example.xml:
<?xml version="1.0" encoding="utf-8"?>
<country>
<country_name>France</country_name>
<population>59.7</population>
</country>
To do this, enter the following:
为此,请输入以下内容:
I:\example.xml /outputdir:D:\xml2xsd
In my system, i see the following:
在我的系统中,我看到了以下内容:
...
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Writing file 'D:\xml2xsd\example.xsd'.
D:\Program Files\Microsoft Visual Studio 10.0\VC>
In the catalog D:\xml2xsd\
came a such a scheme:
在目录D:\xml2xsd\来了一个这样的方案:
example.xsd:
example.xsd:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="country">
<xs:complexType>
<xs:sequence>
<xs:element name="country_name" type="xs:string" minOccurs="0" />
<xs:element name="population" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="country" />
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
A full list of options here - http://msdn.microsoft.com/en-us/library/x6c1kb0s.aspx
完整的选项列表在这里- http://msdn.microsoft.com/en-us/library/x6c1kb0s.aspx
As for alternatives, you can search converters for operations that allows xsd.exe:
至于替代方案,您可以搜索转换器,寻找允许xsd.exe的操作:
-
XDR to XSD
XDR为XSD
-
XML to XSD
XML XSD
-
XSD to DataSet
XSD数据集
-
XSD to Classes
XSD类
-
Classes to XSD
类XSD
Good luck.
祝你好运。
#6
1
I had to add this to my path:
我必须在我的道路上加上:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\
(Start > Edit the system environment variables > Environment Variables > Edit 'Path' under 'System variables')
(启动>编辑系统环境变量>环境变量>编辑“系统变量”下的“路径”)
Then I could start the Visual Studio command prompt (2010) and type
然后我可以启动Visual Studio命令提示符(2010)并输入
xsd.exe /?
#7
0
Generally speaking DTD is an alternative to XSD and DTD is fully supported in Visual Studio. However, DTD is a weaker language, as some things can not be expressed in it. For example, it does not support as many data types as XSD does, nor does it have assertions. Anyways, if you're not too picky about it, you can give it a try.
一般来说,DTD是XSD的一种替代,并且在Visual Studio中完全支持DTD。然而,DTD是一种较弱的语言,因为它不能表达某些东西。例如,它不像XSD那样支持许多数据类型,也没有断言。不管怎样,如果你不太挑剔的话,你可以试试。
#1
41
It's available from the VS 2010 command prompt. Open up the VS 2010 command prompt and type "xsd /?".
它可以从VS 2010命令提示符中获得。打开VS 2010命令提示符,输入“xsd /?”。
#2
19
Start -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Studio Command Prompt
启动->所有程序->微软Visual Studio 2010 -> Visual Studio工具-> Visual Studio命令提示符
You can use xsd.exe from here.
您可以使用xsd。exe。
#3
17
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\xsd.exe
C:\Program Files (x86)\Microsoft sdk \ Windows \ v7.0A \ Bin \ xsd.exe
#4
4
I believe xsd.exe is not available with Visual Studio * 2010 Express
我相信xsd。Visual Studio * 2010 Express不能提供exe
#5
4
XML Schema Definition Tool is available in the menu "Start":
XML模式定义工具可在“开始”菜单中找到:
Start-> All Programs-> Microsoft Visual Studio 2010-> Visual Studio Command Prompt(2010)
启动->所有程序->微软Visual Studio 2010-> Visual Studio命令提示符(2010)
You'll see the welcome message a command line:
您将在命令行中看到欢迎消息:
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
D:\Program Files\Microsoft Visual Studio 10.0\VC>
You can, for example, create an XML scheme from the XML-file.
例如,您可以从XML文件创建一个XML方案。
example.xml:
example.xml:
<?xml version="1.0" encoding="utf-8"?>
<country>
<country_name>France</country_name>
<population>59.7</population>
</country>
To do this, enter the following:
为此,请输入以下内容:
I:\example.xml /outputdir:D:\xml2xsd
In my system, i see the following:
在我的系统中,我看到了以下内容:
...
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Writing file 'D:\xml2xsd\example.xsd'.
D:\Program Files\Microsoft Visual Studio 10.0\VC>
In the catalog D:\xml2xsd\
came a such a scheme:
在目录D:\xml2xsd\来了一个这样的方案:
example.xsd:
example.xsd:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="country">
<xs:complexType>
<xs:sequence>
<xs:element name="country_name" type="xs:string" minOccurs="0" />
<xs:element name="population" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="country" />
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
A full list of options here - http://msdn.microsoft.com/en-us/library/x6c1kb0s.aspx
完整的选项列表在这里- http://msdn.microsoft.com/en-us/library/x6c1kb0s.aspx
As for alternatives, you can search converters for operations that allows xsd.exe:
至于替代方案,您可以搜索转换器,寻找允许xsd.exe的操作:
-
XDR to XSD
XDR为XSD
-
XML to XSD
XML XSD
-
XSD to DataSet
XSD数据集
-
XSD to Classes
XSD类
-
Classes to XSD
类XSD
Good luck.
祝你好运。
#6
1
I had to add this to my path:
我必须在我的道路上加上:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\
(Start > Edit the system environment variables > Environment Variables > Edit 'Path' under 'System variables')
(启动>编辑系统环境变量>环境变量>编辑“系统变量”下的“路径”)
Then I could start the Visual Studio command prompt (2010) and type
然后我可以启动Visual Studio命令提示符(2010)并输入
xsd.exe /?
#7
0
Generally speaking DTD is an alternative to XSD and DTD is fully supported in Visual Studio. However, DTD is a weaker language, as some things can not be expressed in it. For example, it does not support as many data types as XSD does, nor does it have assertions. Anyways, if you're not too picky about it, you can give it a try.
一般来说,DTD是XSD的一种替代,并且在Visual Studio中完全支持DTD。然而,DTD是一种较弱的语言,因为它不能表达某些东西。例如,它不像XSD那样支持许多数据类型,也没有断言。不管怎样,如果你不太挑剔的话,你可以试试。