I am writing a small module for my website. This module will read an xml feed from the NOAA. Now I have decent grasp of html and I have been reading quite a bit on XML. I can easily pull up the single data entries such as temp, location, and time of reading.
What I am having trouble with is pulling the weather icon. The path to the icon is stored as 2 elements in the XML file.
<icon_url_base>http://weather.gov/weather/images/fcicons/</icon_url_base>
<icon_url_name>bkn.jpg</icon_url_name>
How do I tell the HTML of the page to combine both of these elements into a single IMG statement? Or am I approching this completely wrong?
What I am having trouble with is pulling the weather icon. The path to the icon is stored as 2 elements in the XML file.
<icon_url_base>http://weather.gov/weather/images/fcicons/</icon_url_base>
<icon_url_name>bkn.jpg</icon_url_name>
How do I tell the HTML of the page to combine both of these elements into a single IMG statement? Or am I approching this completely wrong?