Sign in to follow this  
Gopinath@Fis

Framing xml Problem

Recommended Posts

Hi,

 

I included fusionchart in flex and my xml is got from java server side script, my xml is generated and it is passed through code

 

 

 

 

 

public var xmldata:XML;

 

private function Chartresult(event:ResultEvent):void{

 

xmldata = event.result as XML;

 

}

 

 

 

 

 

 

 

 

When i run application i get error as follows

 

 

 

 

 

INFO: Chart registered with external script. However, the DOM Id of chart has not been defined. You need to define it if you want to interact with the chart using external scripting.

 

INFO: XML Data provided using dataXML method.

 

ERROR: Invalid XML encountered. A start-tag is not matched with an end-tag. Click the above "dataURL Invoked" link to see the XML in browser Or check the XML data provided.

 

 

 

 

 

Here is my XMl:

 

<?xml version="1.0" encoding="UTF-8"?>

 

 

 

 

 

 

 

 

 

 

 

 

Please help me in framing fine xml to Fusion chart FCData.

 

 

 

Wiht Regards

 

Gopinath.A

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello Gopinath,

 

 

 

The error you are getting is 'Invalid XML encountered.' This means the XML formatting needs to be altered. The <Count> element is not supported in FusionCharts.

 

 

 

You have the following XML:

 

 

 

<chart>

 

<Count>

 

<set label='High' value ='687'/>

 

<set label='Low' value ='39567'/>

 

<set label='Medium' value ='72'/>

 

<set label='None' value ='3231'/>

 

<set label='null' value ='0'/>

 

</Count>

 

</chart>

 

 

 

You should be having the following XML instead:

 

 

 

<chart>

 

<set label='High' value ='687'/>

 

<set label='Low' value ='39567'/>

 

<set label='Medium' value ='72'/>

 

<set label='None' value ='3231'/>

 

<set label='null' value ='0'/>

 

</chart>

 

 

 

I hope this helps:exclamationmark:

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