create xml page for flash
-
Hi,
I’ve been wracking my brain about this and just can’t figure it out. I am trying to create a page template that will display the page content as xml to use in a flash file. I created a template that outputs valid xml. For some reason the page works in Safari but not in Firefox. In Firefox it returns an undefined in the flash file. Any ideas on what I can do to solve this issue? Below is the code I am using for the template.
<?php /* Template Name: XML */ require('wp-blog-header.php'); header('Content-Type: text/xml'); echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; if(have_posts()) : ?><?php while(have_posts()) : the_post() ?> <?php the_content(); ?> <?php endwhile; ?> <?php endif; ?>
Thanks for your help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘create xml page for flash’ is closed to new replies.