Anonymous
public text v1 · immutable Function sterg_id($id){
//stergere element in functie de id-ul din array
foreach ($this->xdoc->getElementsByTagName('g') as $elem) {
$elem->setIdAttribute("id", true);
}
$elem = $this->xdoc->getElementById($id);
$this->xdoc->removeChild($elem);
}