Collaborative Application Markup Language Article Index for
Collaborative
Website Links For
Collaborative
 

Information About

Collaborative Application Markup Language





ELEMENTS

CAML allows developers to both construct and display data. Microsoft refers to elements used to display data as "Rendering" elements.


Data Definition Elements

Data definition elements are used to define lists and sites in the same style as basic XML (but with a limited set of keywords). A simple definition of the fields in a list might look something like this:



. . . other field definitions. . .



A specific set of tags exists to compare and branch on data within CAML as well:








''Some more CAML''




There are also specialized tags provided for database queries.

Data Rendering Elements

CAML allows for the generation of HTML based on specific sets of tags. For example, the following example loops through some data and generates an HTML drop down menu of choices:


fld.AddChoice(



,



);



WHERE CAML IS USED IN SHAREPOINT PRODUCTS

In general, most if not all xml files in a sharepoint installation include CAML. Specifically CAML is very important in site and list definitions, via the Onet.xml files as well as other corresponding xml files. Here the CAML is used to define what elements exist on an instance of a site, and the display of these sub-elements, while the aspx files are used to define how to arrange and display those elements to form the site.


EXTERNAL LINKS

  • CAML on MSDN

  • [http://www.gotdotnet.com/Workspaces/Workspace.aspx?id=b63fe8c3-e2da-47a8-86d5-a854c6a1f869 CAML Schema definition