invalid xml in tivo video details?

Discussion in 'TiVo Home Media Features & TiVoToGo' started by jtkohl, Dec 21, 2011.

  1. jtkohl

    jtkohl Member

    170
    0
    Feb 6, 2004
    Arlington,...
    I have a show on my TiVo that, when described by a TiVoVideoDetails query through https, results in an invalid XML document.
    The URL to the show details is something like https:// <hostname> /TiVoVideoDetails?id=<numeric show id>

    This particular show has an ampersand in its title, as well as an eacute (é).
    The ampersand is encoded as "&&amp;" instead of just "&amp;"

    Has anybody else run into invalid XML in this query?

    My Galleon server ran into this problem; using curl to get the same URL I see the invalid XML (returned as content-type text/xml). Using wget I also get the same invalid XML.

    Sample from the XML:
    Code:
    	  <seriesTitle>
    	  Pokémon: Black &&amp; White</seriesTitle>
    
     
  2. wmcbrine

    wmcbrine Well-Known Mumbler

    11,655
    786
    Aug 2, 2003
    Yeah, it has some problems sometimes.
     
  3. jtkohl

    jtkohl Member

    170
    0
    Feb 6, 2004
    Arlington,...
    Anything to do other than special case this? (look for & & amp; and replace with & amp ; ) ?
     
  4. wmcbrine

    wmcbrine Well-Known Mumbler

    11,655
    786
    Aug 2, 2003
    Use a lax parser. :) I haven't had a problem with Python's minidom, that I can recall. I've seen Firefox barf on them, IIRC, but that rarely matters.
     

Share This Page