Cdata and xml

Are there any special things I have to do in order to get CDATA to work so I’m able to use apostrophe’s with text I bring in from a mysql database?

Basically all I’m doing is making a .php file that echo xml tags and brings in the data. Then I set a CDATA tag between the xml tags where it’s needed but it still brings in apostrophe’s and stuff as '; when I load it into flash.

Am I missing something? Is it because I’m running it from a .php file instead of .xml?

Any help would be greatly appreciated!