Re: [Dennis de Rooy] Complete XML output
You can generate a viewer code here:
Admin > Section Editors >
Your Section > Show PHP Viewer Code.
Basically you just save that code in a file on your server such as:
http://
yourDomain/xmlPage.php
You'll only have one file, but that one file will be able to output different content with different urls. So for example xmlPage.php?1 would load record 1, etc.
The one thing you want to watch for, is since there isn't a .xml extension you'll need to send a header to tell the browser that it's XML. Just add this after your PHP tag:
<?php
header('Content-type: application/xml; charset=utf-8');
Hope that helps. Let me know if you have any other questions or if you need more details.
Dave Edis - Senior Developer
interactivetools.com