Is there any possible way of echoing PHP from within XML. The reason is because I want to provide an XML feed, and this feed will be dynamic so I will of course need to use PHP to echo out the statements from within the tags. But XML doesn't seem to recognise <?php ?> tags inside it.
I can echo out XML from within PHP but the problem is that when the page is viewed it is read as PHP so none of the tags are shown like they do in usual RSS feeds.
I basically want this...
And for it to be displayed on the page like...
<?xml version="1.0"?> <rss version="2.0"> <item>Item Content</item> <description>Description</description> </rss>
Any ways to do this?