﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionCharts Free / JavaScript Problems   / Hint: double quotes != single quote apostrophes for the setDataXML string / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Tue, 02 Dec 2008 06:35:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Hint: double quotes != single quote apostrophes for the setDataXML string</title><link>http://www.fusioncharts.com/forum/Topic4747-47-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;Your code without '&lt;FONT face="Courier New"&gt;updateChartXML("Chart1ID",chartdata1);' works fine in our labs and the chart renders well. &lt;/FONT&gt;&lt;BR&gt;</description><pubDate>Thu, 06 Mar 2008 23:23:13 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: Hint: double quotes != single quote apostrophes for the setDataXML string</title><link>http://www.fusioncharts.com/forum/Topic4747-47-1.aspx</link><description>I had similar frustrations with scripted charts - no issues w/ quotes, but having similar invalid XML data messages.  I have a workaround for it, but I'm posting to see if it's a bug or something else.&lt;/P&gt;&lt;P&gt;I'm establishing my xml data as a js variable, and passing the variable name to the setDataXML method.  Kept getting "Invalid XML Data" in the chart, so I added an updateChartXML call after the render, using the same variable data, and now I get a chart to display.  Here's an excerpt of the HTML being generated:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;lt;div id="chartloc1"&amp;gt;--- Chart Goes Here ---&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&lt;BR&gt;&amp;lt;script type=text/javascript&amp;gt;&lt;BR&gt;var chart1 = new FusionCharts("/fusioncharts/charts/FCF_Pie3D.swf", "Chart1Id", "600", "250", "0","1"); &lt;BR&gt;var chartdata1="&amp;lt;graph caption='Distribution by Account' bgColor='F1F1F1' showNames='1' numberPrefix='$' pieSliceDepth='15' pieYScale='40' pieFillAlpha='100' decimalPrecision='0'&amp;gt;&amp;lt;set name='ACCOUNT 1' value='12000' color='0000CC'/&amp;gt;&amp;lt;set name='ACCOUNT 2' value='3900' color='FF3333'/&amp;gt;&amp;lt;set name='ACCOUNT 3' value='36' color='6666CC'/&amp;gt;&amp;lt;set name='ACCOUNT 4' value='-35' color='CC0066'/&amp;gt;&amp;lt;/graph&amp;gt;";&lt;BR&gt;chart1.setDataXML(chartdata1);&lt;BR&gt;chart1.render("chartloc1");&lt;BR&gt;updateChartXML("Chart1ID",chartdata1); &lt;BR&gt;&amp;lt;/script&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;It's an extra step, but it works.  Is there something else that I'm missing?&lt;/P&gt;&lt;P&gt;Also echoing the great product statement - addresses a wide variety of potential needs for me.</description><pubDate>Thu, 06 Mar 2008 21:12:56 GMT</pubDate><dc:creator>sambridegroom</dc:creator></item><item><title>RE: Hint: double quotes != single quote apostrophes for the setDataXML string</title><link>http://www.fusioncharts.com/forum/Topic4747-47-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;For DoubleQuote fixes we have another version of beta FusionCharts.js which you can try from &lt;A href="http://www.fusioncharts.com/forum/FindPost4757.aspx"&gt;http://www.fusioncharts.com/forum/FindPost4757.aspx&lt;/A&gt;</description><pubDate>Thu, 28 Feb 2008 00:16:55 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>Hint: double quotes != single quote apostrophes for the setDataXML string</title><link>http://www.fusioncharts.com/forum/Topic4747-47-1.aspx</link><description>Hi,&lt;br&gt;Thanks for a great software.&lt;br&gt;&lt;br&gt;I had an annoying 'invalid XML' error for a few hours when trying to&lt;br&gt;script graphs that worked perfectly from static files.&lt;br&gt;&lt;br&gt;The solution was to only use single quotes for all attributes within&lt;br&gt;the xml and always using double quotes to handle the string in the javascript.&lt;br&gt;The other way around does not work.&lt;br&gt;&lt;br&gt;  Best regards&lt;br&gt;    Patrik Carlsson</description><pubDate>Wed, 27 Feb 2008 10:23:47 GMT</pubDate><dc:creator>Patrik Carlsson</dc:creator></item></channel></rss>