List Element
The List element is the top-level element that contains the entire definition of a list.
Syntax
<List
BaseType = "Integer" | "Text"
Name = "Text"
Title = "Text"
Url = "URL">
</List>
Attributes
Name | Description |
---|---|
BaseType | Optional. The BaseType attribute can be set to Integer, which stores values as integers, or to Text (default), which stores values as text. Note that it is illegal to create integer base-type choice fields. |
Name | Required Text. The internal name of a list. |
Title | Required Text. The generic display name of a list. |
Url | Optional URL. Specifies the path to the wwwroot folder containing the HTML files to which the list definition applies, relative to the root URL of the Web site. |
URLEncode | Optional Boolean. When TRUE, converts special characters, such as spaces, to quoted UTF-8 format (for example, %c3%ab for character ). |
Related Elements
Parent Elements | Child Elements |
---|---|
Case, Default, Expr1, GlobalLists, ListFormOpening, SetVar, Toolbar | Data, MetaData |
Remarks
If List is the root element of the XML file, it must contain the SharePoint Team Services ows: namespace declaration. The following line is the opening of FLDTYPES.XML:
<List xmlns:ows="Microsoft SharePoint" Name="FieldTypes" Title="Field Definitions">
For another example, see Example 5 Adding a field to a list in a custom document library.