Invalid XML data
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Invalid XML data Expand / Collapse
Author
Message
Posted 3/26/2008 5:27:36 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 8/26/2008 2:30:03 AM
Posts: 31, Visits: 50
Hi,

I am getting invalid xml data. It seems to be some issue in the argument I am passing in the link javascript method. Please find the xml tag below:

<set label='A-B' value='589987'  link='javascript:openInWindow(&#34/GHJYT/ShowPage/ID_DATA?doFilterData=true&f[11][op]=EQ&f[11][len]=1&f[11][0]=4-7&f[7][op]=EQ&f[7][len]=1&f[7][0]=APT&DisplayType=chart&#34, &#34&#34,&#34resizable=1&#34 );'  tooltext = 'Count:589987'/>

Any idea? Thanks for the help in advance

Thanks,

Moorthy

Post #5280
Posted 3/26/2008 5:47:44 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 8/26/2008 2:30:03 AM
Posts: 31, Visits: 50
And I found the & in the url causing the issue. How do we encode this?
Post #5281
Posted 3/26/2008 6:02:49 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 6:02:32 AM
Posts: 764, Visits: 1,215
Hi,

Could you please use %26 for &, %26apos; for single quote (') , %26quot; for double quote (").

Regards,

Sudipto Choudhury
FusionCharts Team

Post #5282
Posted 3/26/2008 6:10:00 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 8/26/2008 2:30:03 AM
Posts: 31, Visits: 50
Its works for me. Thanks a lot.
Post #5283
Posted 4/5/2008 3:17:32 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 8/26/2008 2:30:03 AM
Posts: 31, Visits: 50
Hi,

I have another requirement. In the drill link I am calling one javascript method. The code is:

link='javascript:ShowMenu('Moorthy', 'Mark O'Hon)'

Have encoded single quote. After encoding the code is:

link='javascript:ShowMenu(%26apos;Moorthy%26apos;, %26apos;Mark O%26apos;Hon%26apos'

But I am getting javascript error while clicking the link(bar) in the chart. This issue is because the value itself having single quote. Have tried like this: 

link='javascript:ShowMenu(%26apos;Moorthy%26apos;, %26apos;Mark O\'Hon%26apos'

i,e have replaced the sinle quote in the value by \' In this case I am getting invalid xml error.

Any solution. Thanks for the help in advance

Thanks,

Moorthy

Post #5460
Posted 4/5/2008 8:17:28 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 8/26/2008 2:30:03 AM
Posts: 31, Visits: 50
Found the solution!! The issue is because I didnt escaped properly. using java replace method have escaped \ with \\

Now it is working fine.

Thanks,

Moorthy

Post #5461
Posted 4/10/2008 2:43:20 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/10/2008 8:49:44 PM
Posts: 2, Visits: 3
Using %26apos; gets me past the Invalid XML problem. But when I click on the link, the resulting URL decodes the %26apos; back to '. So if I had a parameter like p=Mc'Donalds and I set link to p=Mc%26apos;Donalds, the URL becomes p=Mc'Donalds so my server sets p to Mc. Is there any way around that?

Thanks,
Brian
Post #5563
Posted 4/10/2008 2:48:12 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/10/2008 8:49:44 PM
Posts: 2, Visits: 3
Let me try that again with the correct escaping so you can see what I meant:

Using %26apos; gets me past the Invalid XML problem. But when I click on the link, the resulting URL decodes the %26apos; back to &apos;. So if I had a parameter like p=Mc'Donalds and I set link to p=Mc%26apos;Donalds, the URL becomes p=Mc&apos;Donalds so my server sets p to Mc. Is there any way around that?

Thanks,
Brian
Post #5564
Posted 4/15/2008 1:11:36 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001, Visits: 474
Brian,

If you do not want the chart to unescape the link for you, we'll have to customize the code for you.