Sign in to follow this  
Pallav

setDataXML can't handle <

Recommended Posts

For some reason JS setDataXML does not handle the

<
correctly. I get the invalid XML error when I tired using the
<
character. I tried a couple of recommendations from forum using %3C and < with styles to no avail.

 

 

 

It works if I return the xml chart using the setDataURL. I tried the

>
and it works using %3E encoding.

 

 

 

Any thoughts or suggestions are greatly appreciated.

 

 

 

Regards,

 

Khy

Share this post


Link to post
Share on other sites

I tired using < in the setDataURL and it works fine. That is why I find it odd. May there is some processing in the JS script when it retrieves the xml content from a URL.

 

 

 

Also I tried the %16lt; in setDataXML, the result is the "%16" portion gets converted to appropriate character but the remaining string "lt;" is still there. I tried %3C but in setDataXML the result is invalid XML error.

 

 

 

The version is the developer product.

 

 

 

Regards,

 

Khy

Share this post


Link to post
Share on other sites

Sudipto,

 

 

 

It works !!! Thanks. I am crossing my finger the next version will work with this type of fix as it is different than what gets passed to getDataURL.

 

 

 

Regards,

 

Khy

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