Sign in to follow this  
charting4fun

xml data with dataURL method giving invalid XML

Recommended Posts

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!

Edited by Guest

Share this post


Link to post
Share on other sites

Any clue anyone?

 

 

 

The XML shown in my original post was actually cut-and-paste from the output of my CGI script as shown by the browser.

 

 

 

 

 

Any help would be greatly appreciated!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this