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):

<html xmlns="http://www.w3.org/1999/xhtml">
<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"/>
<div id="wholepage">
<div id="header">
<img src="banner.jpg" align="top" alt="nutman"/>
<div id="navigation">
<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>
<div id="content">
header('Content-type: text/xml');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
echo '
<rss version=\'2.0\'> ';
echo '
<description>Electronic Music Producer</description>
$query="select date, title, text, author, music from newstable order by date";
while($row = mysql_fetch_array($result))
echo '
<enclosure url="http://hermes.hud.ac.uk/u0759062/#'.$row['music'].'"/>
echo '
while ($row=mysql_fetch_array($result)){
echo $row['date'];
echo ' - ';
echo '<a href="showNews.php?title='.$row['title'].'">'.$row['title'].'</a>';
echo '<br><br>';