XMLWriter::toStream

Create new `XMLWriter` using a stream for output

&reftitle.description; public static `static` `XMLWriter::toStream` `resource` `stream`

Creates a new `XMLWriter` using a stream for output.

&reftitle.parameters;

`stream`

- The stream to use for output.

&reftitle.returnvalues;

Returns an `XMLWriter`.

&reftitle.errors;

- Passing a resource that is not a stream to `stream` will throw a TypeError.

&reftitle.seealso;

- `XMLWriter::toMemory`
- `XMLWriter::toUri`