
Creating the Solution
353
Unfortunately, list denitions and instances require that a large amount of XML be written. There
shouldn’t be too many additional times in which there will be such a large information dump in the
remainder of the chapter. The following steps lead you through the XML writing process.
1. Replace the existing Elements.xml (which should be open in VS) for the list denition with
the following XML:
<?xml version=”1.0” encoding=”utf-8”?>
<Elements xmlns=”http://schemas.microsoft.com/sharepoint/“>
<!-- Do not change the value of the Name attribute below. If it does not match
the folder name of the List Definition project item, an error will occur when the
project is run. -->
<ListTemplate
Name=”GlobalNavigationMenuList”
Type=”10000”
BaseType=”0”
OnQuickLaunch=”TRUE”
SecurityBits=”11”
Sequence=”410”
DisplayName=”Global Navigation Menu List”
Description=”Stores menus used by the Wrox.GlobalNavigation solution.”
Image=”/_layouts/images/itgen.png”/>
</Elements>
2. Open up the Schema.xml le beneath the GlobalNavigationMenuList, and replace the
contents with this XML:
<?xml version=”1.0” encoding=”utf-8”?>
<List xmlns:ows=”Microsoft SharePoint”
Title=”Global Navigation Menus List”
EnableContentTypes=”TRUE” DisableAttachments=”TRUE”
FolderCreation=”FALSE” Direction=”$Resources:Direction;”
Url=”Lists/Wrox.GlobalNavigation”
BaseType=”0” xmlns=”http://schemas.microsoft.com/sharepoint/“> ...