Hallo,
dieses Script gibt bei mir folgendes aus:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<colors>
<color>
<name>Orange</name>
<ton1>Rot</ton1>
<ton2>Gelb</ton2>
</color>
</colors>
Diesmal PHP 5.2.5.
Ich denke mal, es handelt sich um einen PHP-Bug.
Wie auch immer, hatte ich erwähnt, dass ich für solche Operationen nicht SimpleXML nehmen würde, weil es für so etwas gar nicht vorgesehen ist? Nimm für Schreiboperationen lieber W3C DOM, da ist PHP 5.2.0 garantiert ausreichend.
Mathias