Monday, November 08, 2010 at 12:01 AM.


on getSizes (id, adrsizestable) {
		<<6/10/07; 1:52:36 PM by DW
	local (mystruct);
	new (tabletype, @mystruct);
	mystruct.api_key =;
	mystruct.photo_id = id;
	local (s = [] (mystruct), xstruct);
	s = xml.entitydecode (s, true);
	xml.compile (s, @xstruct);
	scratchpad.xstruct = xstruct;
	local (adrsizes = xml.getaddress (@xstruct, "sizes"), adr);
	new (tabletype, adrsizestable);
	for adr in adrsizes {
		if nameof (adr^) endswith "size" {
			adrsizestable^.[adr^.["/atts"].label] = adr^.["/atts"]}}};
bundle { //test code
	getSizes ("539372113", @scratchpad.sizes)}

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.