|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/1/2007 3:02:27 AM
Posts: 2,
Visits: 6
|
|
| Hi, I am creating xml for fusion chart display in my jsp using javascript. I have created the xml string and passed it to the method setDataXML(). The problem I am facing is that in that XML string when I use < sign in the label part of category, then it says Invalid xml while displaying that chart. <category label = ' XXX < XXX' ... /> And I have tried using < as well What could be possible solution for this? I hope you got my problem. If not, then let me know what all code parts should I provide you.
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001,
Visits: 474
|
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/7/2007 10:09:32 AM
Posts: 1,
Visits: 2
|
|
Hi,
I just found out that you can use the code %26lt; as < in xml string for setDataXML.
It seems setDataXML convert the string twice, first it converts %26 to & ,
and then the second conversion will change & lt; to the correct <.
That is why we can't use & lt; directly as string in setDataXML.
But this is only the case for the first setDataXML directly after chart creation (new FusionCharts(...)).
The following setDataXML to update the chart does only one string conversion, so you
can use & lt; as < directly as xml string for setDataXML.
Cahya.
|
|
|
|