I was creating a sitemap in codeignite. But i am facing some error with sitemap. Anyone tell me what is error.

**Controller:-**

```
 public function sitemap()
 {
     header("Content-Type: text/xml;charset=iso-8859-1");
     $this->load->view("sitemap");        
 }

```

**View:-**

```
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>    
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">    
   <url>    
      <loc>http://www.example.com/</loc>    
      <lastmod>2005-01-01</lastmod>    
      <changefreq>monthly</changefreq>    
      <priority>0.8</priority>    
   </url>    
</urlset>

```

**error:-**

> 
> XML Parsing Error: XML or text declaration not at start of entity
>  Location: <http://localhost/project/index.php/sitemap.xml>
>  Line Number 2, Column 1:
>  ^
> 
> 
>