(PHP 8 >= 8.4.0)
XMLWriter::toStream — Create new XMLWriter using a stream for output
Creates a new XMLWriter using a stream for output.
streamThe stream to use for output.
Returns an XMLWriter.
Passing a resource that is not a stream to stream
will throw a TypeError.