3.2.0

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
March 4,
You should set HTTP header 'Content-Type: text/xml'

<?php
header('Content-Type: text/xml');
?>

Alex (ActiveWidgets)
March 4,
If you use other charset than US-ASCII, which is default for text/xml, you should rather set:
header('Content-Type: application/xml');
Vera
February 18,

This topic is archived.

See also:


Back to support forum