| The Hacker's Diet Online How to lose weight and hair through stress and poor nutrition |

# Hacker's Diet Online XML Example

- XML formatted with style sheet
- Document type description
- XML style sheet

2007-02.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/css" href="https://www.fourmilab.ch/hackdiet/online/hackdiet_db.css"?>
    <!DOCTYPE hackersdiet SYSTEM
            "https://www.fourmilab.ch/hackdiet/online/hackersdiet.dtd">
    <hackersdiet version="1.0">
        <epoch>2007-04-28T19:34:43Z</epoch>
        <account version="1.0">
            <user version="1.0">
                <login-name>Example</login-name>
                <first-name>Example</first-name>
                <middle-name>J.</middle-name>
                <last-name>Account</last-name>
                <e-mail>chef@ratburger.org</e-mail>
                <height>180</height>
                <account-created>2007-04-24T19:46:38Z</account-created>
            </user>
            <preferences version="1.0">
                <log-unit>kilogram</log-unit>
                <display-unit>kilogram</display-unit>
                <energy-unit>calorie</energy-unit>
                <current-rung>0</current-rung>
                <decimal-character>.</decimal-character>
            </preferences>
            <diet-plan version="1.0">
                <calorie-balance>-500</calorie-balance>
                <start-weight>85</start-weight>
                <goal-weight>75</goal-weight>
                <start-date>2006-03-15T00:00:00Z</start-date>
                <show-plan>1</show-plan>
            </diet-plan>
        </account>
        <monthlogs version="1.0">
        <monthlog version="1.0">
            <properties>
                <year>2007</year>
                <month>2</month>
                <weight-unit>kilogram</weight-unit>
                <trend-carry-forward>75.0163</trend-carry-forward>
                <last-modified>2007-04-28T19:34:15Z</last-modified>
            </properties>
            <days ndays="28">
                <day>
                    <date>1</date>
                    <weight>75.2</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment></comment>
                </day>
                <day>
                    <date>2</date>
                    <weight>73.8</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment></comment>
                </day>
                <day>
                    <date>3</date>
                    <weight>75.9</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment>London</comment>
                </day>
                <day>
                    <date>4</date>
                    <weight>74.2</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment>&#x41c;&#x43e;&#x441;&#x43a;&#x432;&#x430;</comment>
                </day>
                <day>
                    <date>5</date>
                    <weight>74.3</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment>&#x41c;&#x43e;&#x441;&#x43a;&#x432;&#x430;</comment>
                </day>
                <day>
                    <date>6</date>
                    <weight>76.3</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment>&#x6771;&#x4eac;</comment>
                </day>
                <day>
                    <date>7</date>
                    <weight>75.8</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment>&#x6771;&#x4eac;</comment>
                </day>
                <day>
                    <date>8</date>
                    <weight>75.1</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment>&#x5e73;&#x58e4;&#x76f4;&#x8f44;&#x5e02;</comment>
                </day>
                <day>
                    <date>9</date>
                    <weight>74.5</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment>&#x5e73;&#x58e4;&#x76f4;&#x8f44;&#x5e02;</comment>
                </day>
                <day>
                    <date>10</date>
                    <weight>74.7</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment>&#x5e73;&#x58e4;&#x76f4;&#x8f44;&#x5e02;</comment>
                </day>
                <day>
                    <date>11</date>
                    <weight>75</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment>&#x62a;&#x647;&#x631;&#x627;&#x646;</comment>
                </day>
                <day>
                    <date>12</date>
                    <weight>74</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment>&#x62a;&#x647;&#x631;&#x627;&#x646;</comment>
                </day>
                <day>
                    <date>13</date>
                    <weight>75.5</weight>
                    <rung></rung>
                    <flag></flag>
                    <comment>&#x637;&#x631;&#x627;&#x628;&#x644;&#x633;</comment>
                </day>
                <day>
                    <date>14</date>
                    <weight>74.3</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment>&#x637;&#x631;&#x627;&#x628;&#x644;&#x633;</comment>
                </day>
                <day>
                    <date>15</date>
                    <weight>74.5</weight>
                    <rung></rung>
                    <flag></flag>
                    <comment>Gen&#xe8;ve</comment>
                </day>
                <day>
                    <date>16</date>
                    <weight>73.9</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment></comment>
                </day>
                <day>
                    <date>17</date>
                    <weight>74.1</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment></comment>
                </day>
                <day>
                    <date>18</date>
                    <weight>75.6</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment></comment>
                </day>
                <day>
                    <date>19</date>
                    <weight>74.6</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment></comment>
                </day>
                <day>
                    <date>20</date>
                    <weight>75.3</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment></comment>
                </day>
                <day>
                    <date>21</date>
                    <weight>74.8</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment></comment>
                </day>
                <day>
                    <date>22</date>
                    <weight>74.5</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment></comment>
                </day>
                <day>
                    <date>23</date>
                    <weight>75.4</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment></comment>
                </day>
                <day>
                    <date>24</date>
                    <weight>74.9</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment></comment>
                </day>
                <day>
                    <date>25</date>
                    <weight>75</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment></comment>
                </day>
                <day>
                    <date>26</date>
                    <weight>74.9</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment></comment>
                </day>
                <day>
                    <date>27</date>
                    <weight>75.4</weight>
                    <rung>36</rung>
                    <flag>1</flag>
                    <comment></comment>
                </day>
                <day>
                    <date>28</date>
                    <weight>75.3</weight>
                    <rung>36</rung>
                    <flag></flag>
                    <comment></comment>
                </day>
            </days>
        </monthlog>
        </monthlogs>
    </hackersdiet>

### Back to The Hacker's Diet Online

The Hacker's Diet
by John Walker