I am trying to put an html string inside of xml with php like this:
<?php
$xml_resource = new SimpleXMLElement('stuff.xml', 0, true);
$xml_resource->content = '<![CDATA[<u>111111111111111111111111111111111 text</u>]]>';
$xml_resource->asXML('stuff.xml');
?>
but for some reason my xml file looks like this:
<?xml version="1.0"?> <data>
<content id="pic1" frame="1" xpos="22" ypos="22" width="11" height="11"><![CDATA[<u>111111111111111111111111111111111 text</u>]]></content> </data>
Thank you very much for your help good sirs.