update XMLStream.php