Not sure what you are asking about xmltv, but if you are looking for an example of a python xmltv grabber google tv_grab_nz-py.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)