Sign in to follow this  
Guest Madhumita

Invalid XML Data - Affected by Apostrophe in Database Field Name (MS Access), PHP Platform

Recommended Posts

Salam Sejahtera and Hi everyone,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

This is such brilliant application!

Currently, I am integrating this Fusion Chart Application with MS Access using PHP as my platform. I found out that, Invalid XML will happen when it pulls data from the database where the field name has an apostrophe like this: SS-1200/24'00. FYI, it will not be a problem if the apostrophe is removed but it would be a lot of work just to edit the field name. Appreciate if could provide solution for this issues.

Thank you very much.

Regards,

Muzammil

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Welcome to the FusionCharts Forum.

Thank you for appreciating our product. :)

 

The apostrophe has to be encoded as ' .

I assume you are using your own PHP API. Thus to encode the apostrophe as ' you can take cues from the FusionCharts_Gen.PHP file in the function encodeSpecialChars($strValue).

 

Hope this helps.

Share this post


Link to post
Share on other sites

Hello,

 

 

 

Thank you Madhumita for your response,

 

 

 

I have tried to encode apostrophe as ' by manually editing it in the coding but still it doesn't work.

 

 

 

Interested to know on how to take that cues. Where do I get this FusionCharts_Gen.PHP and particularly the function encodeSpecialChars($strValue)

 

 

 

Regards,

 

Muzammil

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Muzammil,

Could you please try it using '%26apos;' in place of "'s"

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi Basundhara Ghosal,

 

 

 

Thank you very much,

 

 

 

That works perfectly.

 

 

 

Thanks again! Appreciate your information.

 

 

 

Muzammil

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