Posted by dcrackel on 02/21/07 17:14
I hope there is a simple solution to this, but I've been unable to
find it.
$dom = new DomDocument();
$dom->load("test.xml");
$test = $dom->getElementsByTagName("test");
$test->nodeValue = "<b>test</b>";
$dom->save("test.xml");
I would like the node in the xml file to look like:
<test><b>test</b></test>
Rather than the encoded version.
<b>test</b>
What can be done to accomplish this task?
Thank you
dwain
Navigation:
[Reply to this message]
|