Sign in to follow this  
Abdoral Neto

Erro In Setdataxml

Recommended Posts

I have a variable $xml who contains a string of xml to render a chart, if I do this:


chart.setDataXML('".$xml."') occus a erro;


But if I safe this string in a arquive like this:




$arquivoXml = fopen("/charts/docs/_dataXml/grafico.xml", "a+");

$eues = fwrite($arquivoXml, $xml);



and I do chart.setDataURL('/charts/docs/_dataXml/grafico.xml') the chart is render.


Whats the direrence?!

Share this post

Link to post
Share on other sites



Will it be possible for you to share (attach) the XML with us?


Please note that you might be having special characters like % & etc, which need to be URL Encoded or you might be having newline characters which needs to be removed before you can pass the XML as string from PHP.

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