Hi I'm using PHP5's simpleXML object. I load in an XML file and overwrite an element containing CDATA tags, but when I do. the "<" and ">" characters get decoded to < and > My code looks like this: $xml = simplexml_load_file('sections.xml'); $xml->section[0]->body = "<![CDATA[".$bodytext."]]>"; $xml->asXML('sections.xml'); but the updated xml node appears like: <body><![CDATA[Here is the body text at 2357]]></body> So how do you include "<" and ">" characters when writing to an xml file with simpleXML? I'm having encoding format as encoding="UTF-8".