Hi,
I am using pyton to code a small script which fills up an xml template which I define. The python code read an C file which has an array of strings seperated my commas. Something like this shown below.
array myvector[] = {
{"1" , "March", "1st", "2017"},
{"2" , "March", "2nd", "2017"},
{"3" , "March", "3rd", "2017"},
.....
{"1" , "April", "1st", "2017"},
....
{"31" , "December", "31st", "2017"}
{NULL , NULL, NULL, NULL}
};
My python script replaces the strings like "March", "April", and ... till "December" in the {month} and number 1st, 2nd, 3rd, ... in the {day} part in the xml structure.
The funny thing is when I run my script, everything looks good except the last two days of December. The xml structure is only partly printed out. When I add an extra space or remove and extra sapce from **xmlTemplate** the printout of the xml structure for the last entries like the days in December get partly printed. I have no idea what is going wrong. Does it have to do with the formating of the xmlTemplate. Could someone advice me on what to do?
What I have tried:
I tried formating the spaces in the template but it does not help.