loading XML in a Grid using AJAX


I think I am doing something wrong here. I want to fill a DHTMLX Grid with an XML so I use AJAX to load the XML via GET and after that I store the plain XML as a string and want the grid to load it:


I am able to see the whole XML in a textarea (document.getElementById(“in_xml”).value = xml;) and this XML is completely correct (I am able to load it after I stored it in a file). But I get no further messages and the grid does not initialize itself. What am I doing wrong?

Does xml contain the header structure of grid? The code looks correct and must work if response was a correct xml with both header and data information.
By the way , you can use
it will work the same - will load data by ajax