Page 1 of 1

Invalid XML

Posted: Tue Jan 18, 2011 8:51 pm
by en5ads
Hi, I have downloaded an XML file through XMLTV GUI V3.14 and it has an error;

<programme start="20110121170000 +0000" stop="20110121172500 +0000" channel="UK_RT_482">
<title lang="en">Tracy Beaker Returns</title>
<desc lang="en">How this light but moving drama continues to deliver entertainment with punch is little short of miraculous. After more than 140 episodes it&apos;s as good as ever. This week, when everyone hears the story of two African brothers who have been left at the Dumping Ground, they decide to hide them in the attic in case anyone comes to send them homeĀ£&133;.</desc>

&133 is not valid and causes the following error in perl

not well-formed (invalid token) at line ...

and a similar error in java

Any chance of a fix? I can't correct it in perl via an XML parser as it crashes the parser (apparently this is what it is supposed to do).

Re: Invalid XML

Posted: Tue Jan 18, 2011 9:48 pm
by en5ads
Correction, have fixed in perl by parsing as a text file. But it still should be fixed at source, i.e. in XMLTV

Anthony

Re: Invalid XML

Posted: Tue Jan 18, 2011 10:02 pm
by alanbirtles

Re: Invalid XML

Posted: Tue Jan 18, 2011 10:39 pm
by en5ads
That was quick, and it works! Thanks

<programme start="20110121170000 +0000" stop="20110121172500 +0000" channel="UK_RT_482">
<title lang="en">Tracy Beaker Returns</title>
<desc lang="en">How this light but moving drama continues to deliver entertainment with punch is little short of miraculous. After more than 140 episodes it&apos;s as good as ever. This week, when everyone hears the story of two African brothers who have been left at the Dumping Ground, they decide to hide them in the attic in case anyone comes to send them home&133;.</desc>

Re: Invalid XML

Posted: Sun Jan 23, 2011 12:24 pm
by Marc
Hi, this is causing me problems loading the data into GBPVR's EPG. Manually removing " &133 " from the data file solves the problem as a temp fix. From how I read the posts above Alan already has a fix for this but following the link asks for a password. I have registered and activated on the site but still can't get in to get the fix. What am I doing wrong? (using ie 8 shows site certificate out of date to which I am answering carry on I trust the site or does it take a while for my new account to become fully active?) Advanced thanks for any help!

Re: Invalid XML

Posted: Sun Jan 23, 2011 12:26 pm
by alanbirtles
see the sticky post for login details

Re: Invalid XML

Posted: Sun Jan 23, 2011 5:48 pm
by Marc
Alan,
thanks for the guidance, need to put more effort into my reading in future! That's solved the problem. Thanks for a speedy update to your super reliable program, to fix a problem caused by someone else's programming :D

Marc

Re: Invalid XML

Posted: Fri Feb 11, 2011 8:07 pm
by vistadeon
Thanks for this, works now using the main program. However i have the XMLTVConsole running as scheduled each day, the console is generating the same invalid entrys in the xml.
Any ideas.?
Thankyou

Edit: OK No worries set up a scheduled task in windows 7, to run main progarm with the /grab /silent args and all works perfectly.

Thanks for a great app.