GetProjSchema Method

Applies to: SharePoint Foundation 2010

Requests the XML schema for a Web site based on Microsoft SharePoint Foundation.

<Method ID="Text>
  <SetVar Name="Cmd">GetProjSchema</SetVar>
  <SetVar Name="SiteTemplate">Text</SetVar>
</Method>

Parameters

Parameter

Description

ID = "Text"

Application-specific string. In an HTML editor compatible with SharePoint Foundation, such as Microsoft Office SharePoint Designer 2007, the string provides the sequence number and name of the method.

Name = "Cmd"

Must be set to GetProjSchema.

Name = "SiteTemplate"

Specifies that one of the three Collaborative Application Markup Language (CAML) schema files that are listed in the following table is returned.

Following are the possible CAML schema files that can be returned for the SiteTemplate parameter.

Value

File

Description

docicon

DOCICON.XML

Contains a list of file types recognized by SharePoint Foundation (for example, for document library items and attachments), and maps them to the appropriate icons. This file can also be used to specify a custom ActiveX control for opening certain file types in an application.

fldtypes

FLDTYPES.XML

Contains the CAML that defines the base field types used in lists, describing the sort of data that is stored in each field and how the data is rendered.

vwstyles

VWSTYLES.XML

Defines the CAML for the view styles that can be applied in custom views.

If the SiteTemplate parameter is set to anything other than one of the previous values, then the GetProjSchema method returns the XML schema of the site.

Decoded

<Method ID="0,GetProjSchema">
  <SetVar Name="Cmd">GetProjSchema</SetVar>
</Method>