CHAPTER 13 CASE STUDY: USING PHP FOR AN XML APPLICATION 409 The page also contains a form that allows users to add a new weather report. To make life easier, the application provides a list of weather types in a drop-down list. This information comes from the element. Scenario 2: Changing Querystring Variables The second possibility occurs when users edit the querystring to add an invalid city code. This would produce the following XML document: Error You appear to have selected an invalid city This document provides users with an error message. Scenario 3: Current Weather Reports Available The final scenario shows a current weather report for the selected city. The XML document needs to include the current weather conditions with the possible weather types: Perth 20 35 hot hot sunny windy cloudy rain rainstorms snow snowstorms The element provides the minimum and maximum temperatures. The element is the current outlook for the city. It contains one of the predefined weather types. Now that you ve seen the XML document structures, I ll look at the code that builds these structures from the database.
If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.
This entry was posted
on Friday, January 18th, 2008 at 4:11 pm and is filed under Tomcat.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.