Hi,
when i try to generate an rss file with php i get the error:

XML Parsing Error: XML or text declaration not at start of entity
Location: http://hermes.hud.ac.uk/u0759062/index.php
Line Number 25, Column 1:

Line 25 is the <?php tag.

After already researching this problem I found that it came about from lines of space between code outside of the php tags. However, I have removed all the lines of space i could possibly find, and i am still recieving the error.

Can somebody see what I'm doing wrong here? sorry if its an easy, fix; I'm a bit of a php newbie. Here's the code of the entire page (note there are no spaces within the included css file either):

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>nutman's home page</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="wholepage">
<div id="header">
<img src="banner.jpg" align="top" alt="nutman"/>
</div>
<div id="navigation">
<ul>
<li><a id="home" href="index.php">home</a></li>
<li><a id="music" href="music.html">music</a></li>
<li><a id="bio" href="bio.html">bio</a></li>
<li><a id="gallery" href="gallery.html">gallery</a></li>
<li><a id="login" href="admin.php">links</a></li>
<li><img src="footer.jpg" alt="footer"/></li>
</ul>
<div id="content">
<h2>News</h2>
<?php
$host='localhost';
$user='u0759062';
$pass='password';
mysql_connect($host,$user,$pass);
mysql_select_db($user);
header('Content-type: text/xml');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
echo '
<rss version=\'2.0\'> ';
echo '
<channel>
<title>Nutman</title>
<description>Electronic Music Producer</description>
<link>http://hermes.hud.ac.uk/u0759062/</link>';
$query="select date, title, text, author, music from newstable order by date";
$result=mysql_query($query);
while($row = mysql_fetch_array($result))
{
echo '
<item>
<link>http://hermes.hud.ac.uk/u0759062/#'.$row['title'].'</link>
<title>'.$row['title'].'</title>
<description>'.$row['text'].'</description>
<enclosure url="http://hermes.hud.ac.uk/u0759062/#'.$row['music'].'"/>
</item>';
}
echo '
</channel>
</rss>';
while ($row=mysql_fetch_array($result)){
echo $row['date'];
echo ' - ';
echo '<a href="showNews.php?title='.$row['title'].'">'.$row['title'].'</a>';
echo '<br><br>';
}
mysql_close();
?> 
</div>
</div>
</div>
</body>
</html>