Solved

XML issue

Posted on 2013-01-15
6
229 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to call weather service by using asmx? 4 29
PHP Form Calculate Total Price 10 42
Button to go back 3 25
alert(innerHTML); 8 15
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

770 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