Dinamic HTML page in RSS feed

I use the code above, but i don’t understand why if i call the XML page i don’t see the XML code but the content of the include page. I wuold have the HTML code of the include page in betweencontent:encoded

while($thisGal = mysql_fetch_array($galsResult)) {


<?= htmlspecialchars($thisGal["galleryName"]) ?> http://<?= $_SERVER["HTTP_HOST"] ?><?= $thisGal["galleryUrl"] ?> ]]> <? } ?>

Looks like you are mixing xml and php. Php has to have the long tag so it is not confused with xml. Instead of <?, use <?php.

My website