How to: Add Nodes to the Workspace from the XML Schema Explorer
Note
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
This topic explains how to add nodes to the XML Schema Designer workspace from the XML Schema Explorer. This can be achieved by dragging and dropping nodes from the XML Schema Explorer onto an XSD Designer view, or by using the XML Schema Explorer's context menu. You can also add nodes that are highlighted as a result of a search performed by the XML Schema Explorer. For more information, see How to: Add Schema Set Search Result Nodes to the Workspace.
Note
Only global nodes can be added to the XML Schema Designer Workspace.
To add nodes through the XML Explorer Context Menu
Follow the steps in How to: Create and Edit an XSD Schema File.
Right click on the
PurchaseOrderType
node in the a XSD Explorer. Select Show in Graph View.The
purchaseOrderType
node appears on the design surface of the Graph View.
To drag and drop a node on to a view
Right click on the
PurchaseOrderType
node in the Graph View. Select Show in XML Schema Explorer.The node is highlighted in the XML Schema Explorer.
Right click on the
PurchaseOrderType
node in the XML Schema Explorer and select Show All References.The
purchaseOrder
node is highlighted.Drag the
purchaseOrder
node on to the Graph View.The
purchaseOrder
node and thePurchaseOrderType
node appear next to each other on the design surface of the Graph View. Because the two nodes are realted (thepurchaseOrder
element is of thePurchaseOrderType
type), an arrow is drawn between them.
To add nodes using the Schema Explorer search capability
Type "purchaseOrder" in the search text box of the XML Explorer toolbar and click on the search button.
The search results are highlighted in the XML Schema Explorer and marked by ticks on the vertical scroll bar.
Add the search results to the workspace by clicking the Add highlighted nodes to Workspace button on the summary results pane.
The
purchaseOrder
node and thePurchaseOrderType
node appear next to each other on the design surface of the Graph View. Because the two nodes are related (thepurchaseOrder
element is of thePurchaseOrderType
type), an arrow is drawn between them.