Tony:
On Feb 12, 2004, at 2:08 PM, QT - Tony Collen wrote:
> Not sure if there's still interest, but I've picked up
> openWeather a little bit more lately. I've got a program
> parsing the data at
>
http://weather.noaa.gov/pub/data/forecasts/city/ into XML, and I
> will have forecasts put up on the openweather site within the
> next couple days I would imagine.
Nice work.
> Here's the sample "raw" xml format I am using. As you can see,
> it's pretty well marked up. Any input on the intermediate format
> (which will also be provided) is welcome. I apologize if this
> does not come through correctly:
I actually think it should be MORE marked up. Also, the DTD would be more useful than sample output...
Comments on potential additional markup in-line:
> <?xml version="1.0" ?>
> <fc>
> <header>
> <city>Anchorage</city>
> <state>AK</state>
> <issued>
> <time>Wednesday morning</time>
> <date>Feb 4</date>
> <year>2004</year>
Is there an existing date format that can be used? Like, dc:date ? Transformations should be done earlier rather than later, IMHO.
Don't know why it has to be wrapped in "header"...why not:
<location>
U
</location>
<issued>
U
</issued>
> <forecast>Cloudy, high 22, 0% chance of
> precipitation.</forecast>
<forecast>
<description>cloudy</description> <-- normalize case
<high>22</high> <-- what about units? e.g. <high units="celsius"> <low>18</low>
<precipitation>0</precipitation>
</forecast>STRIPMIME_JOINLINES