I’m trying make a calendar that reads information from an XML file, and this is my first experience with XML. When you click on a day that’s specified in the day (node?), the text specified will display in a text field. The colors will change, and startDay is used so that i know where to start the month on the calendar, which is basically a grid with 7x5. Am I going the wrong way with this? Is there a better way to do it? Is this XML file crap?
Any suggestions are appreciated
Thanks!
<?xml version="1.0" encoding="iso-8859-1"?>
<calendar version = "1.0">
<month>April</month>
<year>2005</year>
<startDay>6</startDay>
<totalDays>30</totalDays>
<colors>
<bgColor>0000ff</bgColor>
<fgColor>cccccc</fgColor>
<dayColor>cccccc</dayColor>
<mainTxtColor>0000cc</mainTxtColor>
<smallTxtColor>ffffcc</smallTxtColor>
</colors>
<quotes>
<day>
<num>2</num>
<text>Hello</text>
</day>
<day>
<num>4</num>
<text>Hello</text>
</day>
<day>
<num>5</num>
<text>XML is OK</text>
</day>
<day>
<num>6</num>
<text>Hello</text>
</day>
<day>
<num>8</num>
<text>XML is good</text>
</day>
<day>
<num>16</num>
<text>Hello</text>
</day>
</quotes>
</calendar>