malas Report post Posted August 22, 2007 I have some special characters in the XML data which we feed to the dataURL in the fusion charts. Below is the piece of XML code which I am sending to the dataURL, where the country name has a special character. It is throwing - Invalid XML data. <task start="08/16/2005" processId="33" end="08/17/2005" Id="113" color="333333,ffffff,333333" alpha="80" animation="1" height="7" hoverText="Mr Sinlan,Consultant,Ceara & SaoLuis,BR Share this post Link to post Share on other sites
Pallav Report post Posted August 23, 2007 If you're using dataURL method, FusionCharts wouldn't throw an error. Using dataXML method, it will throw. Share this post Link to post Share on other sites
malas Report post Posted August 24, 2007 I am using dataURL method only, but still it throws the error "Invalid XML data" when there are special characters in the XML. ( Share this post Link to post Share on other sites
Pallav Report post Posted August 26, 2007 Hi, Can you please send the entire XML as attachment? Share this post Link to post Share on other sites
malas Report post Posted August 27, 2007 (edited) Hi, The graph XML looks something like the below one and the word which contains special character is highlighted. Thanks, <graph ganttWidthPercent='80' caption='Details' ganttLineColor='cccccc' ganttLineThickness= '0' ganttLineAlpha='40' canvasBorderColor='C0C0C0' canvasBorderThickness='1' canvasBorderAlpha='100' dateFormat='mm/dd/yyyy' animation='0' showTaskNames='0' gridBorderAlpha='40' > <categories isBold='1'> <category start='5/1/2007' end='5/31/2007' name='2007'/> </categories> <categories isBold='1'> <category start='5/1/2007' end='5/31/2007' name='May'/> </categories> <categories align='left' > <category start='5/1/2007' end='5/6/2007' name='5/1' /> <category start='5/7/2007' end='19/13/2007' name='5/7' /> <category start='5/14/2007' end='5/20/2007' name='5/14' /> <category start='5/21/2007' end='5/27/2007' name='5/21' /> <category start='5/28/2007' end='5/31/2007' name='5/28' /> </categories> <trendlines> <line start="5/17/2007" displayValue="Today" color="666666" isTrendZone="1" alpha="20" /> </trendlines> <categories isBold='0' fontSize='9'> <category start='5/1/2007' end='5/1/2007' name='T' /> <category start='5/2/2007' end='5/2/2007' name='W'/> <category start='5/3/2007' end='5/3/2007' name='T'/> <category start='5/4/2007' end='5/4/2007' name='F'/> <category start='5/5/2007' end='5/5/2007' name='S' bgColor='f1f1f1' /> <category start='5/6/2007' end='5/6/2007' name='S' bgColor='f1f1f1' fontColor='ff0000' /> <category start='5/7/2007' end='5/7/2007' name='M' /> <category start='5/8/2007' end='5/8/2007' name='T'/> <category start='5/9/2007' end='5/9/2007' name='W'/> <category start='5/10/2007' end='5/10/2007' name='T'/> <category start='5/11/2007' end='5/11/2007' name='F'/> <category start='5/12/2007' end='5/12/2007' name='S' bgColor='f1f1f1'/> <category start='5/13/2007' end='5/13/2007' name='S' bgColor='f1f1f1' fontColor='ff0000'/> <category start='5/14/2007' end='5/14/2007' name='M'/> <category start='5/15/2007' end='5/15/2007' name='T'/> <category start='5/16/2007' end='5/16/2007' name='W'/> <category start='5/17/2007' end='5/17/2007' name='T'/> <category start='5/18/2007' end='5/18/2007' name='F'/> <category start='5/19/2007' end='5/19/2007' name='S' bgColor='f1f1f1'/> <category start='5/20/2007' end='5/20/2007' name='S' bgColor='f1f1f1' fontColor='ff0000'/> <category start='5/21/2007' end='5/21/2007' name='M'/> <category start='5/22/2007' end='5/22/2007' name='T'/> <category start='5/23/2007' end='5/23/2007' name='W'/> <category start='5/24/2007' end='5/24/2007' name='T'/> <category start='5/25/2007' end='5/25/2007' name='F'/> <category start='5/26/2007' end='5/26/2007' name='S' bgColor='f1f1f1'/> <category start='5/27/2007' end='5/27/2007' name='S' bgColor='f1f1f1' fontColor='ff0000'/> <category start='5/28/2007' end='5/28/2007' name='M'/> <category start='5/29/2007' end='5/29/2007' name='T'/> <category start='5/30/2007' end='5/30/2007' name='W'/> <category start='5/31/2007' end='5/31/2007' name='T'/> </categories> <processes headerVAlign="center" headerText="Team Member" positionInGrid="Left"> <process Name="Kandkkena L. Wolk" id="1" /> </processes> <tasks> <task start="05/16/2007" processId="33" end="05/17/2007" Id="113" color="333333,ffffff,333333" alpha="80" animation="1" height="7" hoverText="Mr Kandkkena L. Wolk,<br>Senior Consultant,XYMMDM,<br>Ceara & SaoLuis,BR Edited August 27, 2007 by Guest Share this post Link to post Share on other sites
Pallav Report post Posted August 29, 2007 I think it's the <BR> tags in XML which is causing the error. Share this post Link to post Share on other sites
malas Report post Posted August 30, 2007 But, I am getting the graph with <BR> tags which are without special characters. Share this post Link to post Share on other sites
Pallav Report post Posted August 31, 2007 Hi, I tried your XML with IE and it seems to give an error at <BR> tag. Can you try to make the XML look valid in IE/FF? Share this post Link to post Share on other sites