I want to show XML content header type output from view but getting an error. Below is the code that I am putting into my view.
<?php header("Content-Type: text/xml;charset=iso-8859-1"); ?>
<?php '<?xml version="1.0" encoding="UTF-8" ?>' ?>
<urlset xmlns="">
<url>
<loc>Something</loc>
<priority>1.0</priority>
</url>
<!-- My code is looking quite different, but the principle is similar -->
<url>
<loc>Somthing</loc>
<priority>0.5</priority>
</url>
</urlset>
And that is the error that I am getting from it.