gu_razz Report post Posted May 26, 2014 (edited) Problem with XML Data From Database! i have 2 page of my project myindex.php and GraphAllDep.php contiaing code in the foloowing file. it's just simple code. ERROR: Invalid XML encountered. A start-tag is not matched with an end-tag. Check the XML data that you've provided. If you've special characters in your XML (like %, &, ' or accented characters), please URL Encode them. i don't under stand about it because when am using xml data file its running. i'm a newbie in fusionchart thank you for your answer. GraphAllDep.php myindex.php Edited May 26, 2014 by gu_razz Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted May 27, 2014 Hi, It seems the "GraphAllDep.php" will generate correct XML string. However, as you are having issue while setting the URL in "myindex.php" page, could you please try once by echoing the final "$strXML" in "GraphAllDep.php", after concatenating "</chart>" and see if it helps? Awaiting your valuable response. Share this post Link to post Share on other sites
gu_razz Report post Posted May 29, 2014 (edited) i'm try to echoing the final "$strXML" but its the same rusult. ERROR: Invalid XML encountered. A start-tag is not matched with an end-tag. Check the XML data that you've provided. If you've special characters in your XML (like %, &, ' or accented characters), please URL Encode them. Edited May 29, 2014 by gu_razz Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted May 30, 2014 Could you please provide the XML string generated by you PHP code, to better look into it? Awaiting your response. Share this post Link to post Share on other sites
gu_razz Report post Posted June 2, 2014 <chart legendPosition="" caption="Budget Output report" subCaption="By All Department" xAxisName="Budget" yAxisName="Value" showValues="0" formatNumberScale="0" rotateValues="1" ><categories><category label="Jan"/><category label="Feb"/><category label="Mar"/><category label="Apr"/></categories><dataset seriesName="Actual"><set value="193.700000762939"/><set value="180"/><set value="85.2300033569336"/><set value="20.7800006866455"/></dataset><dataset seriesName="Plan"><set value="500"/><set value="100"/><set value="100"/><set value="100"/></dataset></chart> this is my xml string from echo $strXML but still have same error. T-T Share this post Link to post Share on other sites
gu_razz Report post Posted June 2, 2014 but first GraphAllDep.php echo $strXML is blank i change <> to < > and " to " and then xml srting show. Share this post Link to post Share on other sites
gu_razz Report post Posted June 2, 2014 Info: Chart loaded and initialized. Initial Width: 350 Initial Height: 300 Scale Mode: noScale Debug Mode: Yes Application Message Language: EN Chart Type: Multi Series 2D Line Chart Version: 3.3.1 (XT) Chart Objects: BACKGROUND CANVAS CAPTION SUBCAPTION YAXISNAME XAXISNAME DIVLINES VDIVLINES YAXISVALUES HGRID VGRID DATALABELS DATAVALUES TRENDLINES TRENDVALUES DATAPLOT ANCHORS TOOLTIP VLINES LEGEND VLINELABELS INFO: Chart registered with external script. DOM Id of chart is Budget_By_All INFO: XML Data provided using dataXML method. INFO: XML Data provided using dataXML method. ERROR: Invalid XML encountered. A start-tag is not matched with an end-tag. Check the XML data that you've provided. If you've special characters in your XML (like %, &, ' or accented characters), please URL Encode them. INFO: setDataXML method invoked from external script. INFO: XML Data provided using dataXML method. INFO: XML Data provided using dataXML method. ERROR: Invalid XML encountered. A start-tag is not matched with an end-tag. Check the XML data that you've provided. If you've special characters in your XML (like %, &, ' or accented characters), please URL Encode them. is all debug message Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted June 2, 2014 Hi, I have checked with the XML data provided by you, which is generated from the PHP code, and it renders the chart fine, from our end. Please find the complete sample as attachment, where I have set "GraphAllDep.php" to render the chart. Hope this helps! 15910.zip Share this post Link to post Share on other sites
gu_razz Report post Posted June 2, 2014 i'm try in anyway but its not complete i'm so serious Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted June 3, 2014 Hi, As per the sample I have attached in previous post (15910.ZIP), the only thing is I have provided the static XML instead of generating the XML string by fetching data from database. So, if your PHP code is correctly generating the XML string ( same as you have provided the XML data), there should not be any issue in rendering the chart. Could you please confirm once, whether by providing static XML data, the chart is rendering in your application? Awaiting your valuable inputs. Share this post Link to post Share on other sites