Integration of XML Literals with 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

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.

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.

Visual Basic XML Literals; XML Schema Explorer

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

Visual Basic XML Literals; XML Schema Explorer

This feature was introduced in Visual Studio 2008 SP1. To watch an interview in which this feature is explained in detail, see Channel 9 Interview : XML Schema Explorer in Visual Studio 2008 SP1.

See Also

How to: Use the XML Schema Designer with XML Literals