title: Create SharePoint 2010 ribbon button programmatically w/o feature XML
body: <p>I have to create a SharePoint 2010 ribbon element (tabs, buttons, groups, etc.). Is there a way to create such elements via the SharePoint API without using custom actions?  </p>
  
  <p>Edit:
  I've just found the possibilty to add elements like this (<a href="http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx" rel="nofollow noreferrer">link</a>):</p>
  
  <pre><code>SPRibbon r = SPRibbon.GetCurrent(Page);
  r.RegisterDataExtension(/* XmlNode containing ribbon element code */);
  </code></pre>
  
  <p>Another workaround would be to append a custom web control and append dynamic controls to this "placeholder".</p>
  
  <p>Is there a way to create elements without using xml nodes?</p>