MetaData element (List)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Used in list definitions (Schema.xml file) to separate list metadata from data.
<MetaData>
</MetaData>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
None
Child elements
- ContentTypes
- Default
- DefaultDescription
- DocumentLibraryTemplate
- Fields
- Forms
- Toolbar
- Validation
- Views
Parent elements
Occurrences
- Minimum: 0
- Maximum: 1
Example
The following sample illustrates the skeletal structure of a list with MetaData and Data elements.
<List Name="Announcements" Title="My Announcements">
<MetaData>
<Fields>
...
</Fields>
<Views>
...
</Views>
<Forms>
...
</Forms>
</MetaData>
<Data>
<Rows>
<Row>
...
</Rows>
</Data>
</List>