---
id: object/codeunit/13689
type: object
title: Codeunit 13689 "Xml Data Handling SAF-T DK"
summary: Codeunit 13689 "Xml Data Handling SAF-T DK" in SAFTModificationDK (Microsoft.Finance.AuditFileExport). 8 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - saftmodificationdk
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-12-06T00:48:06.827Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: bdd8fbb10e3aa14c7ac2dad50ebba6547948a5c91ec7e7d05ff23b9efba0f80b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/SAFTModificationDK/app/src/XmlDataHandlingSAFTDK.Codeunit.al
    title: src/Apps/W1/SAFTModificationDK/app/src/XmlDataHandlingSAFTDK.Codeunit.al (releases/29.x)
    date: null
    commit: 4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11849
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Denmark/how-to-use-saft-audit-files-export
      title: Export the SAF-T audit file format in Denmark
      label: possibly related
      why: XML data handling for Danish SAF-T, core to the SAF-T export file structure and format.
      by: model
object_type: codeunit
object_id: 13689
name: Xml Data Handling SAF-T DK
namespace: Microsoft.Finance.AuditFileExport
app: SAFTModificationDK
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 17
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 1
---

# Codeunit 13689 "Xml Data Handling SAF-T DK"

> Codeunit 13689 "Xml Data Handling SAF-T DK" in SAFTModificationDK (Microsoft.Finance.AuditFileExport). 8 public procedures. Introduced in BC29, still in BC30.

SAFTModificationDK · Microsoft.Finance.AuditFileExport · BC29-30 · [source at 4e6a307c](https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/SAFTModificationDK/app/src/XmlDataHandlingSAFTDK.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `GetAuditFileNamespace(var NamespacePrefix: Text; var NamespaceUri: Text)`
- `GetHeaderModificationAllowed(var AddPrevSiblingsAllowed: Boolean; var AddNextSiblingsAllowed: Boolean; var AddChildNodesAllowed: Boolean; var SetNameValueAllowed: Boolean; var RemoveNodeAllowed: Boolean)`
- `GetNodeModificationAllowed(AuditFileExportDataType: Enum "Audit File Export Data Type"; var AddPrevSiblingsAllowed: Boolean; var AddNextSiblingsAllowed: Boolean; var AddChildNodesAllowed: Boolean; var SetNameValueAllowed: Boolean; var RemoveNodeAllowed: Boolean)`
- `GetPrevSiblingsToAdd(RecRef: RecordRef; XPath: Text; NamespaceUri: Text; var Params: Dictionary of [Text, Text]): XmlNodeList`
- `GetNextSiblingsToAdd(RecRef: RecordRef; XPath: Text; NamespaceUri: Text; var Params: Dictionary of [Text, Text]): XmlNodeList`
- `GetChildNodesToAdd(RecRef: RecordRef; XPath: Text; NamespaceUri: Text; var Params: Dictionary of [Text, Text]): XmlNodeList`
- `SetCurrXmlElementNameValue(var Name: Text; var Content: Text; var EmptyContentAllowed: Boolean; RecRef: RecordRef; XPath: Text; var Params: Dictionary of [Text, Text])`
- `RemoveCurrentXmlElement(RecRef: RecordRef; XPath: Text; var Params: Dictionary of [Text, Text]): Boolean`

Plus 9 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 5292 "Xml Helper SAF-T Public"](../codeunit/5292.md) (18 calls: `CreateAddressNumberNode → AppendXmlNodeEmptyContentAllowed`, `CreateAddressNumberNode → GetXmlNodes`, `CreateAddressNumberNode → Initialize`, …)
- [Codeunit 5280 "SAF-T Data Mgt."](../codeunit/5280.md) (5 calls: `CreateBicCurrencyCodeAccountIdNode → GetISOCurrencyCode`, `CreateStandardTaxAndCountryCodeNodes → GetISOCountryCode`, `GetCustVendorRegistrationNumber → GetSAFTMiddle1Text`, …)

## Implements

- [Interface "XmlDataHandlingSAFT"](../interface/xmldatahandlingsaft.md)

## Recent changes

- 2026-11-12 [#11849 [Master] - Slice 611452: [AT][IC][RegF] Enable Danish SAF-T to be used in Austria and Iceland](../../changes/bcapps/11849.md) (main, BC30, feature, renamed)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Export the SAF-T audit file format in Denmark](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Denmark/how-to-use-saft-audit-files-export) — possibly related: XML data handling for Danish SAF-T, core to the SAF-T export file structure and format. (model-linked)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Xml Data Handling SAF-T DK")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
