If you need to use a more complex arrangement, such as combining outputs of multiple XMLTV scripts then I'd look at using the external socket interfaces and running the scripts from cron.
The external interface is a UNIX domain socket into which you can pump XMLTV data (using something like netcat). There is some info on the Help page for the EPG (in the app, the wiki is out of date).
Adam