Get the resulting XML

Feb 11, 2013 at 4:57 PM
Hi again,

How can I get the whole XML code generated by the FluentRibbon API in my SharePoint solution ?

Thanks again :)
Coordinator
Feb 14, 2013 at 7:56 PM
There is no straight way to do it.
Though I can think of the following workaround:
  1. Create RibbonCustomAction and deploy it, say, to a web.
  2. Open up powershell and run the following script:
$w = get-spweb http://path-to-your-site
$w.UserCustomActions | Format-List > c:\temp\usercustomactions.txt
After that you can open this file in Notepad and copy the XML out of there.