xsdata.formats.dataclass.serializers.config module

class xsdata.formats.dataclass.serializers.config.SerializerConfig(encoding='UTF-8', xml_version='1.0', pretty_print=False, schema_location=None, no_namespace_schema_location=None)[source]

Bases: object

Parameters
  • encoding (str) – Text encoding

  • xml_version (str) – XML Version number (1.0|1.1)

  • pretty_print (bool) – Enable pretty output

  • schema_location (Optional[str]) – Specify the xsi:schemaLocation attribute value

  • no_namespace_schema_location (Optional[str]) – Specify the xsi:noNamespaceSchemaLocation attribute value

encoding: str = 'UTF-8'
xml_version: str = '1.0'
pretty_print: bool = False
schema_location: Optional[str] = None
no_namespace_schema_location: Optional[str] = None