aeat.application.filing._export_xml_dictionary module¶
XML-dictionary declaration export renderer.
Renders approved declaration drafts through registry xml_dictionary export
layouts. The renderer reuses the official AEAT dictionary and XSD source refs
resolved by the registry schema provider, then writes only a local XML payload
for the draft export path.
See also
export_draft()Draft export service that selects this renderer for XML dictionary layouts.
ModeloDraftApproved declaration draft whose casilla and header values are rendered.
ExportLayoutDefinitionRegistry export layout carrying dictionary and XSD source references.
XmlDictionaryEntryParsed dictionary row consumed while projecting XML fields.
xml_dictionary_entries()Registry helper that reads the official dictionary source.
RegistrySchemaAccessorRuntime schema provider that resolves source roots and references.
- render_xml_dictionary_layout(layout, *, draft, headers, schema_provider)[source]¶
Render an XML-dictionary layout for an approved declaration draft.
- Parameters:
layout (
ExportLayoutDefinition) – RegistryExportLayoutDefinitionwhose format isxml_dictionary.draft (
ModeloDraft) – ApprovedModeloDraftsupplying casilla values, modelo, and period metadata.headers (
dict[str,str]) – Normalized declaration header values such as identity fields.schema_provider (
RegistrySchemaAccessor) –RegistrySchemaAccessorthat resolves dictionary and XSD source references.
- Return type:
- Returns:
UTF-8 XML declaration bytes for the local export artefact.