I have created an elements.xml file to make a ribbon control for my test site but the control is not getting displayed on the ribbon. I am trying to look on a document library "shared documents" and below is my code.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="CustomRibbonControlTest1"
Location="Ribbon.Documents.New.Controls._children"
RegistrationId="101"
RegistrationType="List"
Title="CustomRibbonControlTest1Title"
Sequence="60"
>
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Documents.New.Controls._children">
<Button
Id="Ribbon.Documents.New.Controls.CustomCommandButton1_CustomRibbonControlTest1"
Command="JSAlert"
CommandType="General"
LabelText="Click Me To Test"
Sequence="60"
/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="JSAlert"
CommandAction="javascript:alert('hello world!');">
</CommandUIHandler>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>