:: Forum >>
XML Generation through PHP
Hi experts!
I'm trying to build the XML content, that is displayed in the data grid, through php. As the content should be generated dynamically and I don't want to save the file to the server first and then link to it, I'd like to know what I've to do to enable this (eg: the xml file link is: xml.php?content=1)
As soon as I change the file extension in the Grid call
table.setURL("data.xml");
to something else than .xml the result is zero.
Regards
Mike
Mike
Thursday, March 4, 2004
You should set HTTP header 'Content-Type: text/xml'
<?php
header('Content-Type: text/xml');
?>
Alex (ActiveWidgets)
Thursday, March 4, 2004
If you use other charset than US-ASCII, which is default for text/xml, you should rather set:
header('Content-Type: application/xml');
Vera
Friday, February 18, 2005
This topic is archived.
Back to support forum
Forum search