Collaborative Application Markup Language

Collaborative Application Markup Language

CAML (Collaborative Application Markup Language) is an XML based markup language used with the family of Microsoft SharePoint technologies (Windows Sharepoint Services and Office SharePoint Server). Unlike plain XML, CAML contains specific groups of tags to both define and display (render) data.

Contents

Elements

CAML allows developers to both construct and display data. Microsoft refers to elements used to construct data as "Definition" elements and 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:

  <Fields>
    <Field Type="Counter" Name="ID"/>
    . . . other field definitions. . .
  </Fields>

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

  <IfEqual>
     <Expr1>
        <Field Name="CheckedOutUserId" />
     </Expr1>
     <Expr2 />
     <Then />
     <Else>
       Some more CAML
     </Else>
  </IfEqual>

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:

  <ForEach Select="CHOICES/CHOICE">
    <HTML>fld.AddChoice(</HTML>
    <ScriptQuote>
       <Property Select="."/>
    </ScriptQuote>
    <HTML>, </HTML>
    <ScriptQuote>
       <Property Select="Value"/>
    </ScriptQuote>
    <HTML>);</HTML>
  </ForEach>

Using in SharePoint Products

In general, almost all XML files in a SharePoint installation utilize 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.

CAML can be used by software developers to query against SharePoint lists and views, when programming against the SharePoint API (CAML is supported by SharePoint Web Services and by the SharePoint Object Model).

CAML query syntax can be created graphically from an existing SharePoint list by using the U2U CAML Generator tool.

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Collaborative Application Markup Language — CAML (Collaborative Application Markup Language) ist eine auf XML basierende Auszeichnungssprache, welche speziell für die Microsoft SharePoint Produkte (z.B. Microsoft SharePoint Foundation und Microsoft SharePoint Server) entwickelt wurde und… …   Deutsch Wikipedia

  • Collaborative Application Markup Language — Язык разметки совместных приложений (CAML) это язык на основе XML, используемый в системе Службы Windows SharePoint Services для определения сайтов и списков, использующих поля и представления. CAML используется также для определения таблиц в… …   Википедия

  • Mashup (web application hybrid) — In Web development, a mashup is a Web page or application that uses and combines data, presentation or functionality from two or more sources to create new services. The term implies easy, fast integration, frequently using open APIs and data… …   Wikipedia

  • Microsoft SharePoint — 2010 Microsoft SharePoint 2010 Web interface Develope …   Wikipedia

  • CAML — may mean:* Caml, a dialect of the ML programming language * Collaborative Application Markup Language, an XML based markup language used with the Microsoft SharePoint collaborative portal applicationSee also: * Camel (disambiguation) …   Wikipedia

  • Fourth-generation programming language — A fourth generation programming language (1970s 1990) (abbreviated 4GL) is a programming language or programming environment designed with a specific purpose in mind, such as the development of commercial business software.[1] In the history of… …   Wikipedia

  • Massively distributed collaboration — The term massively distributed collaboration was coined by Mitchell Kapor, in a presentation at UC Berkeley on 2005 11 09, to describe an emerging activity of wikis and electronic mailing lists and blogs and other content creating virtual… …   Wikipedia

  • SharePoint — SharePoint, или Microsoft SharePoint Products and Technologies  это коллекция программных продуктов и компонентов, которая включает в себя следующие компоненты: Набор веб приложений для организации совместной работы Функциональность для… …   Википедия

  • SPPS — SharePoint веб ориентированная платформа для совместной работы и система управления документами, разработанная и продаваемая компанией веб портала, на котором размещаются совместно используемые документы или специализированные приложения, такие… …   Википедия

  • Sharepoint — веб ориентированная платформа для совместной работы и система управления документами, разработанная и продаваемая компанией веб портала, на котором размещаются совместно используемые документы или специализированные приложения, такие как вики или …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”