Sebastian Thiele · Jul 17, 2019

Omit xml header line when writing xml files using EnsLib.EDI.XML.Operation.FileOperation

Hi all,

is it possible to omit the typical XML header line

<?xml version="1.0" encoding="ISO-8859-1" ?>

when writing an the contents of a EnsLib.EDI.XML.Document  using the above mentioned operation. I´ve already digged into the config value Format. It only states that:

C(e) : output an XML header line declaring character encoding e. If e is empty use the encoding defined by the Adapter. If e begins with ! force the output stream's encoding. Note that this will be applied automatically for File Operations configured with a non-UTF-8 Charset

The target system requires to receive the file contents without that specific header line. It would come in pretty handy if this could be configured at the operation itself.

Maybe I miss something in the documentation here and someone knows the trick to do that

Kind regards,


0 299
Discussion (2)3
Log in or sign up to continue

I have the same issue and wish someone had a good answer.

What I did to get around it was to use a DTL to take the XML and put into a stream container then route to a Business Operation with a class name of EnsLib.File.PassthroughOperation.