Jump to content

Archived

This topic is now archived and is closed to further replies.

warpdesign

special characters in XML

Recommended Posts

I'm reading from an XML file using DOMDocument(), but I'm having problems when the data in the XML has special characters in it it returns an error. For example If there is a parenthases in it it will cause it to fail. Does the data in the XML have to be encoded somehow? I've tried using addslashes but that didn't help. :(

Share this post


Link to post
Share on other sites
Actually I found out parenthases are not the problem but & and <> are for sure causing problems... Is there a fix for this??

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.