php: replace text in xml doc
php: replace text in xml doc
Out of context: Reply #13
- Started
- Last post
- 27 Responses
- neverblink0
get that xml into a variable inside php ($xmlstr in this example)
$xml = new SimpleXMLElement($xmlstr);
$xml->root->branche[0]->leave[0] = "<![CDATA[Goodbye]]>";- doesn't work. the < > are changed to < and >felizfeliz