Site schema
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
The Site schema of Collaborative Application Markup Language (CAML) is used to define metadata for creating websites, including the root site of site collections. A site definition specifies the navigation bars, list templates, document templates, list base types, configurations, modules, components, and server email footer for creating sites.
The site definition is specified through an Onet.xml file located in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\SiteTemplates, and through a WebTemp*.xml file located in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\1033\XML.
Sites can be created or modified programmatically through the object model (for example, members of the SPWeb and SPWebCollection classes, or members of the SPSite and SPSiteCollection classes). They can also be remotely created or modified through the Administration Web service (methods of the Admin class), the Document Workspace Web service (methods of Dws), or the Meetings Web service (members of Meetings).
Site schema elements
Onet.xml
<Modules> (see Module schema)
<Modules> (see Module schema)