Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Calvi

#1
XMLTV (General) / Re: Changes to XMLTV feed
September 12, 2011, 03:33:49 PM
No problem.
#2
XMLTV (General) / Re: Changes to XMLTV feed
September 11, 2011, 08:20:54 AM
Hi,

your xmltv now does not validate against your iceguide.dtd file. I noticed because I use a guide combiner script and it validates all xml files first.

Some of the elements appear out of order and that violates Microsofts xml parser.

Your current .dtd is as follows...
<!ELEMENT programme (title+, sub-title*, desc*, credits?, date?,
                     category*, language?, orig-language?, length?,
                     icon*, url*, country*, episode-num*, video?, audio?,
                     previously-shown?, premiere?, last-chance?, new?,
                     subtitles*, rating*, star-rating?)>

but your xml file has items in the following order...

title, sub-title, desc, country, language, credits, category, episode-num, previously-shown, rating eg...

<title lang="en">Please Sir!</title>
<sub-title lang="en">Out of the Frying Pan</sub-title>
<desc lang="en">The students are hating the school meals and its up to Bernard to figure out how to fix the problem.(United Kingdom, English)</desc>
<country lang="en">United Kingdom</country>
<language lang="en">English</language>
<credits>
<actor>David Barry</actor>
</credits>
<category lang="en">Comedy</category>
<episode-num system="icetv">30611-122827</episode-num>
<previously-shown/>
<rating system="">
<value>PG</value>
</rating>


There is a validator here
http://msdn.microsoft.com/en-us/library/ms756015%28v=vs.85%29.aspx