Developers often need to parse an XML document in order to get XML document nodes, child nodes and so on. But usually we have no idea how far the depth/nesting of child nodes can go. So we need some form of recursive technique to loop the nested nodes and help us grab the values we want.
The idea here might look really crazy. But on a few occasions, I’ve had to loop through an entire SharePoint Farm in search of a list with a unique title (and then create the corresponding SPList object). One time I’ve had to do this was when passing control to an aspx page in the layouts folder from a modal dialog that was just closed.
I wrote this post as a follow up to my last post: Add Custom Action To SharePoint Edit Control Block. Just like with the edit control block, SharePoint Developers often need to add a custom action to the SharePoint Ribbon.
SharePoint Developers often need to add a custom action to the SharePoint edit control block (ECB). I have had to do this many times myself and since there isn’t a lot of resources available on the subject, I decided to write this post for those who might want to do this sometime, and for myself as a future reference.
You may often need to remove HTML tags from some random text block and just display the raw text content. For example you may want to just display the text content of a multi-line rich text value using XSL. But since a multi-line rich text value is internally formatted with html, the html tags will be presented as part of the output.