I am having some issues with the rss feed on my site. The rss feed opens a download window, I tried all kinds of stuff before I decided to run the feed through a validator.... here is what it said.

This feed does not validate.

*line 1, column 134: XML parsing error: :1:134: not well-formed (invalid token)

... s:dc="http://purl.org/dc/elements/1.1/" 0="xmlns:media="http://sear ...

Source: http://mysite.com/feed

1. <?xml version="1.0" encoding="utf-8" ?>

I believe some how, some way, the &quot should not be there...
I am not sure where, how to get rid of it, change it...

Anyone come across this before.

Thanks,

Comments

webthingee’s picture

This feed does not validate.

    *

      line 1, column 134: XML parsing error: <unknown>:1:134: not well-formed (invalid token) [help]

          ... s:dc="http://purl.org/dc/elements/1.1/" 0="xmlns:media=&quot;http://sear ...
                                                       ^

Source: http://mysite.com/feed

   1. <?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://mysite.com" xmlns:dc="http://purl.org/dc/elements/1.1/" 0="xmlns:media=&quot;http://search.yahoo.com/mrss/&quot;">
webthingee’s picture

The URL you entered does not appear to be a valid feed. We encountered the following problem: Error on line 1: Element type "rss" must be followed by either attribute specifications, ">" or "/>".

e_log’s picture

Same problem here!

(to solve it fast and really dirty, I edited the file "views-view-rss.tpl.php" and replaced:
<?php print $namespaces; ?>
with
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/")

happy to hear a real solution.

webthingee’s picture

very cool work around... (applause)
I didn't even see that... great thinking e_log
for now, I am going to copy your solution!!
thanks for getting me up and running.

Maybe I'll link this issue in views, merlinofchaos will solve it in faster than we can say...

jotein’s picture

check out this node
http://drupal.org/node/301741