Integration of XML literals with XML Schema Explorer

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.