Yeah, I swapped between those options just to see what they would do, but it just changed those entries from 0 KGTVDT to KGTVDT 0. I had it setup originally how you suggested.
I've done a clean test and the code is pulling channel numbers...so something is not quite right up on your setup.
I would suggest deleting the zap2xml cache folder under userdata and rerunning.
As a test of the code - you can unzip the current version in windows. Open a command prompt from that folder and run the code by entering:
replacing username and password with your account
This will run the code with basic options and you should quickly get an xmltv.xml file you can check. That should have the channel numbers in it.