Thanks to visit codestin.com Credit goes to www.php.net
(PHP 8 >= 8.4.0)
XMLWriter::toUri — Create new XMLWriter using a URI for output
$uri
Creates a new XMLWriter using a URI for output.
uri
The URI of the resource for the output.
Returns an XMLWriter.