Configure SMART awareness of caml files for wss3.0

Source: Internet
Author: User
From: http://msdn2.microsoft.com/en-us/library/bb507730.aspx
Author: Ted Pattison, ted
Pattison Group
Applied to: Windows SharePoint
Services 3.0, Microsoft Office Sharepoint Server 2007, Microsoft
Visual Studio 2005.

Overview:


During wss3.0 development, you often need to create or modify XML files that contain the markup language (caml) of the collaborative application. Therefore, we recommend that you set visual
Studio is configured as a reference to an XML schema file named WSS. XSD to support intelligent awareness (intelliisense) when operating on caml files ).

Code:


Create a new text file named caml. xml and add the following XML code:

<Schemacatalog xmlns = "http://schemas.microsoft.com/xsd/catalog">

<Schema href = "C: \ Program Files \ common
Files \ microsoft shared \ Web Server
Extensions \ 12 \ template \ XML \ WSS. XSD"


Targetnamespace = "http://schemas.microsoft.com/sharepoint/"/>

Schemacatalog>


Next, save the file to "C: \ Program Files \ Microsoft Visual Studio
8 \ XML \ schemas \ caml. xml ". (Note: This location is visual
Studio installation directory. The file name caml. XML can also be named as another name, as long as the suffix is. XML)


Disable and restart visual
Studio. At this point, when you operate based on the dependency http://schemas.microsoft.com/sharepoint/
Namespace "the file smart sensing function of the namespace's caml should be available.

Related Knowledge:

Visual
Studio has a special directory (c: \ Program Files \ Microsoft Visual Studio
8 \ XML \ schemas \), which is used to maintain an XML architecture (XML
Schema) directory to drive smart perception features. Visual
When studio was installed, a standard file named catalog. XML was added to this directory. The XML content contained in the file references the standard XML architecture. These architectures drive visual
The default smart sensing function in studio. However, this mechanism is completely scalable. You can simply create other files with the. xml extension, reference other non-standard XML modes, and copy them to the same directory. After copying this file to the correct location, you must restart visual
Studio. This is because
When studio is started, check all XML files in this directory and determine which files can be loaded to drive smart sensing.

The effect is as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.