ERROR: Invalid XML encountered.
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


««12

ERROR: Invalid XML encountered. Expand / Collapse
Author
Message
Posted 1/15/2008 3:31:39 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/15/2008 7:53:10 PM
Posts: 2, Visits: 4
Just a follow up to my last post.

I broke down and used a regular expression to convert double quotes to single quotes, and the problem went away on Safari/Firefox (using FusionCharts.js version 1.2.1.beta).

It would be nice to fix this problem for all browsers.  It just doesn't seem right to have to convert perfectly valid XML into something else

Thanks!

Sunil

Post #3884
Posted 2/28/2008 12:13:54 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Yesterday @ 4:15:20 AM
Posts: 772, Visits: 1,228
hi,

Please try this DoubleQuoteFix - FusionCharts.js. We have other issues to test on this quote fix before releasing. But you can give it a try if you need to supply XML attribute (in dataXML method) values in double quotes.

Tried these OK:


 myChart.setDataXML("<chart caption='Monthly Sales Summary' ><set label='January' value='1740' /><set label='February' value='19800' /></chart>");


myChart.setDataXML('<chart caption=\'Monthly Sales Summary\' ><set label=\'January\' value=\'1740\' /><set label=\'February\' value=\'19800\' /></chart>');


 myChart.setDataXML('<chart caption="Monthly Sales Summary" ><set label="January" value="1740" /><set label="February" value="19800" /></chart>');


myChart.setDataXML("<chart caption=\"Monthly Sales Summary\" ><set label=\"January\" value=\"1740\" /><set label=\"February\" value=\"19800\" /></chart>");


Regards,

Sudipto Choudhury
FusionCharts Team


  Post Attachments 
FusionChartsQuoteFix.js.txt (13 views, 11.48 KB)

Post #4757
« Prev Topic | Next Topic »

««12

Permissions Expand / Collapse

All times are GMT -7:00, Time now is 1:45am


Execution: 0.047.