XML Schema/format for File Explorer example demo

Hi, I am trying to get some static examples of the xml to into the following code. This is for a proof of concept I’m putting together, but I am struggling to find a valid schema or accepted xml data into the following code (http://docs.dhtmlx.com/doku.php?id=tutorials:dhtmlx_2_0_step_by_step):

// initialse tree
myTree = myLayout.cells(“a”).attchTree(“0”);
myTree.setImagePath(“codebase/imgs/”);
myTree.setXMLAutoLoading(“xml/directoryTree.php”);
myTree.loadXML(“xml/directoryTree.php”);

From the above demo it is pointing to a php script. I just want to replace this with some simple example of static xml to show folders and associated files.

Any examples would be most appreciated.
Many thanks.
Keith.

Right, I’ve managed to get the folder tree view to display folders by doing the following:

// initialse tree
myTree = myLayout.cells(“a”).attchTree(“0”);
myTree.setImagePath(“codebase/imgs/”);
myTree.loadXMLString(’"<tree id=“0”><item text=“My Computer” id=“1” child=“1” im0=“my_cmp.gif” im1=“my_cmp.gif” im2=“my_cmp.gif” call=“true” select=“yes”><userdata name=“system”>true<item text=“Floppy (A:)” id=“11” child=“0” im0=“flop.gif” im1=“flop.gif” im2=“flop.gif”/><item text=“Local Disk (C:)” id=“12” child=“0” im0=“drv.gif” im1=“drv.gif” im2=“drv.gif”/><item text=“Recycle Bin” id=“4” child=“0” im0=“recyc.gif” im1=“recyc.gif” im2=“recyc.gif”/>’);

Now I just need xml examples for the Grid content for files (it doesn’t matter what the content is):

// here we initialise grid which will be used for representation of the selected items
function showDList(dir){
myGrid = myLayout.cells(“b”).attachGrid();
myGrid.setImagePath(“codebase/imgs/”);
myGrid.setIconsPath(“icons/grid/”);
myGrid.setHeader(" ,Name,Size,Type,Modified");
myGrid.setColTypes(“img,ro,ro,ro”);
myGrid.setInitWidths(“40,250,50,100,*”);
myGrid.setColAlign(“center,left,right,left”);
myGrid.load(“xml/directoryContent.php?dir=”+dir);
//attach event that allows to open the selected item in the row on double click
myGrid.attachEvent(“onRowDblClicked”,function(id){
myTree.selectItem(id,true);
showFileContent(id);
})
myGrid.init();
gl_view_bg = “grid”;
}

When I try and load an XML string usting myTree.loadXMLString method I get a “Object doesn’t support this property or method”.

http://docs.dhtmlx.com/doku.php?id=dhtmlxgrid:data_loading states it is support in v1.5. I am using the latest version of dhrmlx.js.

Any ideas?
Cheers.

Please check if you are using latest version of dhtmlxGrid. This issue has been fixed in dhtmlxGrid 3.0