Many aspects of the WSS development process involve the creation and maintenance of XML files. Editing an XML file without an intimate knowledge of the underlying schema file (XSD) is quite difficult. Doing so in an environment that supports IntelliSense and not having IntelliSense available to you while editing your XML files can be very disappointing. WSS v3 does in fact ship with an XSD file that you can attach to your environment. The following steps outline this process and we highly recommend that you walk through it before beginning any of the hands-on examples in this chapter.
Open Windows Explorer and navigate to [Visual Studio 2005 Installation Directory]\Xml\Schemas.
Create a new XML file, and insert the following snippet into it:
<SchemaCatalog xmlns="http://schemas.microsoft.com/xsd/catalog"> <Schema href="file://C:/Program Files/Common Files/Microsoft Shared/web server extensions/12/TEMPLATE/XML/wss.xsd" targetNamespace="http://schemas.microsoft.com/sharepoint/"/> </SchemaCatalog>
Save the file and give it a meaningful name, such as wsscatalog.xml.
Open Visual Studio 2005 and create a new XML file.
Create a WSS v3 XML file root node such as <Feature>, add the xmlns attribute and choose the SharePoint namespace from the list provided to you by IntelliSense.
From this point forward, you will have IntelliSense available to you as you edit this file for all elements and attributes. This will certainly make your life much easier as you begin to create, edit, and maintain all of the different types of XML files you will encounter during your WSS v3 development experiences.
In addition, all references to the SDK are referring to the Windows SharePoint Services 3.0 SDK located at the following URL (http://msdn2.microsoft.com/en-us/sharepoint/default.aspx).