SerializerConfig¶
- class xsdata.formats.dataclass.serializers.config.SerializerConfig(encoding='UTF-8', xml_version='1.0', xml_declaration=True, pretty_print=False, schema_location=None, no_namespace_schema_location=None)[source]¶
Serializing configuration options.
- Parameters
encoding (
str
) – Text encodingxml_version (
str
) – XML Version number (1.0|1.1)xml_declaration (
bool
) – Generate XML declarationpretty_print (
bool
) – Enable pretty outputschema_location (
Optional
[str
]) – Specify the xsi:schemaLocation attribute valueno_namespace_schema_location (
Optional
[str
]) – Specify the xsi:noNamespaceSchemaLocation attribute value