Creating and Editing XML Documents and Schema

The text editor is equally adept, and just as productive, at editing documents with XML content—including XML schemas. The XML editor is launched whenever you open a file with the .xml extension inside of Visual Studio. It is also launched for .xsl files and .config files, and is always available when you use the Open With command in the Solution Explorer against any item in a project.

Because XML documents contain structured content involving the concepts of nodes and tags, attributes, and node containership, the XML editor supports document outlining in a similar fashion to the code editor: You can expand or collapse nodes within the editor to expose or hide a node’s content (see Figure 6.28

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.