Author Topic: Parsing xml point forecast  (Read 705 times)

0 Members and 1 Guest are viewing this topic.

Offline dkinsc

  • Contributor
  • ***
  • Posts: 146
    • ClemsonKFAP Weather
Parsing xml point forecast
« on: November 17, 2011, 11:43:56 AM »
On my site I get an xml point forecast three times a day.  I parse it using powershell and stick the text in the middle of the page.  You can see it under "National Weather Service Clemson Forecast".  An occasional problem is that sometimes NWS changes the format of the point forecast xml, which breaks my parsing program until I figure out what changed and fix it.  For example, until yesterday I did not need to explicitly index the "data" segment; now I do.  And in looking at the xml file, I noticed that this is a developmental product,  not an official one.  I guess this means we take our chances, and should not be surprised at revisions.
I looked for an official product, and can't find one with WordedForecast in the data segment.  I like this because it is already translated into English, and is not just a set of icons and numbers.  Does anyone know how I could get a plain language text forecast for lat-long or zipcode in 12-hour periods?
Del
KSCCLEMS2 and DW6419

 

anything