Forum Moderators: coopster
<?xml version="1.0" encoding="UTF-8"?>
<stuff>
<head>The head</head>
<body>The body</body>
</stuff>
Not sure if that can be done with SimpleXML alone, at least. You are going to have to do a simple string replace for something like that. For instance:
[url=http://www.php.net/str-replace]str_replace[/url]("<head>","<header>",$xml_string);
You'd of course have to write this to the XML file after the replacement.
However, if you wanted to add a child, for instance, you could use addChild [us3.php.net]() and it is very effective.