Enslib.EDI.XML.Document from DTL
I'm generating a XML (Enlib.EDI.XML.Document) using a Subtransformation within a DTL. Writing this XML-Document to the filesystem works good, but in the XML-File is missing the header line (<?xml version=1.0 encoding=UTF-8?>):
.png)
What do I have to do to get the header in my XML-File?
Any help is appreciated.
Product version: IRIS 2024.1
$ZV: IRIS for UNIX (SUSE Linux Enterprise Server 15 for x86-64) 2024.1.4 (Build 516_1_24356U) Mon Jun 23 2025 14:51:46 EDT [HealthConnect:7.2.0-3.m2024.1.2]
Discussion (2)2
Comments
Use:
tXml.OutputToFile(tXmlFilename,,"C(UTF8)")
To overwrite if file exists:
tXml.OutputToFile(tXmlFilename,1,"C(UTF8)")
Thank you very much! This works fine!