Friday, October 3, 2008

XML intellisense support for feature.xml file

This might be a well known point for developers who are already familiar in visual studio development environment. I am just putting this point for the beginners.

This is not specific to feature.xml file. We can use the same technique to get the intellisense support for other XML format files, the point is we need to select the appropriate schema files.

For feature.xml we need to do the following steps to get the intellisense support.

1.Add a blank XML file to your existing visual studio project and save it as feature.xml.

2.Select the properties of the feature.xml file.(F4) and click on the "schemas" property. a dialog box should open.

3.Click on the Add button.

4.Select the wss.xsd file from the Share Point schema location "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\wss.xsd"

5. Make sure the wss.xsd is selected in the "XSD Schema" window. Click on OK.


Now you should be able to use the Intellisense support for feature.xml file and other WSS related XML files

No comments: