WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Making a template return xml (2 posts)

  1. ianatkins
    Member
    Posted 4 years ago #

    Hello.

    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:
    http://www.flatcapmarketing.com/09/xml/

    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?!

    Thanks

    Ian.

  2. ianatkins
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic