title: Creating XML sitemap getting error
body: <p>I m trying to create sitemap for my php script my code is:</p>
  
  <pre><code>$base_url = "https://www.mywebsite.com/index.php?a=browse&amp;b=category&amp;id=";
  
  header("Content-Type: application/xml; charset=utf-8");
  
  echo '&lt;?xml version="1.0" encoding="UTF-8"?&gt;'.PHP_EOL; 
  
  echo '&lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"&gt;' . PHP_EOL;
  
  while($row = mysqli_fetch_array($result))
  {
   echo '&lt;url&gt;' . PHP_EOL;
   echo '&lt;loc&gt;'.$base_url. $row['category_id'] .'&lt;/loc&gt;' . PHP_EOL;
   echo '&lt;changefreq&gt;daily&lt;/changefreq&gt;' . PHP_EOL;
   echo '&lt;/url&gt;' . PHP_EOL;
  }
  </code></pre>
  
  <p>I'm getting this error :</p>
  
  <p><a href="https://i.stack.imgur.com/AGjqU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AGjqU.png" alt="error"></a></p>