---
name: "XML::Struct::Writer::Stream"
section: "3pm"
platform: "linux"
package: "libxml-struct-perl"
version: "0.27-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/XML::Struct::Writer::Stream"
---

# XML::Struct::Writer::Stream(3pm)

simplified SAX handler to serialize (Micro)XML

## NAME

XML::Struct::Writer::Stream - simplified SAX handler to serialize (Micro)XML

## DESCRIPTION

This class implements a simplfied SAX handler for stream-based serialization of XML. DTDs, comments, processing instructions and similar features not part of MicroXML are not supported.

The handler is written to reproduce the serialization of libxml.

## CONFIGURATION

- fh

  File handle or compatible object to write to (standard output by default).

- pretty

  Pretty-print XML if enabled.

## SEE ALSO

See XML::SAX::Writer, XML::Genx::SAXWriter, and XML::Handler::YAWriter for more elaborated SAX writers and XML::Writer for a general XML writer, not based on SAX.
