Merhabalar,
Konuya hakim arkadaşlar yardımcı olurlarsa çok sevinirim.

Chrome kullanılarak girildiğinde

www.domain.com/sitemap.xml
yada www.domain.com/sitemap.php

bu hatayı alıyorum ve google bu yüzden sitemap görmüyor
Hata :
This page contains the following errors:

error on line 1 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.
Fakat aynı hatayı firefox ta almıyorum.

Buda sitemap php


<?php require_once('Connections/config.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_config, $config);
$query_smtp = "SELECT * FROM ayarlar_smtp";
$smtp = mysql_query($query_smtp, $config) or die(mysql_error());
$row_smtp = mysql_fetch_assoc($smtp);
$totalRows_smtp = mysql_num_rows($smtp);
?>
<?php require_once('inc/fonksiyonlar.php'); ?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title><?php echo $row_MetaTag['site_adi']; ?></title>
	<meta name="description" content="<?php echo $row_MetaTag['site_aciklama']; ?>" />
    <meta name="keywords" content="<?php echo $row_MetaTag['site_anahtar_kelimeleri']; ?>" />
    <meta name="author" content="<?php echo $row_MetaTag['site_yazar']; ?>" />   
    <meta name="owner" content="<?php echo $row_MetaTag['site_sahibi']; ?>" />    
    <meta name="copyright" content="<?php echo $row_MetaTag['site_acilis_yili']; ?>" />
	<meta property="og:url"         content="<?php echo $row_base_url['url']; ?>" />
    <meta property="og:title"       content="<?php echo $row_MetaTag['site_adi']; ?>" />
    <meta property="og:description" content="<?php echo $row_MetaTag['site_aciklama']; ?>" />
    <meta property="og:image"       content="upload/logo/<?php echo $row_logo_header['logo_resim']; ?>" />

<?php include('inc/header.php'); ?>
		
        <div class="container bas wow slideInUp" data-wow-delay="1s">
        	
            	<div class="beyaz">
                	<div class="row text-center" style="padding-top:200px; padding-bottom:200px;">
                      
<?php
require("inc/class.phpmailer.php");
$isim = $_POST['isim'];
$telefon = $_POST['telefon'];
$eposta = $_POST['eposta'];
$mesaj = $_POST['mesaj'];

$mail = new PHPMailer();

$mail->IsSMTP();   // send via SMTP
$mail->Host     = $row_smtp['sunucu']; // SMTP servers
$mail->SMTPAuth = true;     // turn on SMTP authentication
$mail->Username = $row_smtp['username'];  // SMTP username
$mail->Password = $row_smtp['sifre']; // SMTP password
$mail->SMTPSecure = 'ssl';
$mail->SetLanguage("tr", "inc/language");
$mail->Port = $row_smtp['smtp_port'];
$mail->CharSet = "utf-8";
$mail->IsHTML(true);
$mail->From     = $row_smtp['username']; // smtp kullanýcý adýnýz ile ayný olmalý
$mail->Fromname = $row_MetaTag['site_adi'];
$mail->AddAddress($row_smtp['mail'],$row_MetaTag['site_adi']);
$mail->Subject  =  $row_smtp['baslik'];
$mail->Body     =  implode("<br>",$_POST);

	

if(!$mail->Send())
{
   echo '<b style="color:red;">Mesaj Gönderilemedi! <b>';
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}

echo "<h1>Mesajınız başarı ile gönderildi</h1>";


?>
                    
                	</div>
                </div>
         
        </div>
		
   
<?php include('inc/footer.php'); ?>
<?php
mysql_free_result($smtp);
?>

Konuya hakim arkadaşlardan yardım bekliyorum
Teşekkür ederim.