Podría ser así:
    
Código PHP:
Ver original- try{ 
-   
-     $dom = new DOMDocument();           
-     $dom->load('simple.xml'); 
-   
-     $node = $dom->createElement('noticia');         
-     $node->setAttribute('id', $Nid);   
-     $node->setAttribute('titulo', $Ntitulo);     
-     $node->setAttribute('fecha', $Nfecha);     
-     $node->setAttribute('contenido', $Ncontenido);  
-   
-     $xpath = new DOMXPath($dom);         
-     $first = $xpath->query('//noticia[1]')->item(0); 
-   
-     if (null === $first) { 
-         $dom->documentElement->appendChild($node);             
-     } else { 
-         $first->parentNode->insertBefore($node, $first); 
-     } 
-   
-     $max   = 10; 
-     $total = $xpath->evaluate('count(//noticia)'); 
-              
-     if ($total > $max) { 
-         $nodeList = $xpath->query(sprintf('//noticia[position() > %s]', $max));                     
-         foreach($nodeList as $node) {                     
-             $dom->documentElement->removeChild($node); 
-         } 
-     }             
-              
-     $dom->save('simple.xml'); 
-   
- } catch (Exception $e) { 
-      //handle exception 
- } 
Nota: podrias extender la clase DOMDocument y agregarle toda la funcionalidad que necesitas. 
Salu2.