I have a very simple html page that embeds a Pie3D chart. I am trying to provide the data to this chart using dataURL method. The URL points to a simple CGI script that generates the required XML. To me it seems that the XML is perfectly valid but the chart keeps reporting the following error:
ERROR: Invalid XML encountered. An XML element is malformed. Click the above "dataURL Invoked" link to see the XML in browser Or check the XML data provided.
The dataURL looks like this:
/cgi-bin/chartdata.tcl?group=memory&granularity=hourly&chartType=pie&debugMode=1
(the URL is url-encoded as provided to the chart swf)
The XML generated by this CGI script is the following:
<chart caption="Memory Utilization" subcaption="For " xAxisName="Time" yAxisName="Percentage">
<set label="Used" value="465507942"/>
<set label="Free" value="1632246170"/>
</chart>
I understand xAxis and yAxis do not make sense for Pie chart, but removing them makes no difference.
Providing the same data using dataXML embeded in the HTML works fine.
Any help would be helpful!