Menu
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 = ‘<u>111111111111111111111111111111111 text</u>’;
$xml_resource->asXML(‘stuff.xml’);
?>
<?xml version=”1.0″?> <data>
<content id=”pic1″ frame=”1″ xpos=”22″ ypos=”22″ width=”11″ height=”11″><![<u>111111111111111111111111111111111 text</u>></content> </data>
so my problem is i want the same <u></u> tags in xml but when i write then this change to any other formate so please help me urgently.thanks.