Somehow you ended up posting this on the french mirror of the site, for some reason...
Nevertheless, I've always found SimpleXML to be seriously more complicated and bizarre than the supposed-to-be-complecated DOM. At least, with DOM, an apple will always be an apple, if you catch my meaning.
Here's what your function would look like using DOM
× Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
× Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
{LVM}Plan de "partitions" pour machines virtuelles ? Carte de capture sous linux ? Erreur ACPI au boot ?