kaushals Report post Posted September 7, 2007 (edited) Hi, I am trying to render Gantt Chart using the setDataXML method. I am streaming the chart Xml from the server and on the browser setting the text to the setDataXML method and then rendering the chart to a DIV. But i am getting an "Invalid xml data" message. Heres the xml being sent from the server side. var chartXML =; var myChart = new FusionCharts("D:/FusionCharts_Evaluation/Charts/Gantt.swf", "myChartId", "500", "250", "0", "0"); myChart.setDataXML(chartXML); myChart.render("chartdiv"); But if i save the xml to a file and set the file path to the setDataURL method, the rendering is fine. :crazy: Any help would be appreciated, Thanks PS: I have attached the xml being sent in the xml attachment. gantt.xml Edited September 7, 2007 by Guest Share this post Link to post Share on other sites
Pallav Report post Posted September 10, 2007 You might be having special characters or combination of ' and ". If you have those, you'll necessarily need to use dataURL method. Share this post Link to post Share on other sites
kaushals Report post Posted September 13, 2007 i have attached the xml that is being built on the server. I have checked the xml and it does not have any combination of ' and ". Share this post Link to post Share on other sites
Pallav Report post Posted September 16, 2007 Yes - you've % in your XML. Please encode them to %25 when using dataXML method. In dataURL method, you can directly use them. Share this post Link to post Share on other sites