ztgray Report post Posted September 22, 2008 (edited) When using javascript to build and set the XML for the USA map using setDataXML I get the error: ERROR: Invalid XML encountered. An XML element is malformed. Check the XML data that you've provided. If you've special characters in your XML (like %, &, ' or accented characters), please URL Encode them. However, if I copy and paste the EXACT same XML returned by the javascript into a file and use the setDataURL method, the map renders perfectly. It seems like the problem is trying to use single quotes ( ' ) inside the elements returned from the javascript. I have tried replacing them with ' (xml encode), %27 (url encode) and ' (html encode). These ALL give errors! Please help. Thanks! Edited September 22, 2008 by Guest Share this post Link to post Share on other sites
Arindam Report post Posted September 23, 2008 (edited) Hi, Could you please use %26apos; for ' ? Edited September 23, 2008 by Guest Share this post Link to post Share on other sites