Spotted in At Least You're not Totally Engulfed in Flames. This guy is playing with the XML DOM tree in VW (which is exceptional btw!) and he's trying to make an RSS feed by building up the XML document.
James Robertson has modelled the RSS objects so that he can generate an RSS feed from regular objects, not XML.
And I generate RSS using SimpleWeb which has an API like the following:
self rss: [:rss |
rss description: 'This is my description'.
rss item: [:item |
item title: 'This is my item'.
item description: 'This is the description of the item']].
So on and so forth. Both techniques work well for reducing noise in the code and allowing you to abstract things further than just an XML DOM tree.