次の方法で共有


How to: Add schema set search result nodes to the workspace

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. 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 that are highlighted in the XML Schema Explorer as the result of a keyword search in the workspace.

Note

Only global nodes can be added to the workspace.

This example uses the sample purchase order schema.

To add schema set result nodes

  1. Follow the steps in How to: Create and edit an XSD schema file.

  2. Type "purchaseOrder" in the search text box of the XML Explorer toolbar and click on the search button.

    XML Schema Explorer Keyword Search

    The search results are highlighted in the XML Schema Explorer and marked by ticks on the vertical scroll bar.

  3. Add the search results to the workspace by clicking the Add highlighted nodes to Workspace button on the summary results pane.

    XML Schema Explorer Search Result

    The purchaseOrder node and the PurchaseOrderType node appear next to each other on the design surface of the Graph View. Because the two nodes are related (the purchaseOrder element is of the PurchaseOrderType type), an arrow is drawn between them.