Trouble with RSS coding - please help!

J

johnsonholding

I keep getting this error and I don't know why.

XML Parsing Error: mismatched tag. Expected: </link>.
Location: file:///C:/WINDOWS/Desktop/rss.xml
Line Number 61, Column 4:

I copied the RSS file from another source and it works, I thought I
just changed the info to my info,. Here it is :

<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd"
version="2.0">

<channel>

<title></title>
<link>http://www.vicesmagazine.com

<description>The Podcast for Everyone</description>
<language>en-us</language>

<category>Health</category>

<itunes:category text="Health">
<itunes:category text="Self-Help"/>
</itunes:category>

<itunes:category text="Religion">
<itunes:category text="Spirituality" />
</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:summary>Vicesmagazine.com</itunes:summary>

<itunes:subtitle>Podcasts for addictions and
habits</itunes:subtitle>

<itunes:author>David Delaney</itunes:author>

<itunes:eek:wner>
<itunes:email>[email protected]</itunes:email>
<itunes:name>vicesmagazine.com</itunes:name>
</itunes:eek:wner>

<itunes:image
href="http://www.vicesmagazine.com/pictures/viceslogo.jpg">Podcast
Image</itunes:image>

<itunes:keywords>addictions, alcohol, drugs, gambling, teens,
seniors, children, success, habits, sex</itunes:keywords>

<item>
<title>Episode #01 - Sept 1, 2005</title>
<link>http://www.vicesmagazine.com
<description>Episode 01 - Positive Thinking</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Mon, 31 October 2005 19:21:30 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>addictions, postivie thinking, health,
success</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:03:53</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/positive_pod3.mp3"
length="2801688" type="audio/mpeg"></enclosure>

*** this is line 61 *** </item>

<item>
<title>Episode #02 - Sept 7, 2005</title>
<link>http://www.vicesmagazine.com
<description>Episode 02 - Anger Therapy</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Mon, 31 October 2005 05:55:53 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>addictions, postivie thinking, health, success,
anger, therapy</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:01:25</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/anger_pod2.mp3"
length="1372160" type="audio/mpeg"></enclosure>

</item>
<item>
<title>Episode #03 - Sept 7, 2005</title>
<link>http://www.vicesmagazine.com
<description>Episode 03 - Hypnosis - does it really
work?</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Thurs, 1 December 2005 05:55:53 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>hypnosis, addictions, postivie thinking, health,
success, anger, therapy</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:00:56</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/hypnosis_pod2.mp3"
length="905216" type="audio/mpeg"></enclosure>

</item>
<item>
<title>Episode #04 - Jan 15, 2006</title>
<link>http://www.vicesmagazine.com
<description>Episode 04 - Lust or love?</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Tues, 31 January 2005 05:55:53 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>hypnosis, addictions, postivie thinking, health,
success, anger, therapy, lust, valentine</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:02:48</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/lust_pod5.mp3"
length="2199552" type="audio/mpeg"></enclosure>

</item>
<item>
<title>Episode #05 - Jan 15, 2006</title>
<link>http://www.vicesmagazine.com
<description>Episode 05 - Is fear an addiction?</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Tues, 31 January 2005 05:55:53 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>fear, adrenaline, hypnosis, addictions, postivie
thinking, health, success, anger, therapy, lust,
valentine</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:02:14</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/fear_pod4.mp3"
length="2199552" type="audio/mpeg"></enclosure>
</item>

</channel>
</rss>
 
J

johnsonholding

I thought so, but when I closed the link, I still got an error AND in
the original (which had no errors), the link was not closed there
either. So should I close ALL links?
 
H

hywel.jenkins

I thought so, but when I closed the link, I still got an error AND in
the original (which had no errors), the link was not closed there
either. So should I close ALL links?

Well, how else would you make the XML well-formed?
 
J

johnsonholding

Ok, below is the code from the original script - no closed "Links" and
it works without error. I have tried to close the links and it still
does not work,(error) so I am at a loss.

XML Parsing Error: mismatched tag. Expected: </LINK>.
Location: file:///C:/WINDOWS/Desktop/TMPvthdvg8zi.xml
Line Number 42, Column 40: <LINK>http://www.vicesmagazine.com</link>
---------------------------------------^

I have tried getting a hold of the author, but haven't heard back, so
what gives with this coding?!?!? Here is the original script with no
</link> and no errors either.
---------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd"
version="2.0">

<channel>

<title>MyPodcastProduction.net</title>
<link>http://www.my-podcast-prodcution.net

<description>The Podcast for Everyone</description>
<language>en-us</language>

<category>Technology</category>

<itunes:category text="Technology">
<itunes:category text="Computers">
</itunes:category>

<itunes:category text="Technology">
<itunes:category text="Gadgets">
</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:summary>The Podcast for Everyone. </itunes:summary>

<itunes:subtitle>Featuring interviews reviews, news and much
more.</itunes:subtitle>

<itunes:author>John Smith</itunes:author>

<itunes:eek:wner>
<itunes:email>[email protected]</itunes:email>
<itunes:name>MyPodcastProduction.net</itunes:name>
</itunes:eek:wner>

<itunes:image
href="http://www.my-podcast-prodcution.net/podcast/logo.jpg">Podcast
Image</itunes:image>

<itunes:keywords>news, technology, business,
animation</itunes:keywords>

<item>
<title>Episode #020 - March 22, 2006</title>
<link>http://www.my-podcast-prodcution.net
<description>Episode 020 - Special Episode with Breaking
News</description>
<author>John Smith</author>
<pubDate>Thurs, 22 March 2005 17:15:00 -0700</pubDate>

<itunes:category text="Technology">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>audio,digital,3D,DVD,motion
graphics</itunes:keywords>

<itunes:author>John Smith</itunes:author>

<itunes:duration>1:03:28</itunes:duration>
<enclosure url="http://www.my-podcast-prodcution.net/show20.mp3"
length="104458" type="audio/mpeg"></enclosure>

</item>

<item>
<title>Episode #021 - March 23, 2006</title>
<link>http://www.my-podcast-prodcution.net
<description>Episode 021 - Special Episode with More
News</description>
<author>John Smith</author>
<pubDate>Fri, 23 March 2005 17:15:00 -0700</pubDate>

<itunes:category text="Technology">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>audio,digital,3D,DVD,motion
graphics</itunes:keywords>

<itunes:author>John Smith</itunes:author>

<itunes:duration>1:07:14</itunes:duration>
<enclosure url="http://www.my-podcast-prodcution.net/show21.mp3"
length="204358" type="audio/mpeg"></enclosure>

</item>

<item>
<title>Episode #020 - March 22, 2006</title>
<link>http://www.my-podcast-prodcution.net
<description>Episode 020 - Special Episode with Breaking
News</description>
<author>John Smith</author>
<pubDate>Thurs, 22 March 2005 17:15:00 -0700</pubDate>

<itunes:category text="Technology">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>audio,digital,3D,DVD,motion
graphics</itunes:keywords>

<itunes:author>John Smith</itunes:author>

<itunes:duration>1:03:28</itunes:duration>
<enclosure url="http://www.my-podcast-prodcution.net/show20.mp3"
length="104458" type="audio/mpeg"></enclosure>

</item>




</channel>
</rss>
 
H

hywel.jenkins

Ok, below is the code from the original script - no closed "Links" and
it works without error. I have tried to close the links and it still
does not work,(error) so I am at a loss.

XML Parsing Error: mismatched tag. Expected: </LINK>.
Location: file:///C:/WINDOWS/Desktop/TMPvthdvg8zi.xml
Line Number 42, Column 40: <LINK>http://www.vicesmagazine.com</link>
---------------------------------------^

In your code above, where is the opener for </link>? I can see a tag
called <LINK>, but not one called <link>. They're different.

You also have unclosed <itunes:category> elements. Simply saving your
file and opening it in Internet Exploder would show you where the
errors are. Your XML is wrong.

What's the URL of the original site where you've seen this very XML
working?
 
A

Andy Dingley

In your code above, where is the opener for </link>? I can see a tag
called <LINK>, but not one called <link>. They're different.

Some podcast clients are case-insensitive re: tag names.

Yes, bogus as anything, but there you go.... 8-(
 
J

johnsonholding

The coding I just sent is the original. It is from Creative Cow
podcast tutorial. As far as a capital LINK, it is nowhere in the code,
just in the error that I get. Cut and paste that code into notepad and
save it and you will see that it works as is - even without the </link>
tags, but when I tried to change it (like my first post), I get the
error. This is why I find XML so frustrating...

Here is the original code again :

<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd"
version="2.0">


<channel>


<title>MyPodcastProduction.net</title>
<link>http://www.my-podcast-prodcution.net


<description>The Podcast for Everyone</description>
<language>en-us</language>


<category>Technology</category>


<itunes:category text="Technology">
<itunes:category text="Computers">
</itunes:category>


<itunes:category text="Technology">
<itunes:category text="Gadgets">
</itunes:category>


<itunes:explicit>No</itunes:explicit>


<itunes:summary>The Podcast for Everyone. </itunes:summary>


<itunes:subtitle>Featuring interviews reviews, news and much
more.</itunes:subtitle>


<itunes:author>John Smith</itunes:author>


<itunes:eek:wner>
<itunes:email>[email protected]</itunes:email>
<itunes:name>MyPodcastProduction.net</itunes:name>
</itunes:eek:wner>


<itunes:image
href="http://www.my-podcast-prodcution.net/podcast/logo.jpg">Podcast
Image</itunes:image>


<itunes:keywords>news, technology, business,
animation</itunes:keywords>


<item>
<title>Episode #020 - March 22, 2006</title>
<link>http://www.my-podcast-prodcution.net
<description>Episode 020 - Special Episode with Breaking
News</description>
<author>John Smith</author>
<pubDate>Thurs, 22 March 2005 17:15:00 -0700</pubDate>


<itunes:category text="Technology">


</itunes:category>


<itunes:explicit>No</itunes:explicit>


<itunes:keywords>audio,digital,3D,DVD,motion
graphics</itunes:keywords>


<itunes:author>John Smith</itunes:author>


<itunes:duration>1:03:28</itunes:duration>
<enclosure url="http://www.my-podcast-prodcution.net/show20.mp3"
length="104458" type="audio/mpeg"></enclosure>


</item>


<item>
<title>Episode #021 - March 23, 2006</title>
<link>http://www.my-podcast-prodcution.net
<description>Episode 021 - Special Episode with More
News</description>
<author>John Smith</author>
<pubDate>Fri, 23 March 2005 17:15:00 -0700</pubDate>


<itunes:category text="Technology">


</itunes:category>


<itunes:explicit>No</itunes:explicit>


<itunes:keywords>audio,digital,3D,DVD,motion
graphics</itunes:keywords>


<itunes:author>John Smith</itunes:author>


<itunes:duration>1:07:14</itunes:duration>
<enclosure url="http://www.my-podcast-prodcution.net/show21.mp3"
length="204358" type="audio/mpeg"></enclosure>


</item>


<item>
<title>Episode #020 - March 22, 2006</title>
<link>http://www.my-podcast-prodcution.net
<description>Episode 020 - Special Episode with Breaking
News</description>
<author>John Smith</author>
<pubDate>Thurs, 22 March 2005 17:15:00 -0700</pubDate>


<itunes:category text="Technology">


</itunes:category>


<itunes:explicit>No</itunes:explicit>


<itunes:keywords>audio,digital,3D,DVD,motion
graphics</itunes:keywords>


<itunes:author>John Smith</itunes:author>


<itunes:duration>1:03:28</itunes:duration>
<enclosure url="http://www.my-podcast-prodcution.net/show20.mp3"
length="104458" type="audio/mpeg"></enclosure>


</item>


</channel>
</rss>
 
A

Andy Dingley

J

johnsonholding

And I got this when I tried to fix all the links \


This XML file does not appear to have any style information associated
with it. The document tree is shown below.

What does this mean?
 
A

Andy Dingley

Ok, here is the original link - this RSS works

For small values of "works". It's invalid RSS 2.0 (date-time format and
the <author> value should have an email address) and also the itunes
namespace URL has the wrong case (which could break a fussy client).

The working example also has a link element like this:
<link>http://www.my-podcast-prodcution.net</link>

which is correct, unlike yours which is missing the </link> closing tag.
 
A

Andy Dingley

This XML file does not appear to have any style information associated
with it. The document tree is shown below.

What does this mean?

It means you threw raw XML into Firefox. Really it would like to have
an associated XSLT stylesheet, so that it could render it into somethign
more readable. In the meantime though, it's happy to show you the XML
document, normalised into a tree.
 
J

johnsonholding

Can you give me an example of the date-time format you speak of? and
the <author> value - I do see it there, so I am not sure what you are
talking about.
PS - thank for your patience on this. I want this ready to go to
Itunes sooner than later!

Here is the xml (modified) that I am going to be sending, hopefully :

<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd"
version="2.0">

<channel>

<title></title>
<link>http://www.vicesmagazine.com</link>

<description>vicesmagazine addictions and habits</description>
<language>en-us</language>

<category>Health</category>

<itunes:category text="Health">
<itunes:category text="Self-Help"/>
</itunes:category>

<itunes:category text="Religion">
<itunes:category text="Spirituality" />
</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:summary>vicesmagazine.com</itunes:summary>

<itunes:subtitle>Podcasts for addictions and
habits</itunes:subtitle>

<itunes:author>David Delaney</itunes:author>

<itunes:eek:wner>
<itunes:email>[email protected]</itunes:email>
<itunes:name>vicesmagazine.com</itunes:name>
</itunes:eek:wner>

<itunes:image
href="http://www.vicesmagazine.com/pictures/viceslogo.jpg">Podcast
Image</itunes:image>

<itunes:keywords>addictions, alcohol, drugs, gambling, teens,
seniors, children, success, habits, sex</itunes:keywords>

<item>
<title>Episode #01 - Sept 1, 2005</title>
<link>http://www.vicesmagazine.com</link>
<description>Episode 01 - Positive Thinking</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Mon, 31 October 2005 19:21:30 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>addictions, postivie thinking, health,
success</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:03:53</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/positive_pod3.mp3"
length="2801688" type="audio/mpeg"></enclosure>

</item>

<item>
<title>Episode #02 - Sept 7, 2005</title>
<link>http://www.vicesmagazine.com</link>
<description>Episode 02 - Anger Therapy</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Mon, 31 October 2005 05:55:53 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>addictions, postivie thinking, health, success,
anger, therapy</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:01:25</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/anger_pod2.mp3"
length="1372160" type="audio/mpeg"></enclosure>

</item>
<item>
<title>Episode #03 - Sept 7, 2005</title>
<link>http://www.vicesmagazine.com</link>
<description>Episode 03 - Hypnosis - does it really
work?</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Thurs, 1 December 2005 05:55:53 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>hypnosis, addictions, postivie thinking, health,
success, anger, therapy</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:00:56</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/hypnosis_pod2.mp3"
length="905216" type="audio/mpeg"></enclosure>

</item>
<item>
<title>Episode #04 - Jan 15, 2006</title>
<link>http://www.vicesmagazine.com</link>
<description>Episode 04 - Lust or love?</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Tues, 31 January 2005 05:55:53 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>hypnosis, addictions, postivie thinking, health,
success, anger, therapy, lust, valentine</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:02:48</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/lust_pod5.mp3"
length="2199552" type="audio/mpeg"></enclosure>

</item>
<item>
<title>Episode #05 - Jan 15, 2006</title>
<link>http://www.vicesmagazine.com</link>
<description>Episode 05 - Is fear an addiction?</description>
<author>David Delaney/Dr. Peter Sacco</author>
<pubDate>Tues, 31 January 2005 05:55:53 -0700</pubDate>

<itunes:category text="Health">

</itunes:category>

<itunes:explicit>No</itunes:explicit>

<itunes:keywords>fear, adrenaline, hypnosis, addictions, postivie
thinking, health, success, anger, therapy, lust,
valentine</itunes:keywords>

<itunes:author>David Delaney/Dr. Peter Sacco</itunes:author>

<itunes:duration>0:02:14</itunes:duration>
<enclosure url="http://www.vicesmagazine.com/podcast/fear_pod4.mp3"
length="2199552" type="audio/mpeg"></enclosure>
</item>

</channel>
</rss>
 
J

johnsonholding

So I went to an RSS validator and got this response :

1. author must include an email address 44 40
2. pubDate must be an RFC-822 date 45 47

I have a valid email, so I don't get that and the Pubdate doesn't make
any sense to me. Any ideas? Thanks
 
S

Steve Pugh

So I went to an RSS validator and got this response :

1. author must include an email address 44 40
2. pubDate must be an RFC-822 date 45 47

I have a valid email,

No you don't. You have:
so I don't get that and the Pubdate doesn't make
any sense to me. Any ideas? Thanks

The date must be formatted according to the specified RFC. Any other
date format is wrong. Your most common error is that day and month must
always be given as particular three letter abbreviations. Sep not
September, Thu not Thurs, etc. Check Section 5 of RFC 822 for full
details.

Steve
 
H

hywel.jenkins

Ok, here is the original link - this RSS works - just like the one I
posted twice above. That is the reason why I am not understanding this
:

http://www.creativecow.net/articles/mcmahon_frank/pod2/rssEXAMPLE.xml

In that case, the XML *you* posted is *not* the same as that at the URL
you've just given. In the Creative Cow sample the <link> elements are
clearly closed and the entire document is well-formed XML.

You've mucked up the code you're using, or you've not copied it
correctly. Simple. I suspect you've edited it to suit your needs but
have been careless.
 
J

johnsonholding

Interesting - it is weird - when I cut and paste it - each and
everytime, the </link> didn't come out, in fact I downloaded the XML
example and it was not there, so maybe the author has fixed it since I
took a look at it last. I would not have made such a fuss if it was
otherwise. Take a look at the code that I pasted, I didn't hand code
it, it was simple SELECT ALL, Cut N Paste.

Thanks for the Date info, but what about the author's email info? I
don't understand that
1. author must include an email address 44 40
 
A

Andy Dingley

Interesting - it is weird - when I cut and paste it

So don't cut and paste it. How many times have you already been told
this? Host it somewhere and tell us the URL.

My patience is already threadbare. We've spoon fed you everything so
far, yet you pay no attention to any of it. Try _reading_ the replies
you get, not just clicking random things in the hope that it magically
starts working.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top