Update XMLWriter.php