Skip to content

Commit

Permalink
xml file for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
joeleba committed Oct 26, 2016
1 parent d73d8bb commit a0615ae
Show file tree
Hide file tree
Showing 2 changed files with 324 additions and 1 deletion.
323 changes: 323 additions & 0 deletions data/demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,323 @@
<?xml version="1.0" ?>
<taskmanager>
<persons>
<title>Do 12 push ups</title>
<description>Or just sleep...</description>
<end>2016-10-12T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 12 apple</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS2103T</title>
<start>2016-10-12T18:00</start>
<end>2016-10-12T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Run 13 rounds</title>
<description>Or just sleep...</description>
<end>2016-10-13T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 13 banana</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS2103T</title>
<start>2016-10-13T18:00</start>
<end>2016-10-13T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Swim 14 laps</title>
<description>Or just sleep...</description>
<end>2016-10-14T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 14 grapes</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS2105</title>
<start>2016-10-14T18:00</start>
<end>2016-10-14T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Do 15 push ups</title>
<description>Or just sleep...</description>
<end>2016-10-15T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 15 banana</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS4224</title>
<start>2016-10-15T18:00</start>
<end>2016-10-15T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Run 16 rounds</title>
<description>Or just sleep...</description>
<end>2016-10-16T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 16 pineapple</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS2101</title>
<start>2016-10-16T18:00</start>
<end>2016-10-16T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Run 17 rounds</title>
<description>Or just sleep...</description>
<end>2016-10-17T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 17 banana</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS2105</title>
<start>2016-10-17T18:00</start>
<end>2016-10-17T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Swim 18 laps</title>
<description>Or just sleep...</description>
<end>2016-10-18T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 18 pineapple</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS2105</title>
<start>2016-10-18T18:00</start>
<end>2016-10-18T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Swim 19 laps</title>
<description>Or just sleep...</description>
<end>2016-10-19T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 19 grapes</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS2101</title>
<start>2016-10-19T18:00</start>
<end>2016-10-19T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Do 20 push ups</title>
<description>Or just sleep...</description>
<end>2016-10-20T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 20 apple</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS2105</title>
<start>2016-10-20T18:00</start>
<end>2016-10-20T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Run 21 rounds</title>
<description>Or just sleep...</description>
<end>2016-10-21T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 21 banana</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS2101</title>
<start>2016-10-21T18:00</start>
<end>2016-10-21T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Swim 22 laps</title>
<description>Or just sleep...</description>
<end>2016-10-22T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 22 grapes</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS4224</title>
<start>2016-10-22T18:00</start>
<end>2016-10-22T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Run 23 rounds</title>
<description>Or just sleep...</description>
<end>2016-10-23T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 23 pineapple</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS4224</title>
<start>2016-10-23T18:00</start>
<end>2016-10-23T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Do 24 push ups</title>
<description>Or just sleep...</description>
<end>2016-10-24T09:00</end>
<tagged>Healthy</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Buy 24 banana</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Work on CS4224</title>
<start>2016-10-24T18:00</start>
<end>2016-10-24T22:00</end>
<tagged>pain</tagged>
<isMarked>true</isMarked>
</persons>
<persons>
<title>Run 25 rounds</title>
<description>Or just sleep...</description>
<end>2016-10-25T09:00</end>
<tagged>Healthy</tagged>
<isMarked>false</isMarked>
</persons>
<persons>
<title>Buy 25 banana</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>false</isMarked>
</persons>
<persons>
<title>Work on CS4224</title>
<start>2016-10-25T18:00</start>
<end>2016-10-25T22:00</end>
<tagged>pain</tagged>
<isMarked>false</isMarked>
</persons>
<persons>
<title>Swim 26 laps</title>
<description>Or just sleep...</description>
<end>2016-10-26T09:00</end>
<tagged>Healthy</tagged>
<isMarked>false</isMarked>
</persons>
<persons>
<title>Buy 26 grapes</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>false</isMarked>
</persons>
<persons>
<title>Work on CS2101</title>
<start>2016-10-26T18:00</start>
<end>2016-10-26T22:00</end>
<tagged>pain</tagged>
<isMarked>false</isMarked>
</persons>
<persons>
<title>Run 27 rounds</title>
<description>Or just sleep...</description>
<end>2016-10-27T09:00</end>
<tagged>Healthy</tagged>
<isMarked>false</isMarked>
</persons>
<persons>
<title>Buy 27 apple</title>
<tagged>NTUC</tagged>
<tagged>fresh</tagged>
<isMarked>false</isMarked>
</persons>
<persons>
<title>Work on CS4224</title>
<start>2016-10-27T18:00</start>
<end>2016-10-27T22:00</end>
<tagged>pain</tagged>
<isMarked>false</isMarked>
</persons>
</taskmanager>
2 changes: 1 addition & 1 deletion data/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
start_day = 12
end_day = 28
yesterday = 25
output_file = 'addressbook.xml'
output_file = 'demo.xml'

def prettify(rough_string):
reparsed = minidom.parseString(rough_string)
Expand Down

0 comments on commit a0615ae

Please sign in to comment.