Invalid XML

Discussion of Version 3 and developing lua grabbers
Post Reply
en5ads
Posts: 4
Joined: Sun Aug 22, 2010 9:19 pm

Invalid XML

Post by en5ads » Tue Jan 18, 2011 8:51 pm

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).

en5ads
Posts: 4
Joined: Sun Aug 22, 2010 9:19 pm

Re: Invalid XML

Post by en5ads » Tue Jan 18, 2011 9:48 pm

Correction, have fixed in perl by parsing as a text file. But it still should be fixed at source, i.e. in XMLTV

Anthony

alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Invalid XML

Post by alanbirtles » Tue Jan 18, 2011 10:02 pm


en5ads
Posts: 4
Joined: Sun Aug 22, 2010 9:19 pm

Re: Invalid XML

Post by en5ads » Tue Jan 18, 2011 10:39 pm

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>

Marc
Posts: 2
Joined: Sat Jan 22, 2011 11:41 am

Re: Invalid XML

Post by Marc » Sun Jan 23, 2011 12:24 pm

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!

alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Invalid XML

Post by alanbirtles » Sun Jan 23, 2011 12:26 pm

see the sticky post for login details

Marc
Posts: 2
Joined: Sat Jan 22, 2011 11:41 am

Re: Invalid XML

Post by Marc » Sun Jan 23, 2011 5:48 pm

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

vistadeon
Posts: 4
Joined: Fri Feb 11, 2011 8:02 pm

Re: Invalid XML

Post by vistadeon » Fri Feb 11, 2011 8:07 pm

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.

Post Reply