Basic XML stuff... but new to me.
I am developing a simple scheduler which has an ON and OFF event for each of the 7 days of the week and 6 "zones". The configuration is stored in an XML file called xmlSchedulerConfigFile.
What is the best way to:
1. Structure the XML file?
Here's a preliminary XML file structure.
<?xml version="1.0"?><SchedulerConfigFile><Days><DayOfWeek>Monday</DayOfWeek><Zone1ON>8:00 AM</Zone1ON><Zone1OFF>6:00 PM</Zone1OFF><Zone2ON>8:00 AM</Zone2ON><Zone2OFF>6:00 PM</Zone2OFF><Zone3ON>8:00 AM</Zone3ON><Zone3OFF>6:00 PM</Zone3OFF><Zone4ON>8:00 AM</Zone4ON><Zone4OFF>6:00 PM</Zone4OFF><Zone5ON>8:00 AM</Zone5ON><Zone5OFF>6:00 PM</Zone5OFF><Zone6ON>8:00 AM</Zone6ON><Zone6OFF>6:00 PM</Zone6OFF></Days><Days><DayOfWeek>Tuesday</DayOfWeek><Zone1ON>8:00 AM</Zone1ON><Zone1OFF>6:00 PM</Zone1OFF><Zone2ON>8:00 AM</Zone2ON><Zone2OFF>6:00 PM</Zone2OFF><Zone3ON>8:00 AM</Zone3ON><Zone3OFF>6:00 PM</Zone3OFF><Zone4ON>8:00 AM</Zone4ON><Zone4OFF>6:00 PM</Zone4OFF><Zone5ON>8:00 AM</Zone5ON><Zone5OFF>6:00 PM</Zone5OFF><Zone6ON>8:00 AM</Zone6ON><Zone6OFF>6:00 PM</Zone6OFF></Days>.....etc.
2. How do I access a specific Day/Zone (i.e. Monday, Zone1OFF) and return the text value of the time stored there?
Any suggestions and/or specific examples would be greatly appreciated.
Thx, MikeH