gu_razz

Problem with XML Data From Database!

Recommended Posts

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 by gu_razz

Share this post


Link to post
Share on other sites
Guest Sashibhusan

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

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 by gu_razz

Share this post


Link to post
Share on other sites
Guest Sashibhusan

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

<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

  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

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
Guest Sashibhusan

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

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