I have an XSD file from which I want to create sample XML.
我有一个XSD文件,我想从中创建示例XML。
I found this answer on SO that tells me to use XML Schema Explorer.
我在SO上找到了这个答案,告诉我使用XML Schema Explorer。
But when I open my XSD file in Visual Studio 2008 SP1, I cannot find the option to open the XML Schema Explorer as outlined.
但是当我在Visual Studio 2008 SP1中打开我的XSD文件时,我找不到按照概述打开XML Schema Explorer的选项。
How do I open this window?
我该如何打开此窗口?
3 个解决方案
#1
2
In VS2010:
在VS2010中:
- Right click on your existing
.xsd
file and select "open with". - 右键单击现有的.xsd文件,然后选择“打开方式”。
- Select "XML Schema Designer"
- 选择“XML架构设计器”
- Then in the template that comes up, click the link that says "XML Schema Explorer".
- 然后在出现的模板中,单击“XML Schema Explorer”链接。
#2
2
I solved it as follows:
我解决了如下:
I created a new file of type 'XML Schema'. That opened up the XML Schema Explorer. Then I switched to my file and the XML Schema Explorer window stayed open.
我创建了一个“XML Schema”类型的新文件。这打开了XML Schema Explorer。然后我切换到我的文件,XML Schema Explorer窗口保持打开状态。
#3
-1
From How do you open XML Schema Explorer:
从如何打开XML Schema Explorer:
The XML Schema Explorer provides a hierarchal view of the schema set through a tree view. The XML Schema Explorer also provides search, filtering, navigation, and sorting. To access the XML Schema Explorer, do one of the following:
XML Schema Explorer通过树视图提供了模式集的分层视图。 XML Schema Explorer还提供搜索,过滤,导航和排序。要访问XML Schema Explorer,请执行以下操作之一:
- If you are on the Start View, click the XML Schema Explorer link.
- 如果您在“开始视图”上,请单击“XML架构浏览器”链接。
- If you are on the Graph View or the Content Model View and have nodes in your workspace, use the context menu to select the XML Schema Explorer.
- 如果您在“图形视图”或“内容模型视图”中并且在工作空间中有节点,请使用上下文菜单选择XML模式资源管理器。
- You can also select the XML Schema Explorerfrom the View menu.
- 您还可以从“视图”菜单中选择“XML架构资源管理器”。
- You can access the XML Schema Explorerfrom a .vb file that has a Visual Basic XML literal associated with an .xsd file. To see the schema set in the XML Schema Explorer, right click an XML node in an XML literal or an XML namespace import and select the Show in Schema Explorer command. For more information, see Integration of XML Literals with XML Schema Explorer.
- 您可以从.vb文件访问XML Schema Explorer,该文件具有与.xsd文件关联的Visual Basic XML文字。要查看XML Schema Explorer中的模式集,请右键单击XML文本或XML名称空间导入中的XML节点,然后选择Show in Schema Explorer命令。有关更多信息,请参阅XML Literals与XML Schema Explorer的集成。
Drag the xsd into Visual Studio and then it will be under the View menu.
将xsd拖到Visual Studio中,然后它将在View菜单下。
#1
2
In VS2010:
在VS2010中:
- Right click on your existing
.xsd
file and select "open with". - 右键单击现有的.xsd文件,然后选择“打开方式”。
- Select "XML Schema Designer"
- 选择“XML架构设计器”
- Then in the template that comes up, click the link that says "XML Schema Explorer".
- 然后在出现的模板中,单击“XML Schema Explorer”链接。
#2
2
I solved it as follows:
我解决了如下:
I created a new file of type 'XML Schema'. That opened up the XML Schema Explorer. Then I switched to my file and the XML Schema Explorer window stayed open.
我创建了一个“XML Schema”类型的新文件。这打开了XML Schema Explorer。然后我切换到我的文件,XML Schema Explorer窗口保持打开状态。
#3
-1
From How do you open XML Schema Explorer:
从如何打开XML Schema Explorer:
The XML Schema Explorer provides a hierarchal view of the schema set through a tree view. The XML Schema Explorer also provides search, filtering, navigation, and sorting. To access the XML Schema Explorer, do one of the following:
XML Schema Explorer通过树视图提供了模式集的分层视图。 XML Schema Explorer还提供搜索,过滤,导航和排序。要访问XML Schema Explorer,请执行以下操作之一:
- If you are on the Start View, click the XML Schema Explorer link.
- 如果您在“开始视图”上,请单击“XML架构浏览器”链接。
- If you are on the Graph View or the Content Model View and have nodes in your workspace, use the context menu to select the XML Schema Explorer.
- 如果您在“图形视图”或“内容模型视图”中并且在工作空间中有节点,请使用上下文菜单选择XML模式资源管理器。
- You can also select the XML Schema Explorerfrom the View menu.
- 您还可以从“视图”菜单中选择“XML架构资源管理器”。
- You can access the XML Schema Explorerfrom a .vb file that has a Visual Basic XML literal associated with an .xsd file. To see the schema set in the XML Schema Explorer, right click an XML node in an XML literal or an XML namespace import and select the Show in Schema Explorer command. For more information, see Integration of XML Literals with XML Schema Explorer.
- 您可以从.vb文件访问XML Schema Explorer,该文件具有与.xsd文件关联的Visual Basic XML文字。要查看XML Schema Explorer中的模式集,请右键单击XML文本或XML名称空间导入中的XML节点,然后选择Show in Schema Explorer命令。有关更多信息,请参阅XML Literals与XML Schema Explorer的集成。
Drag the xsd into Visual Studio and then it will be under the View menu.
将xsd拖到Visual Studio中,然后它将在View菜单下。