PANVEGA’s Blog

DotNet Development, SharePoint Customizing, Silverlight, MS Infrastructure and other tips and tricks

Using the SharePoint wss.xsd Schema to validate the xmls

Posted by PANVEGA on May 10, 2008

When you add and modify XML within CAML-based files, such as feature.xml and elements.xml, you want to add support for XML schema-driven IntelliSense. Inside the TEMPLATE directory there is a directory named XML that contains several XML schemas including one named wss.xsd.

If you associate this schema file with feature files, like feature.xml and elements.xml, Visual Studio will provide IntelliSense, making it much easier to author a custom feature.

Go to navigate to the directory where wss.xsd file is located. This file is located in the “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML” location on the sharepoint server.

If you do not have a local installation of sharepoint you can copy the wss.xsd to your development machine and reference that file in the schema dialog box.

Once you have done this you will have intellisense for the feature and element xm based files, which will make developing the feature and elements xml files much easier. As you can see in the following screenshot intellisense is working based on the XSD.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: