Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Coding Aids
 How to: Create Code Snippets for XM...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:

Want more? Here are some additional resources on this topic:

Visual Studio 
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.

Adding XML Code

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.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker