OK let me give a little background...I am building a new website fro someone who wishes to have a calender on there and I have decided to use an XML file to store each date and it's even and then I have a HTML file which automatically add rows to accommodate the number of events.
The only thing is whenever I update the XML file, the date is never correct in the HTML file....so the question I ask is, what in the world is wrong? is it because I have a date preset in my code? Is there a way for the HTML file to check the XML file's modified date automatically?
code:
<body class="main">
<xml id="Calendar_Info" src="calendar.xml"></xml>
<table width="635">
<tbody>
<tr>
<td class="mainhead" align="center">
<div class="boldmaroonhead">Calendar</div>
<div class="blacktext">Last Updated On: 11 August 2004<!---- this section imports the data from the XML file into a table ---->
<div class="menuspace">
<table width="600" class="calendar_table" border="1"
bordercolordark="#B22222" bordercolorlight="#B22222" cellspacing="0"
cellpadding="2" datasrc="#Calendar_Info" id="CalendarTable">
<thead> <tr class="calendar_table">
<td width="175" class="calendarhead">
<div class="maroontext">Date</div>
</td>
<td width="425" class="calendarhead">
<div class="maroontext">Event Description</div>
</td>
</tr>
</thead> <tbody>
<tr>
<td align="left" valign="top" class="whitebg"><span
class="blacktext" datafld="date"></span><br>
</td>
<td align="left" valign="top" class="whitebg"><span
class="blacktext" datafld="$text"></span><br>
</td>
</tr>
</tbody>
</table>
<div class="menuspace"><!---- end section ---- !--> The
information presented on this is imported from an XML file which
consists of several 'event' elements which describes the particular
event as well as an attribute called 'date' which shows the date which
the event will occur. </div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</body>