﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionWidgets v3 (previously FusionGadgets) / Using FusionWidgets  / Invalid XML data / 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>Fri, 10 Oct 2008 17:30:59 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Invalid XML data</title><link>http://www.fusioncharts.com/forum/Topic5775-17-1.aspx</link><description>Hi, thanks for the reply, I did a very simple thing and it is working now.&lt;BR&gt;&lt;BR&gt;You are right, it transfers %26apos; to &amp;amp;apos;, so I manually update the &amp;amp;apos; back to %26apos before it render the chart and it is working.&lt;BR&gt;&lt;BR&gt;Maybe this sound stupid :crying:&lt;BR&gt;&lt;BR&gt;But anyway, thanks for your help</description><pubDate>Thu, 24 Apr 2008 01:01:11 GMT</pubDate><dc:creator>zhxcookie</dc:creator></item><item><title>RE: Invalid XML data</title><link>http://www.fusioncharts.com/forum/Topic5775-17-1.aspx</link><description>Thanks for your reply, but it still does not work.&lt;/P&gt;&lt;P&gt;link='javascript:launchdailyreport(&amp;amp;apos;report.php&amp;amp;apos;,&amp;amp;apos;07-Apr-2008&amp;amp;apos;,&amp;amp;apos;XXX&amp;amp;apos;,&amp;amp;apos;YYY&amp;amp;apos; );'</description><pubDate>Wed, 23 Apr 2008 21:50:28 GMT</pubDate><dc:creator>zhxcookie</dc:creator></item><item><title>RE: Invalid XML data</title><link>http://www.fusioncharts.com/forum/Topic5775-17-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;I suppose you must be using addGanttTask($label="",$catParam="") function and in the param you are passing the link. e.g.&lt;/P&gt;&lt;P&gt;FC-&amp;gt;setParamDelimiter(":");&lt;/P&gt;&lt;P&gt;FC-&amp;gt;setParamFC-&amp;gt;addGanttTask("abc","link=jsfnName(%26apos;a1%26apos;,%26apos;a2%26apos;)");&lt;/P&gt;&lt;P&gt;Could you please try once : &lt;/P&gt;&lt;P&gt;FC-&amp;gt;setParamFC-&amp;gt;addGanttTask("abc","link=jsfnName(&amp;amp;apos;a1&amp;amp;apos;,&amp;amp;apos;a2&amp;amp;apos;)");&lt;/P&gt;&lt;P&gt;(since addGanttTask() itself encodes the &amp;amp; to %26)</description><pubDate>Wed, 23 Apr 2008 07:02:53 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: Invalid XML data</title><link>http://www.fusioncharts.com/forum/Topic5775-17-1.aspx</link><description>Thanks for the reply, I tried the different Parameter Delimiter, and get this result:&lt;/P&gt;&lt;P&gt;&amp;lt;task label='Start:22:00 Finish:06:30' start='07/01/2008 22:00:00'  end='07/02/2008 06:30:00'  processId='07-Apr-2008'  link='javascript:launchdailyreport(&amp;amp;apos;report.php&amp;amp;apos;,&amp;amp;apos;07-Apr-2008&amp;amp;apos;,&amp;amp;apos; XXX&amp;amp;apos;,&amp;amp;apos;YYY&amp;amp;apos;)'  /&amp;gt;&lt;/P&gt;&lt;P&gt;here are the code for adding task for Gantt Chart&lt;/P&gt;&lt;P&gt;# Setting Tasks Parameter into TaskParam variables&lt;BR&gt;  function setGanttTasksParams($strParam){&lt;BR&gt;    $listArray=explode($this-&amp;gt;del,$strParam);&lt;BR&gt;    # Fetching all value and converting into xml attribute&lt;BR&gt;    foreach ($listArray as $valueArray) {&lt;BR&gt;      $paramValue=explode("=",$valueArray);&lt;BR&gt;     if($this-&amp;gt;validateParam($paramValue)==true){&lt;BR&gt;       $this-&amp;gt;GT_Tasks_Param .= $paramValue[0] . "='" . $this-&amp;gt;encodeSpecialChars($paramValue[1]) . "' ";&lt;BR&gt;    }&lt;BR&gt;    }&lt;BR&gt;  }   &lt;BR&gt;  &lt;BR&gt;  # Function addGanttTasks adding Tasks&lt;BR&gt;  function addGanttTask($label="",$catParam=""){&lt;BR&gt;      &lt;BR&gt;    $strCatXML="";&lt;BR&gt;   $strParam="";&lt;BR&gt;   &lt;BR&gt;   # cheking catParam not blank&lt;BR&gt;   if($catParam!=""){&lt;BR&gt;    $listArray=explode($this-&amp;gt;del,$catParam);&lt;BR&gt;    foreach ($listArray as $valueArray) {&lt;BR&gt;     $paramValue=explode("=",$valueArray);&lt;BR&gt;     if($this-&amp;gt;validateParam($paramValue)==true){&lt;BR&gt;      # creating parameter set&lt;BR&gt;        if(trim(strtolower($paramValue[0]))=="link"){&lt;BR&gt;          $strParam .= $paramValue[0] . "='" . urldecode($paramValue[1]) . "' ";&lt;BR&gt;        }else{&lt;BR&gt;        $strParam .= $paramValue[0] . "='" . $this-&amp;gt;encodeSpecialChars($paramValue[1]) . "' ";&lt;BR&gt;      }&lt;BR&gt;     }&lt;BR&gt;    }&lt;BR&gt;    }&lt;BR&gt;   # adding label and parameter set to category &lt;BR&gt;    $strCatXML ="&amp;lt;task label='" . $label . "' " . $strParam . " /&amp;gt;";&lt;BR&gt;            &lt;BR&gt;    # storing into GT_Tasks array&lt;BR&gt;    $this-&amp;gt;GT_Tasks[$this-&amp;gt;GT_Tasks_Counter]=$strCatXML;&lt;BR&gt;    # Increase Counter&lt;BR&gt;    $this-&amp;gt;GT_Tasks_Counter++;&lt;BR&gt;  }&lt;/P&gt;&lt;P&gt;and the code to get the task xml&lt;/P&gt;&lt;P&gt;# Function getProcessesXML for getting Processes part XML&lt;BR&gt;  function getTasksXML(){&lt;BR&gt;    &lt;BR&gt;   $partXML="";&lt;BR&gt;   # adding processes parameter&lt;BR&gt;   $partXML="&amp;lt;tasks " . $this-&amp;gt;GT_Tasks_Param . " &amp;gt;";&lt;BR&gt;   foreach($this-&amp;gt;GT_Tasks as $part_type =&amp;gt; $part_name){&lt;BR&gt;    if($part_name!=""){ &lt;BR&gt;     # adding elements &lt;BR&gt;     $partXML .= $part_name;&lt;BR&gt;    } &lt;BR&gt;   }&lt;BR&gt;    &lt;BR&gt;   # Closing &amp;lt;tasks&amp;gt;&lt;BR&gt;   $partXML .="&amp;lt;/tasks&amp;gt;";&lt;BR&gt;   return $partXML;&lt;BR&gt;  }&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Mon, 21 Apr 2008 19:18:54 GMT</pubDate><dc:creator>zhxcookie</dc:creator></item><item><title>RE: Invalid XML data</title><link>http://www.fusioncharts.com/forum/Topic5775-17-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Could you please try seeting some other delimeter? like "$$" etc. and try again. Could you please send us the code that you are witing using PHP Class to generate this XML?</description><pubDate>Mon, 21 Apr 2008 00:45:18 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: Invalid XML data</title><link>http://www.fusioncharts.com/forum/Topic5775-17-1.aspx</link><description>I am using the FusionCharts_Gen.php which is in the free version \FusionChartsFree\Code\PHPClass\Includes to generate the xml, I modified a bit to fit the version 3, like change the swf file name without "FCF_", changed the &lt;graph&gt; to &lt;chart&gt;, and changed the "name" to "label".&lt;br&gt;&lt;br&gt;In order to get the %26apos; I changed the Parameter Delimiter to be ";;" instead of the default ";".&lt;br&gt;&lt;br&gt;but seems it cannot work with the %26apos;&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Sun, 20 Apr 2008 19:55:30 GMT</pubDate><dc:creator>zhxcookie</dc:creator></item><item><title>RE: Invalid XML data</title><link>http://www.fusioncharts.com/forum/Topic5775-17-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Could you please send us the php code (or the code block) where you are generating this link? &lt;/P&gt;&lt;P&gt;It seems that somewhere the XML is getting broken.</description><pubDate>Sat, 19 Apr 2008 01:55:12 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>Invalid XML data</title><link>http://www.fusioncharts.com/forum/Topic5775-17-1.aspx</link><description>Hi, &lt;P&gt;I am using the Gantt.swf in FusionWidget V3 Eva version, and I am creating a Gantt chart with 8 tasks.&lt;/P&gt;&lt;P&gt;I need to add the link against the task, which means, when you click the task, it should run a javascript which needs to pass three php variables.&lt;/P&gt;&lt;P&gt;Before I put the link on, the chart works fine. But, when I put the link, I got the error.&lt;BR&gt;when I put this in code:&lt;BR&gt;link='javascript:launchdailyreport('report.php','".$daily_report[$i]["date"]."','".$daily_report[$i]["code"]."','".$daily_report[$i]["en"]."')'&lt;BR&gt;I can see the xml in the page source when I render the page in IE&lt;BR&gt;&amp;lt;task label='Start:22:00 Finish:06:16 Duration:8 hours 16 minutes' start='07/01/2008 22:00:00'  end='07/02/2008 06:16:00'  processId='13-Apr-2008'  link='javascript:launchreport('report.php','13-Apr-2008','XXX','YYY')'  /&amp;gt;&lt;BR&gt;and on the page, it shows "Invalid XML data"&lt;/P&gt;&lt;P&gt;and when I change all the single quote (') to %26apos; it is like&lt;BR&gt;link='javascript:launchdailyreport(%26apos; report.php %26apos; , %26apos; ".$daily_report[$i]["date"]." %26apos; , %26apos; ".$daily_report[$i]["code"]."%26apos; , %26apos; ".$daily_report[$i]["en"]." %26apos; )'&lt;BR&gt;I can see the the xml in the page source when I render the page in IE&lt;BR&gt;&amp;lt;task label='Start:22:00 Finish:06:16 Duration:8 hours 16minutes' start='07/01/2008 22:00:00'  end='07/02/2008 06:16:00'  processId='13-Apr-2008'  link='javascript:launchreport(&amp;amp;apos'  /&amp;gt;&lt;BR&gt;and of course it is "Invalid XML data" error.&lt;/P&gt;&lt;P&gt;I dont know how to fix it.&lt;/P&gt;&lt;P&gt;Hope you could understand my situation. Thanks in advance.</description><pubDate>Fri, 18 Apr 2008 22:13:40 GMT</pubDate><dc:creator>zhxcookie</dc:creator></item></channel></rss>