From a0615ae067a0b7c60ee1a6c9f866c559eeb5f02e Mon Sep 17 00:00:00 2001 From: joeleba Date: Wed, 26 Oct 2016 08:12:54 +0800 Subject: [PATCH] xml file for demo --- data/demo.xml | 323 +++++++++++++++++++++++++++++++++++++++++++++++++ data/script.py | 2 +- 2 files changed, 324 insertions(+), 1 deletion(-) create mode 100644 data/demo.xml diff --git a/data/demo.xml b/data/demo.xml new file mode 100644 index 000000000000..9fd58a57cabd --- /dev/null +++ b/data/demo.xml @@ -0,0 +1,323 @@ + + + + Do 12 push ups + Or just sleep... + 2016-10-12T09:00 + Healthy + true + + + Buy 12 apple + NTUC + fresh + true + + + Work on CS2103T + 2016-10-12T18:00 + 2016-10-12T22:00 + pain + true + + + Run 13 rounds + Or just sleep... + 2016-10-13T09:00 + Healthy + true + + + Buy 13 banana + NTUC + fresh + true + + + Work on CS2103T + 2016-10-13T18:00 + 2016-10-13T22:00 + pain + true + + + Swim 14 laps + Or just sleep... + 2016-10-14T09:00 + Healthy + true + + + Buy 14 grapes + NTUC + fresh + true + + + Work on CS2105 + 2016-10-14T18:00 + 2016-10-14T22:00 + pain + true + + + Do 15 push ups + Or just sleep... + 2016-10-15T09:00 + Healthy + true + + + Buy 15 banana + NTUC + fresh + true + + + Work on CS4224 + 2016-10-15T18:00 + 2016-10-15T22:00 + pain + true + + + Run 16 rounds + Or just sleep... + 2016-10-16T09:00 + Healthy + true + + + Buy 16 pineapple + NTUC + fresh + true + + + Work on CS2101 + 2016-10-16T18:00 + 2016-10-16T22:00 + pain + true + + + Run 17 rounds + Or just sleep... + 2016-10-17T09:00 + Healthy + true + + + Buy 17 banana + NTUC + fresh + true + + + Work on CS2105 + 2016-10-17T18:00 + 2016-10-17T22:00 + pain + true + + + Swim 18 laps + Or just sleep... + 2016-10-18T09:00 + Healthy + true + + + Buy 18 pineapple + NTUC + fresh + true + + + Work on CS2105 + 2016-10-18T18:00 + 2016-10-18T22:00 + pain + true + + + Swim 19 laps + Or just sleep... + 2016-10-19T09:00 + Healthy + true + + + Buy 19 grapes + NTUC + fresh + true + + + Work on CS2101 + 2016-10-19T18:00 + 2016-10-19T22:00 + pain + true + + + Do 20 push ups + Or just sleep... + 2016-10-20T09:00 + Healthy + true + + + Buy 20 apple + NTUC + fresh + true + + + Work on CS2105 + 2016-10-20T18:00 + 2016-10-20T22:00 + pain + true + + + Run 21 rounds + Or just sleep... + 2016-10-21T09:00 + Healthy + true + + + Buy 21 banana + NTUC + fresh + true + + + Work on CS2101 + 2016-10-21T18:00 + 2016-10-21T22:00 + pain + true + + + Swim 22 laps + Or just sleep... + 2016-10-22T09:00 + Healthy + true + + + Buy 22 grapes + NTUC + fresh + true + + + Work on CS4224 + 2016-10-22T18:00 + 2016-10-22T22:00 + pain + true + + + Run 23 rounds + Or just sleep... + 2016-10-23T09:00 + Healthy + true + + + Buy 23 pineapple + NTUC + fresh + true + + + Work on CS4224 + 2016-10-23T18:00 + 2016-10-23T22:00 + pain + true + + + Do 24 push ups + Or just sleep... + 2016-10-24T09:00 + Healthy + true + + + Buy 24 banana + NTUC + fresh + true + + + Work on CS4224 + 2016-10-24T18:00 + 2016-10-24T22:00 + pain + true + + + Run 25 rounds + Or just sleep... + 2016-10-25T09:00 + Healthy + false + + + Buy 25 banana + NTUC + fresh + false + + + Work on CS4224 + 2016-10-25T18:00 + 2016-10-25T22:00 + pain + false + + + Swim 26 laps + Or just sleep... + 2016-10-26T09:00 + Healthy + false + + + Buy 26 grapes + NTUC + fresh + false + + + Work on CS2101 + 2016-10-26T18:00 + 2016-10-26T22:00 + pain + false + + + Run 27 rounds + Or just sleep... + 2016-10-27T09:00 + Healthy + false + + + Buy 27 apple + NTUC + fresh + false + + + Work on CS4224 + 2016-10-27T18:00 + 2016-10-27T22:00 + pain + false + + diff --git a/data/script.py b/data/script.py index bfff0c12c857..66a7453d3435 100644 --- a/data/script.py +++ b/data/script.py @@ -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)