﻿<?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 v3 / Using FusionCharts / FusionCharts and ASP.NET  / asp.net c# - invalid xml / 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>Wed, 07 Jan 2009 14:37:39 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: asp.net c# - invalid xml</title><link>http://www.fusioncharts.com/forum/Topic2917-32-1.aspx</link><description>that worked. thanks.</description><pubDate>Fri, 02 Nov 2007 11:11:40 GMT</pubDate><dc:creator>dcummiskey</dc:creator></item><item><title>RE: asp.net c# - invalid xml</title><link>http://www.fusioncharts.com/forum/Topic2917-32-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Every thing seems ok .... except the numberSuffix='%'&lt;/P&gt;&lt;P&gt;please use %25 (URL encoded value of %) instead (numberSuffix='%25') &lt;/P&gt;&lt;P&gt;Hope all will wokr fine then.</description><pubDate>Thu, 01 Nov 2007 09:03:14 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>asp.net c# - invalid xml</title><link>http://www.fusioncharts.com/forum/Topic2917-32-1.aspx</link><description>Hello -&lt;BR&gt;I'm trying to implement the angular gauge in an asp.net page with C#. I keep getting an&lt;BR&gt;invalid XML but the XML looks valid. I've even taken the demo sample and tried using&lt;BR&gt;that and had no luck.&lt;BR&gt;&lt;BR&gt;We have fusioncharts as well and I'm wondering if we have to use a different .js file&lt;BR&gt;or .cs for gadgets versus the charts?&lt;BR&gt;&lt;BR&gt;Here is my xml output:&lt;BR&gt;&lt;CHART showValue="1" tickValueDistance="20" numberSuffix="%" palette="1" gaugeEndAngle="0" gaugeStartAngle="180" upperLimitDisplay="" lowerLimitDisplay="" upperLimit="100" lowerLimit="0"&gt;&lt;COLORRANGE&gt;&lt;COLOR code="FF654F" maxValue="75" minValue="0" /&gt;&lt;COLOR code="8BBA00" maxValue="100" minValue="75" /&gt;&lt;/COLORRANGE&gt;&lt;DIALS&gt;&lt;DIAL rearExtension="10" value="7.61" /&gt;&lt;/DIALS&gt;&lt;/CHART&gt;[code]&amp;lt;&lt;SPAN class=start-tag&gt;chart&lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt; lowerLimit&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'0' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;upperLimit&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'100' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;lowerLimitDisplay&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;upperLimitDisplay&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;gaugeStartAngle&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'180' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;gaugeEndAngle&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'0' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;palette&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'1' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;numberSuffix&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'%' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;tickValueDistance&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'20' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;showValue&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'1'&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class=start-tag&gt;colorRange&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class=start-tag&gt;color&lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt; minValue&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'0' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;maxValue&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'75' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;code&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'FF654F'&lt;/SPAN&gt;&lt;SPAN class=error&gt;&lt;SPAN class=attribute-name&gt;/&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class=start-tag&gt;color&lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt; minValue&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'75' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;maxValue&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'100' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;code&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'8BBA00'&lt;/SPAN&gt;&lt;SPAN class=error&gt;&lt;SPAN class=attribute-name&gt;/&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;&amp;lt;/&lt;SPAN class=end-tag&gt;colorRange&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class=start-tag&gt;dials&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class=start-tag&gt;dial&lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt; value&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'7.61' &lt;/SPAN&gt;&lt;SPAN class=attribute-name&gt;rearExtension&lt;/SPAN&gt;=&lt;SPAN class=attribute-value&gt;'10'&lt;/SPAN&gt;&lt;SPAN class=error&gt;&lt;SPAN class=attribute-name&gt;/&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;&amp;lt;/&lt;SPAN class=end-tag&gt;dials&lt;/SPAN&gt;&amp;gt;&amp;lt;/&lt;SPAN class=end-tag&gt;chart&lt;/SPAN&gt;&amp;gt;[/code]&lt;BR&gt;&lt;BR&gt;here is the c# code that renders the html:&lt;BR&gt;&lt;BR&gt;[code]&lt;BR&gt;string xmlData;//Generate the chart elementxmlData = "&amp;lt;chart lowerLimit='0' upperLimit='100' lowerLimitDisplay='' upperLimitDisplay='' gaugeStartAngle='180' gaugeEndAngle='0' palette='1' numberSuffix='%' tickValueDistance='20' showValue='1'&amp;gt;";xmlData += "&amp;lt;colorRange&amp;gt;";xmlData += "&amp;lt;color minValue='0' maxValue='75' code='FF654F'/&amp;gt;";xmlData += "&amp;lt;color minValue='75' maxValue='100' code='8BBA00'/&amp;gt;";xmlData += "&amp;lt;/colorRange&amp;gt;";xmlData += "&amp;lt;dials&amp;gt;";foreach ( DataRow row in dt.Rows){xmlData += "&amp;lt;dial value='" + row["pt"].ToString() + "' rearExtension='10'/&amp;gt;";}xmlData += "&amp;lt;/dials&amp;gt;";xmlData += "&amp;lt;/chart&amp;gt;";Response.Write(xmlData);//Create the chart - Pie 3D Chart with data from xmlDatalblChart.Text = InfoSoftGlobal.FusionCharts.RenderChartHTML("FusionCharts/AngularGauge.swf", "", xmlData,"fChart", "200", "240", false);[/code]&lt;BR&gt;&lt;BR&gt;thanks,&lt;BR&gt;Dan</description><pubDate>Wed, 31 Oct 2007 16:49:39 GMT</pubDate><dc:creator>dcummiskey</dc:creator></item></channel></rss>