XmlEventWriter¶
-
class
xsdata.formats.dataclass.serializers.writers.
XmlEventWriter
(config, output, ns_map=<factory>)[source]¶ XmlWriter
implementation based on native python.Based on the native python
xml.sax.saxutils.XMLGenerator
with support for indentation. Converts sax events directly to xml output without storing intermediate result to memory.- Parameters
config (
SerializerConfig
) – Configuration instanceoutput (
TextIO
) – Output text streamns_map (
Dict
) – User defined namespace prefix-URI map