次の方法で共有


Integration of XML literals with XML Schema Explorer

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

Visual Basic supports XML literals, which means that you can incorporate XML fragments directly into your Visual Basic code. For more information, see XML literals overview.

How to

If an XSD file in your Visual Basic project includes an XML literal, you can view the XML schema set in the XML Schema Explorer. To view the schema set associated with an XML literal, right-click on an XML node in an XML literal or an XML namespace import and select Show in Schema Explorer.

Screenshot of a Visual Basic project window showing a context menu over an XML node with the Shot in Schema Explorer command highlighted.

This opens the XML Schema Explorer side by side with your Visual Basic file.

Screenshot of a Visual Basic project window showing that the XML Schema Explorer and Solution Explorer have been opened in the right pane.

See also