CIB merge technical documentation (EN)

6. Call parameters in detail

6.32. Parameter --headerfile

[--header/-h]

The --headerfile parameter can be used for data supply with XML. It points to the set data file.


Syntax
--headerfile=<Kopfsatzdatenquelle>


Description

If --headerfile is used in combination with the --multidatafile parameter, --datafile specifies the XPath to the multi-node. Usage of this parameter with a CSV data supply is not recommended.


Example Multi control file from XML

--headerfile=XML:Daten_mitAlias.xml
--datafile=/root/multi
--multidatafile
XML-Datei:
<root>
      <multi>
      <Kunden>XML:$(this);/root/data/Kunden/Kunde</Kunden>
      <Einzelposten>XML:$(this);/root/data/Posten/Einzelposten</Einzelposten>
      </multi>
      <data>
            <Kunden>                   <Kunde>
                        <Vorname>Franz</Vorname>                          <Name>Meier</Name>
                        <Strasse>Teststr. 4</Strasse>
                 <PLZ>12345</PLZ>                         <Ort>Musterdorf</Ort>
                        <Geschlecht>M</Geschlecht>
                 <KundenNr>9898989</KundenNr>                         <AuftragsNr>111111-2</AuftragsNr>
                        <Betrag>999</Betrag>
               </Kunde>
                  weitere Kunden ......
            </Kunden>
            <Posten>
                 <Einzelposten>
                 <KundeAuftragsNr>111111-2</KundeAuftragsNr>                   <Bezeichnung>Artikel1</Bezeichnung>
                 <Betrag>999</Betrag>                   </Einzelposten>
                  weitere Einzelposten....
            </Posten>
      </data>
</root>

The multi-nodes are located in the file Data_withAlias.xml. The alias names result from the node name (customers, line items), which are defined with the specified XPath. The alias definitions are the node contents (XML:$(this);/root/data/customers/customer, XML:$(this);/root/data/items/single item). The special file name XML:$(this) points to the current file.

The use of this parameter will be described in detail in the usage example Serial Letter.