The example parses the <day> tag. The data is coming attributes that looks
like:
<day label="Thursday "
imageurl="http://www.srh.noaa.gov/ifps/text/images/few.jpg"
desc="Mostly Sunny" temp="Hi 45°F "/>
The complete file (from LPP-3379) is below:
<weather sourceurl="http://www.srh.noaa.gov/zipcity.php?inputstring=10022">
<forecast>
<day label="TODAY"
imageurl="http://www.srh.noaa.gov/ifps/text/images/hi_shwrs70.jpg"
desc="Rain Likely" temp="Hi 60°F "/>
<day label="Tonight "
imageurl="http://www.srh.noaa.gov/ifps/text/images/nwind.jpg"
desc="Breezy " temp="Lo 34°F "/>
<day label="Wednesday "
imageurl="http://www.srh.noaa.gov/ifps/text/images/wind.jpg"
desc="Breezy " temp="Hi 46°F "/>
<day label="Wednesday Night"
imageurl="http://www.srh.noaa.gov/ifps/text/images/nwind.jpg"
desc="Breezy " temp="Lo 30°F "/>
<day label="Thursday "
imageurl="http://www.srh.noaa.gov/ifps/text/images/few.jpg"
desc="Mostly Sunny" temp="Hi 45°F "/>
<day label="Thursday Night"
imageurl="http://www.srh.noaa.gov/ifps/text/images/nsn30.jpg"
desc="Chance Snow" temp="Lo 32°F "/>
<day label="Friday "
imageurl="http://www.srh.noaa.gov/ifps/text/images/sn40.jpg"
desc="Chance Snow" temp="Hi 38°F "/>
<day label="Friday Night"
imageurl="http://www.laszlosystems.com:80/weather/images/nsct.jpg"
desc="Partly Cloudy" temp="Lo 26°F "/>
<day label="Saturday "
imageurl="http://www.srh.noaa.gov/ifps/text/images/few.jpg"
desc="Mostly Sunny" temp="Hi 40°F "/>
</forecast>
<current>
<windspeed>E 8 MPH</windspeed>
<when>Mar 14, 3:51 am EST</when>
<dewpoint>46°F (8°C)</dewpoint>
<station>New York, La Guardia Airport</station>
<barometer>29.42" (996.4 mb)</barometer>
<where>New York, NY
</where>
<temp>49°F</temp>
<desc> Fog/Mist</desc>
<heatindex>None</heatindex>
<humidity>90 %</humidity>
</current>
<radar src="http://www.laszlosystems.com:80/weather/small/kdix.jpg"/>
<satellite
src="http://www.laszlosystems.com:80/weather/thumbs/ECI8.JPG"/>
</weather>
So the grid component creates attributes under the covers when it is
binding against a dataset? I'm still confused about how attributes
enter into the picture here.
On Jan 26, 2007, at 3:57 PM, Philip Romanik wrote:
> (Somebody correct me if I'm wrong) The attributes are in a hash
> table and the order they are processed is browser/platform
> dependent. It appears as though the hash table is built in reverse
> order in legals compared to OL3 (and swf iterates on a hash table
> in a predictable order).
>
> What behavior would you like to see? Is it sufficient for the
> behavior of legals/swf to match OL3, or does it need to match
> legals/dhtml as well?
>
> Thanks!
>
> Phil