SharePoint 2013 - SPLessons

SharePoint Elements.XML

Home > Lesson > Chapter 62
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

SharePoint Elements.XML

SharePoint Elements.XML

Element.xml file contains the actual feature element. It can contain elements like list instance,  field, Content type, list template, workflow..etc Specifies a support file required for the Feature. [xml]</pre> <ElementFile  Location = "Text"></ElementFile> <pre>[/xml] In the following example, the ElementFile element is used to deploy language resources used to localize a Feature. [xml] <Feature xmlns="http://schemas.microsoft.com/sharepoint/"  Id="4f670c98-0b81-41e0-8793-ab4325c57938"  Title="$Resources:WeeklyStatusListFeature"  Description="$Resources:WeeklyStatusListFeatureDesc"  Scope="Web">  <ActivationDependencies>    <ActivationDependency FeatureId="e874ff63-dd9b-49ec-a96e-6e4ba163838e"       FeatureDescription="$Resources:WeeklyStatusReportFeatureDesc"       FeatureTitle="$Resources:WeeklyStatusReportFeature" />  </ActivationDependencies>  <ElementManifests>    <ElementManifest Location="ListInstance1\Elements.xml" />    <ElementManifest Location="Resources\Elements.xml" />    <ElementFile Location="Resources\Resources.resx" />    <ElementFile Location="Resources\Resources.es-es.resx" />    <ElementFile Location="Resources\Resources.en-us.resx" />  </ElementManifests></Feature></pre> <pre>[/xml]