View Single Post
Old 29th June 2008, 04:42 AM   #4 (permalink)
pclare
Newbie
No Avatar
Status pclare is Offline:
ActivityPosts: 5
Reputation & Thanks Support Rating:
pclare
Points Earned: 14

pclare has been Thanked 2 times in 1 posts
Re: Microsoft EPG XML file format

Quote:
Originally Posted by VMCUser View Post
Hi all,
I'm developping my own epg grabber application without using the xmltv file format but directly the microsoft one.... and i'm trying to understand the format of the official xml downloaded from microsoft, but i failed to understand all the attributes of <p> and <se> elements.... i also don't understand the relation between a program and attributes like cathegories...
It's pretty easy to figure out if you look at guide data from one of the official guide server sources.

The programme attribute value is made up of bits set corresponding to the attributes listed in the <programAttributes> section near the start of the data file. The first attribute listed there corresponds to bit 0, the next attribute bit 1, etc. These bits are simply ORed together to produce the attribute value (in decimal). So, for example, if the programme is a movie and MSEPGA_MOVIE is the first attribute listed then set bit 0 of the attribute number. If it's not a movie then the bit must be clear.

The schedule entry attributes work in exactly the same way, but with the (different) list of attributes given in the <scheduleEntryAttributes> section of the data file.

In either case, if the attribute value is 0 (i.e. no bits set at all) then it is not necessary to include the attribute setting in the file. You might choose to omit this to keep the file as short as possible (although here in the UK, the BDS guide data doesn't bother with this optimisation).

Pete
  Reply With Quote