loadXML works but loadXMLString

Hi,

I’m trying to load a grid where each row can be expanded by clicking the little pluses. Everything is find if I load my xml from a file using loadXML. If I load the same xml from a string using loadXMLString, the pluses do not appear.

Here is my xml, hardcoded in javascript, with the loading commands following:

xmlString = ‘<?xml version="1.0"?>’ +
‘’ +
‘’ +
‘Project Details’ +
‘R2012a’ +
‘R2011b’ +
‘Abs Dev’ +
‘R2012a’ +
‘R2011b’ +
‘Abs Dev’ +
‘R2012a’ +
‘R2011b’ +
‘Abs Dev’ +
‘R2012a’ +
‘R2011b’ +
‘Abs Dev’ +
‘’ +
‘%’ +
‘’ +
‘’ +
‘modern’ +
‘’ +
’ ’ +
‘’ +
‘Bosch_2::1’ +
‘2422’ +
‘2422’ +
‘0’ +
‘72’ +
‘72’ +
‘0’ +
‘16’ +
‘16’ +
‘0’ +
‘6160’ +
‘6253’ +
‘-93’ +
‘’;

grid = new dhtmlXGridObject(divId);
grid.setImagePath(gridImages_g);
grid.setSkin(“light”);
grid.setSkin(“modern”);
grid.enableResizing(“false,false,false,false,false,false,false,false,false,false,false,false,false”);
grid.enableTooltips(“false,false,false,false,false,false,false,false,false,false,false,false,false”);
grid.enableColSpan(true);
grid.init();

// No pluses.
grid.loadXMLString(xmlString);

// This works.
grid.loadXML(“simpleDetailed.xml”);

// I override this when a plus is clicked on, but there are no pluses to click on!
grid.kidsXmlFile = “foo”;

Any ideas what’s wrong?

Thanks,

Terry

It looks like the +'s appear if I move the line

grid.kidsXmlFile = “foo”;

above the loadXMLstring command.

Terry