Partager via


How to: Get an Overview of a Schema Set Using the Graph View

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 describes how to use the Graph View to see a high-level view of the nodes in a schema set and the relationships between the nodes.

To create a new XSD file and display the root element in the Content Model View

  1. Create a new XML Schema file and save the file as Relationships.xsd.

  2. Click the Use XML Editor to view and edit the underlying XML Schema file link on the Start View.

  3. Copy the XML Schema sample code from Sample XML Schema: Relationships and paste it to replace the code that was added to the new XSD file by default.

  4. Right-click anywhere in the XML Editor and select View Designer.

  5. Select the Graph View from the XSD Toolbar.

  6. Select Schema Set node in the XML Schema Explorer and drag the node to design suface of the Graph View. You should see all the global nodes, and arrows connecting the nodes that have relationships.

    Graph View

  7. Click on any node on the design surface and look at the breadcrumb bar to see where the selected node is located in the schema set.

  8. Rick-click on any element node on the desing surface and select Generate Sample XML to see the XML instance document.