Im using a flash gallery script that requires an xml feed. I’ve setup a template with the xml parameters and a simple call to return a list of images dependant a post variable. This template is used on the following hidden page:
The problem arises, if I add the xml declaration at the top of the template it doesn’t load, if I remove it, it loads like xml in firefox, but returns a 404 in feed validators and chrome?!!
<?xml version="1.0" ?>
The template is bare apart from the xml and the following header:
header("Content-Type: application/xhtml+xml; charset=utf-8");
Is there a better way to do this, or a way to make it work?!
- The topic ‘Making a template return xml’ is closed to new replies.