2 messages in com.googlegroups.google-mashup-editorgetting data from multiple nodes of s...
FromSent OnAttachments
jbrecht19 Jun 2007 09:17 
Jason19 Jun 2007 14:27 
Subject:getting data from multiple nodes of same type
From:jbrecht (secr@gmail.com)
Date:06/19/2007 09:17:14 AM
List:com.googlegroups.google-mashup-editor

If entries in a feed I am extracting data from have multiple nodes of the same type, how can I create a list (of potentially arbitrary length) of such nodes? E.g. - an entry in a flickr stream will have multiple "category" nodes containing the associated tags. How might I, for instance, create a template for this data that would include a common separated list of the tags? A sample flickr entry follows....

<atom:entry> <category scheme="http://www.flickr.com/photos/tags/" term="california"></category> <category scheme="http://www.flickr.com/photos/tags/" term="tuolumne"></category> <category scheme="http://www.flickr.com/photos/tags/" term="elizabethlake"></category> <category scheme="http://www.flickr.com/photos/tags/" term="yosemite"></category> <category scheme="http://www.flickr.com/photos/tags/" term="pine"></ category> <id>http://editor.googlemashups.com/feeds/remote/http%3A%2F %2Fwww.flickr.com%2Fservices%2Ffeeds%2Fgeo%2F%3Ftags%3Dcalifornia %2Cpine/tag%3Agoogle.com%2C2005%3Areader%2Fitem%2Fad9c38c3a4d1e6ce</ id> <published>2007-06-05T02:39:42.000Z</published> <dc:date.Taken>2007-05-30T14:49:48-08:00</dc:date.Taken> <link href="http://www.flickr.com/photos/thundercheese/530878072/" rel="alternate" type="text/html"></link> <link href="http://farm2.static.flickr.com/ 1317/530878072_1eead8c665_o.jpg" rel="enclosure" type="image/jpeg"></ link> <link href="http://editor.googlemashups.com/feeds/remote/http%3A%2F %2Fwww.flickr.com%2Fservices%2Ffeeds%2Fgeo%2F%3Ftags%3Dcalifornia %2Cpine/tag%3Agoogle.com%2C2005%3Areader%2Fitem%2Fad9c38c3a4d1e6ce" rel="self" type="application/atom+xml"></link> <source> <id>tag:google.com,2005:reader/feed/http://www.flickr.com/services/ feeds/geo/?tags=california,pine</id> <title type="html">Photos from everyone tagged california and pine, with geodata</title> <link href="http://www.flickr.com/photos/" rel="alternate" type="text/html"></link> </source> <title type="html">piney</title> <content type="html">

Thundercheese posted a photo:

piney </content> <author> <name>Thundercheese</name> </author> <georss:point>37.843672 -119.368225</georss:point> <geo:Point> <geo:lat>37.843672</geo:lat> <geo:long>-119.368225</geo:long> </geo:Point> <updated>2007-06-05T02:39:42.000Z</updated> </atom:entry>