Solved

XML issue

Posted on 2013-01-15
6
222 Views
Last Modified: 2013-01-21
Hi,

I have the following xml and its giving me errors and i cant see why? Its saying it contains extra data at the end of the document?

can anyone tell me what i am doing wrong?

<?xml version="1.0" encoding="UTF-8" ?>
	<Podcasts>
	<Podcast id="2082">
		<title>Golden Globe award winners announced</title>
		<subtitle>Strawberry January 14th - Dish  Golden Globe award winners announced</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/14/SAC-DISH-DE-DURTS-140113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/14/SAC-DISH-DE-DURTS-140113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2084">
		<title>Ed Sheeran live in studio!</title>
		<subtitle>Strawberry January 14th - Ed Sheeran live in studio!</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/14/SAC-ED-SHEERAN-140113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/14/SAC-ED-SHEERAN-140113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2083">
		<title>Kian vs. Bressie  The Voice of Ireland</title>
		<subtitle>Strawberry January 14th - Kian vs. Bressie  The Voice of Ireland</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/14/SAC-KIAN-VS-BRESSIE-140113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/14/SAC-KIAN-VS-BRESSIE-140113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2079">
		<title>50 Shades</title>
		<subtitle>Strawberry January 11th - 50 Shades of Gay (Byrne)</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/11/SAC-50-SHADES-OF-GAYBO-110113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/11/SAC-50-SHADES-OF-GAYBO-110113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2080">
		<title>Dish  Tarantino loses it!</title>
		<subtitle>Strawberry January 11th - Dish  Tarantino loses it!</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/11/SAC-DISH-DE-DURTS-110113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/11/SAC-DISH-DE-DURTS-110113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2078">
		<title>Paudgie's TV Guide</title>
		<subtitle>Strawberry January 11th - Paudgie's TV Guide</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/11/SAC-PAUDGIE-110113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/11/SAC-PAUDGIE-110113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2073">
		<title>Dish  Fifty Shades Of Gay</title>
		<subtitle>Strawberry January 10th - Dish  Fifty Shades Of Gay</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/10/SAC-DISH-DE-DURTS-100113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/10/SAC-DISH-DE-DURTS-100113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2072">
		<title>Mr. Buckled's resolution</title>
		<subtitle>Strawberry January 10th - Mr. Buckled's resolution</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/10/SAC-MR-BUCKLED-RESOLUTION-100113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/10/SAC-MR-BUCKLED-RESOLUTION-100113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2071">
		<title>Ronan Keating's lost auditions</title>
		<subtitle>Strawberry January 10th - Ronan Keating's lost auditions</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/10/SAC-RONAN-KEATING-AUDITIONS-100113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/10/SAC-RONAN-KEATING-AUDITIONS-100113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2066">
		<title>Dish  Piers Morgan vs Alex Jones</title>
		<subtitle>Strawberry January 9th - Dish  Piers Morgan vs Alex Jones</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/09/SAC-DISH-DE-DURTS-090113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/09/SAC-DISH-DE-DURTS-090113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2065">
		<title>Gavin Highlife returns!</title>
		<subtitle>Strawberry January 9th - Gavin Highlife returns!</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/09/SAC-GAVIN-090113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/09/SAC-GAVIN-090113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2063">
		<title>Xpose  Pamela Anderson's ice-boobs!</title>
		<subtitle>Strawberry January 9th - Xpose  Pamela Anderson's ice-boobs!</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/09/SAC-XPOSE-PAMELA-ANDERSON-090113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/09/SAC-XPOSE-PAMELA-ANDERSON-090113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2067">
		<title>The Juice - Sunday Jan 6th</title>
		<subtitle>Sean Munsanje presents The Juice on FM104 - Sunday Jan 6th</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/Juice_Podcast_060113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/Juice_Podcast_060113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2061">
		<title>Dish  Nikita is back!</title>
		<subtitle>Strawberry January 8th - Dish  Nikita is back!</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/SAC-DISH-DE-DURTS-080113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/SAC-DISH-DE-DURTS-080113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2060">
		<title>Wedding Day Song</title>
		<subtitle>Strawberry January 8th - Wedding Day Song</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/SAC-WEDDING-DAY-SONG-080113.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/SAC-WEDDING-DAY-SONG-080113.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2058">
		<title>Phoneshow 1/8/2013</title>
		<subtitle>Get it off your chest with Jeremy Dixon Hitler  and  Nikitta The Proud slapper</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/GetitoffyourchestHitlerandNikittatheproudslapper.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/GetitoffyourchestHitlerandNikittatheproudslapper.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2055">
		<title>Phoneshow (8/1/13)</title>
		<subtitle>Get it of your chest with Jeremy Dixon, Intimate Piercing's</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/110825IntimatePiercings29mins.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/110825IntimatePiercings29mins.mp3</URL>
		</MediaFile>
	</Podcast>
	<Podcast id="2056">
		<title>Phoneshow Jan 2013</title>
		<subtitle>Get it off your chest with Jeremy Sleeping with teddy's  and  sheepmore estate</subtitle>
		<image>http://www.FM104.ie/App_Themes/FM104/images/sitewide/holding_color_80x80.gif</image>
		<MediaFile bandwidth="high" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/4amGetitoffyourchestSleepingwithTeddysandSheepmoreEstate.mp3</URL>
		</MediaFile>
		<MediaFile bandwidth="lo" type="audio/mpeg">
			<URL>http://utv.vo.llnwd.net/o16/FM104/2013/01/08/4amGetitoffyourchestSleepingwithTeddysandSheepmoreEstate.mp3</URL>
		</MediaFile>
	</Podcast>

Open in new window

0
Comment
Question by:jonathanduane2010
  • 2
  • 2
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
Jeff Darling earned 218 total points
ID: 38778338
I do not see a closing </podcasts> tag.  Maybe you didn't copy and paste the entire file?

How big is the file?  Can you attach as a file instead of copy and paste?
0
 

Author Comment

by:jonathanduane2010
ID: 38778347
here you go
0
 

Author Comment

by:jonathanduane2010
ID: 38778351
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 60

Assisted Solution

by:Geert Bormans
Geert Bormans earned 217 total points
ID: 38778368
you don't have a closing
</Podcasts>
at the end
0
 
LVL 12

Expert Comment

by:Jeff Darling
ID: 38778378
It looks like your file is still truncated.  

here is what I see at the bottom.

screenshot
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 38778387
seems you got some posts while I was writing :-)

your file ends
<Podcast id="2052">...
you should properly close the last podcast and close the file as said before wiytth a closing podcasts
maybe you are pulling this from alife feed?
make sure you get full XML and not partial XML when you do so
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now