Load xml string as data

Hi, I’m trying to parse xml string directly. Below is my code:

var ganttChartControl = new GanttChart();
ganttChartControl.setImagePath("…/codebase/imgs/");
ganttChartControl.create(htmlDiv1);

var content = ‘<project id =‘2’ name= ‘Project 2’ startdate = ‘2010,6,11’>’;
ganttChartControl.loadData(content,false,true);

The gantt did load but there’s a warning popup saying “Cannot parse this xml string”. Did i missed anything here?

Thank you.

Hi
I have the same problem, have you succeeded to fix it ?
thx

Yes, thank you, it’s a bug in code. Actually, your XML is loaded fine, the error message is a mistake. To fix it, please edit one line in GanttChart.prototype.loadXML method:

this.xmlLoader = new dtmlXMLLoaderObject(null, this, false);

it should be

this.xmlLoader = new dtmlXMLLoaderObject(function(){}, this, false);

We will fix it in the next version. Thank you again.

Hello,
Did this solved your issue?
I’m still getting the same error

Hello Again,
As an update, it doesn’t work with internet explorer but with google chrome it works correctly.
Do you have any advice on what could I check?