Sign in to follow this  
sivatech001

General Issue(Invalid xml data)

Recommended Posts

Hi,

<chart yAxisMinValue="0" yAxisMaxValue="100" formatNumber="0" bgColor='f7f2f7,f7f2f7' bgalpha='100,100'

  formatNumberScale="0" numDivLines="3" legendBorderAlpha="0" borderColor="f7f2f7"

borderThickness="1" showBorder="1"

  useRoundEdges="1" showvalues="0" numberSuffix = '%' shownames="1" palette="5"

  plotSpacePercent='50' labelDisplay='Rotate' slantLabels='1' setAdaptiveYMin='20'>

 

 <categories>

#set($count = 0)

#foreach( $lunchmeals in $lunchmeal)

 <category name = '$lunchmeals' toolText='$lunchmealname.get($count)' color='8BBA00'/>

 #set($count=$count+1)

#end

 </categories>

 

 <dataset color='8BBA00' showValues ='1'>

#foreach( $lunchcalories in $lunchcalorie)

 <set value = '$!lunchcalories' />

 #set ($lunchcalories='0')

#end

 </dataset>

 

</chart>

The above mentioned red color text contain dynamic values comes from database. In that case if the values get name with sigle quote (eg : apple's) then it showing Invalid XML data error.

How to rectify this.

Thanks,

Siva.

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