Click to See Complete Forum and Search --> : XML RSS Feed for Podcast Error, returns "unbound prefix"


paishin
08-20-2008, 09:27 PM
Hello everyone,
I am trying to create a php CMS system where you would add audio recordings and they will be converted into valid RSS for podcasts.
So far I have created the whole administrator panel but guess what....the XML does not validate.

Feeding the XML to www.feedvalidator.com returns the following
"This feed does not validate.
line 14, column 0: XML parsing error: <unknown>:14:0: unbound prefix [help]
<itunes:author>DJ Tsoxantzidis </itunes:author>"

I've been trying to figure out what's wrong but no luck...even if I remove this line I get the same problem for the following line (that now appears to be ok).

The feed can be found here: http://podcaster.webplusplus.net/admin/podcasts/podfeed.xml
and actual xml contents appear on feedvalidator.com when you add the feed.

Any help is appreciated.

paishin
08-22-2008, 02:27 PM
I still have this problem...can anybody help?

Kostas Zotos
08-23-2008, 06:47 PM
Hi,

I took a look on the xml file and seems OK..

Also I tried this feed validator and the file validates..

http://feedvalidator.org

Cheers!

Kostas

steveely
09-03-2008, 12:08 PM
I am having a similar issue. My podcast has suddenly quit working. Feedvalidator gives me this message.

line 11, column 0: XML parsing error: <unknown>:11:0: unbound prefix [help]

This is line 11:

<itunes:subtitle>You Can't Live Without Passion</itunes:subtitle>

I am lost. I have tried everything from changing the line to removing it completely and I only get the same message. Any help would be greatly appreciated.

My rss feed is http://www.passionchurch.tv/podcast/itunesrss.xml.

Thanks.

Kostas Zotos
09-03-2008, 02:12 PM
The rss I saw is not a well-formed xml file..

In the rss there is a prefix (itunes) used in several elements like:
<itunes:subtitle>You Can't Live Without Passion</itunes:subtitle>
however in the xml file, there is not an appropriate namespace uri for that prefix.

The same is true for the other prefix that used (atom)
<atom:link href="... etc..

The author of that rss file need to define the namespaces for these prefixes:
In the parent element where they appear or better in the root element of the file like this (as shown in bold):

<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Passion Church - Oklahoma City</title>
<link>http://www.passionchurch.tv</link>
<language>en-us</language>
<copyright>&#x2117; &amp; &#xA9; 2007 Passion Church</copyright>
... ...
... ...
etc..


Cheers!

Kostas

paishin
09-04-2008, 09:51 AM
As Kostas also said the problem was indeed caused by incorrect namespace,
at the beginning of the XML of the RSS feed I had xmlns:atom="http://www.w3.org/2005/Atom" which is fine for normal Podcast feeds...
the problem starts when you try to add an iTunes tag.

So if you are getting a <unknown>:11:0: unbound prefix error on iTunes tags add xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" to the rss tag like below:

<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">


Thanks 2 everyone for their help