Tuesday, August 18, 2009 at 7:29 PM.

myTwitterProfileSuite.getItemTitleDescription

on getItemTitleDescription (adritem) {
	<<Changes
		<<5/26/09; 10:35:19 PM by DW
			<<Created. 
	on decode (s) {
		return (xml.entitydecode (s, true, false, false))};
	local (xstruct);
	xml.compile (op.outlinetoxml (@adritem^.outline), @xstruct);
	local (adropml = xml.getaddress (@xstruct, "opml"));
	local (adrbody = xml.getaddress (adropml, "body"));
	local (adrtitleoutline = xml.getaddress (adrbody, "outline"), adr);
	adritem^.title = decode (xml.getattributevalue (adrtitleoutline, "text"));
	description = "";
	for adr in adrtitleoutline {
		if nameof (adr^) endswith "outline" {
			description = description + "<p>" + decode (xml.getattributevalue (adr, "text")) + "</p>"}};
	adritem^.description = description};
bundle { //test code
	setPodcastTitleDescription (@config.myTwitterProfile.calendar.["2009"].["05"].["26"].["00001"])}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.