grid loading from php. Incorrect XML

Hi, I keep getting incorrect xml when loading the grid. it loads fine if the file is a .xml file. but not if it’s a simple php file like below.

rfrankingGrid.loadXML(“rankings.php”);



<?php

header(“Content-type:text/xml”);

    print("<?xml version=\"1.0\"?>");

print("");

        print("");

                    print("");

                    print(“1”);

                    print("");

                    print("");

                    print(“2”);

                    print("");

                    print("");

                    print(“3”);

                    print("");

                    print("");

                    print(“4”);

                    print("");

                    print("");

                    print(“5”);

                    print("");

        print("");

        print("");        

?>        

The same code works correctly in case of local test ( attached )
Please try to use debug version of dhtmlxcommon and check that server side script doesn’t generate any errors in your case.
    dhtmlx.com/docs/products/dhtmlxG … rt_comprob

1216032749.zip (86.3 KB)