erik Report post Posted August 10, 2010 (edited) I have a file data.xml (attached) that I am using as a data source. When calling RenderChartHTML with strURL populated all works as expected and I get my chart. If I try to read in that same file and use it as strXML I get an "Invalid XML Data" error. I have stripped it down to only relevant lines. Here is the code behind: public string GetChartHtml() { TextReader tr = new StreamReader(Server.MapPath("data.xml")); String xmlStringFromFile = tr.ReadToEnd(); tr.Close(); //return FusionCharts.RenderChartHTML("/FusionCharts/Charts/MSColumn3D.swf", "data.xml", "", "chartDiv", "600", "300", false); return FusionCharts.RenderChartHTML("/FusionCharts/Charts/MSColumn3D.swf", null, xmlStringFromFile, "chartDiv", "600", "300", false); } If you could point to what I am doing incorrectly I would greatly appreciate it. Thanks, Erik data.xml Edited August 10, 2010 by Guest Share this post Link to post Share on other sites
erik Report post Posted August 10, 2010 (edited) OK, I have it. The double quotes in the <xml> line of data.xml messed things up when the dataXML parameter is written to the <EMBED> tag. Problem solved. Perhaps this can help someone else. Take care, Erik Edited August 12, 2010 by Guest Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted August 10, 2010 Hi, Could you please confirm whether your issue is resolved ar you are still facing it? Awaiting your reply. Share this post Link to post Share on other sites
erik Report post Posted August 12, 2010 Yes, I am all set now. Thank you for confirming. Have a good day! Erik Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted August 12, 2010 Hi, We are glad that your issue is resolved. Keep smiling and keep FusionCharting. Share this post Link to post Share on other sites