354
379
foreach ($removeSections as $i) {
355
380
$string = preg_replace('#'.preg_quote('<section xml:id="'.$i.'">').'.*?</section>#s', '', $string);
357
383
$xml = new SimpleXMLElement($string);
359
385
if ( $file->getFilename() == 'versions.xml' ) {