Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

How to: Create Code Snippets for XML Files

Visual Studio 2005 allows you to create code snippets for XML files. These snippets are created almost identically to snippets for other development languages.

These procedures assume that you have followed the procedures explained in the How to: Create a Basic Code Snippet topic.

To add XML code

  1. Locate the Code element of the code snippet.

  2. Set the Language attribute of the Code element to XML. For example:<Code Language="XML"></Code>

  3. Enter the XML code in the same way you would the code for another development language.

Community Additions

ADD
Show:
© 2015 Microsoft