With SimpleXML, it is possible to add/change/delete attributes of a selected Node «on the fly» by typing e.g.
$child->addAttribute('n', $occ_order);
is there a way to alter the name of the $child element as well? I would expect something like
$child->setName('newTagName');
but I cannot find a corresponding function in the API.
Thanks in advance for your hints!