diff options
-rwxr-xr-x | update.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -28,6 +28,10 @@ $proc2->importStyleSheet($process); $step1 = $proc1->transformToDoc($xml); $step2 = $proc2->transformToXML($step1); +/* + * LOAD XML has bugs (NULL columns) when there are empty, self closing tags like + * <title/> Replace those with <title></title> + */ $step3 = preg_replace('#<([^>]*)/>#', '<\1></\1>', $step2); file_put_contents($output, $step3); |