Theme file format - Otanikotani/tear-off-calendar GitHub Wiki
The proposed syntax for the theme file (should be pretty obvious from the example):
<?xml version="1.0" encoding="UTF-8"?>
<theme>
<name>My cool theme</name>
<description>This is a cool theme about cool stuff</description>
<startdate>2012-10-28</startdate>
<enddate>2012-10-31</enddate>
<textcards>
<textcard>
<date>2012-10-28</date>
<text>
<![CDATA[
<html>
<head></head>
<body>
This is a <b>test</b> text card for 28th of Octover, 2012. The text here should be entertaining, not as boring as it is.
</body>
</html>
]]>
</text>
</textcard>
<textcard>
<date>2012-10-29</date>
<text>
<![CDATA[
<html>
<head></head>
<body>
This is another <b>test</b> text card for 29th of Octover, 2012. The text here should be entertaining, not as boring as it is.
</body>
</html>
]]>
</text>
</textcard>
<textcard>
<date>2012-10-30</date>
<text>
<![CDATA[
<html>
<head></head>
<body>
This is extra <b>test</b> text card for 30th of Octover, 2012. The text here should be entertaining, not as boring as it is.
</body>
</html>
]]>
</text>
</textcard>
<textcard>
<date>2012-10-31</date>
<text>
<![CDATA[
<html>
<head></head>
<body>
This is the last <b>test</b> text card for 31th of Octover, 2012. The text here should be entertaining, not as boring as it is.
</body>
</html>
]]>
</text>
</textcard>
</textcards>
</theme>
The elements:
/theme/name
- the name of the theme
/theme/description
- the description
/theme/startdate
- the start date of the theme, format is always yyyy-mm-dd
/theme/enddate
- the enddate of the theme, format is always yyyy-mm-dd
/theme/textcards/textcard
- the textcards
/theme/textcards/textcard/date
- textcards date
/theme/textcards/textcard/text
- the text (html formatted) of the textcard