Table of Contents

ProcessingInstructionToList Procedure

Codeunit XML Writer

Adds the processing instruction code and value to the corresponding lists, that then can be used as parameters to the CreateDom functions.

Signature

ProcessingInstructionToList(var ProcessingInstructionCodes: List of [Text]; var ProcessingInstructionValues: List of [Text]; ProcessingInstructionCode: Text; ProcessingInstructionValue: Text)

Parameters

var ProcessingInstructionCodes List of [Text]

The list that will contains all processing instruction codes.

var ProcessingInstructionValues List of [Text]

The list that will contains all processing instruction values.

ProcessingInstructionCode Text

The code of the processing instruction to add.

ProcessingInstructionValue Text

The value of the processing instruction to add.

Example

This sample code will create an Xml Document with two processing instructions:

 XMLWriter.ProcessingInstructionToList(ProcInstrCodes, ProcInstrValues, 'POSTEN', 'SND="XX" SNDKVAL="ZZ" REC="YY" RECKVAL="14" MSGTYPE="GANORDRSP"');
 XMLWriter.ProcessingInstructionToList(ProcInstrCodes, ProcInstrValues, 'A', 'A="XX"');
 XMLWriter.CreateDom('', '', 'r', ProcInstrCodes, ProcInstrValues);

The resulting Xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?POSTEN SND="XX" SNDKVAL="ZZ" REC="YY" RECKVAL="14" MSGTYPE="GANORDRSP"?>
<?A A="XX"?>
<r/>

This documentation is generated from Smart Toolbox v27.1