XML to EDIFACT D96A
This task will convert the specified XML input into EDIFACT D96A data and save it to the file specified in the Output File setting.
Settings
Validate Input
Required
Set to true to perform validation of the data provided as the input. If the data does not pass the validation, the task will report an error and won't produce an output.
Input File
Required
The absolute or relative file path on the local computer or network to the file containing the XML you want to convert to EDIFACT D96A. See the Zynk Objects article if you require more information on how the Zynk Object file value works. Defaults to Output from previous task.
Output
Required
The absolute or relative file path on the local computer or network to save the converted EDIFACT D96A data to. See the Zynk Objects article if you require more information on how the Zynk Object file value works. Defaulted to xml_to_edifact_d96a.xml
in the current working directory.
Zynk Settings
Examples
Sample input file, containing 'ORDRSP' data:
<?xml version="1.0" encoding="utf-8"?>
<INTERCHANGE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="www.edifabric.com/edifact">
<S_UNB>
<C_S001>
<D_0001_1>UNOA</D_0001_1>
<D_0002_2>3</D_0002_2>
</C_S001>
<C_S002>
<D_0004_1>3017002657108</D_0004_1>
<D_0007_2>14</D_0007_2>
</C_S002>
<C_S003>
<D_0010_1>3020400000100</D_0010_1>
<D_0007_2>14</D_0007_2>
</C_S003>
<C_S004>
<D_0017_1>180517</D_0017_1>
<D_0019_2>1053</D_0019_2>
</C_S004>
<D_0020_5>014097</D_0020_5>
</S_UNB>
<GROUPS>
<GROUP>
<MESSAGES>
<MESSAGE>
<Item>
<M_ORDRSP>
<S_UNH>
<D_0062_1>1</D_0062_1>
<C_S009>
<D_0065_1>ORDRSP</D_0065_1>
<D_0052_2>D</D_0052_2>
<D_0054_3>96A</D_0054_3>
<D_0051_4>UN</D_0051_4>
<D_0057_5>EAN005</D_0057_5>
</C_S009>
</S_UNH>
<S_BGM>
<C_C002>
<D_1001_1>231</D_1001_1>
</C_C002>
<D_1004_2>91237611</D_1004_2>
<D_1225_3>29</D_1225_3>
</S_BGM>
<S_DTM>
<C_C507>
<D_2005_1>137</D_2005_1>
<D_2380_2>20180517</D_2380_2>
<D_2379_3>102</D_2379_3>
</C_C507>
</S_DTM>
<G_RFF>
<S_RFF>
<C_C506>
<D_1153_1>ON</D_1153_1>
<D_1154_2>0100376110</D_1154_2>
</C_C506>
</S_RFF>
<S_DTM_2>
<C_C507_2>
<D_2005_1>171</D_2005_1>
<D_2380_2>20180506</D_2380_2>
<D_2379_3>102</D_2379_3>
</C_C507_2>
</S_DTM_2>
</G_RFF>
<G_RFF>
<S_RFF>
<C_C506>
<D_1153_1>UC</D_1153_1>
<D_1154_2>0000657611</D_1154_2>
</C_C506>
</S_RFF>
<S_DTM_2>
<C_C507_2>
<D_2005_1>171</D_2005_1>
<D_2380_2>20160426</D_2380_2>
<D_2379_3>102</D_2379_3>
</C_C507_2>
</S_DTM_2>
</G_RFF>
<G_NAD>
<S_NAD>
<D_3035_1>BY</D_3035_1>
<C_C082>
<D_3039_1>3020400000100</D_3039_1>
<D_3055_3>9</D_3055_3>
</C_C082>
</S_NAD>
</G_NAD>
<G_NAD>
<S_NAD>
<D_3035_1>SU</D_3035_1>
<C_C082>
<D_3039_1>3017002657108</D_3039_1>
<D_3055_3>9</D_3055_3>
</C_C082>
</S_NAD>
</G_NAD>
<G_NAD>
<S_NAD>
<D_3035_1>DP</D_3035_1>
<C_C082>
<D_3039_1>3020400000001</D_3039_1>
<D_3055_3>9</D_3055_3>
</C_C082>
</S_NAD>
</G_NAD>
<G_CUX>
<S_CUX>
<C_C504>
<D_6347_1>2</D_6347_1>
<D_6345_2>EUR</D_6345_2>
<D_6343_3>9</D_6343_3>
</C_C504>
<C_C504_2>
<D_6347_1>3</D_6347_1>
<D_6345_2>EUR</D_6345_2>
<D_6343_3>4</D_6343_3>
</C_C504_2>
</S_CUX>
</G_CUX>
<G_LIN>
<S_LIN>
<D_1082_1>1</D_1082_1>
<D_1229_2>5</D_1229_2>
<C_C212>
<D_7140_1>3454971328064</D_7140_1>
<D_7143_2>EN</D_7143_2>
</C_C212>
</S_LIN>
<S_PIA>
<D_4347_1>5</D_4347_1>
<C_C212_2>
<D_7140_1>IH4731234</D_7140_1>
<D_7143_2>SA</D_7143_2>
</C_C212_2>
</S_PIA>
<S_IMD_2>
<D_7077_1>E</D_7077_1>
<D_7081_2>ANM</D_7081_2>
<C_C273_2>
<D_7008_4>CORN CRISPIESCASE</D_7008_4>
</C_C273_2>
</S_IMD_2>
<S_QTY_3>
<C_C186_3>
<D_6063_1>113</D_6063_1>
<D_6060_2>10</D_6060_2>
<D_6411_3>EA</D_6411_3>
</C_C186_3>
</S_QTY_3>
<S_DTM_13>
<C_C507_13>
<D_2005_1>2</D_2005_1>
<D_2380_2>20180520</D_2380_2>
<D_2379_3>102</D_2379_3>
</C_C507_13>
</S_DTM_13>
<G_PRI>
<S_PRI>
<C_C509>
<D_5125_1>AAA</D_5125_1>
<D_5118_2>14.30</D_5118_2>
<D_5387_4>NTP</D_5387_4>
<D_5284_5>1</D_5284_5>
<D_6411_6>EA</D_6411_6>
</C_C509>
</S_PRI>
</G_PRI>
</G_LIN>
<S_CNT>
<C_C270>
<D_6069_1>2</D_6069_1>
<D_6066_2>1</D_6066_2>
</C_C270>
</S_CNT>
<S_UNT>
<D_0074_1>39</D_0074_1>
<D_0062_2>1</D_0062_2>
</S_UNT>
</M_ORDRSP>
</Item>
<Context>
<Tag>ORDRSP</Tag>
<Version>D96A</Version>
<Format>Edifact</Format>
</Context>
</MESSAGE>
</MESSAGES>
</GROUP>
</GROUPS>
<S_UNZ>
<D_0036_1>1</D_0036_1>
<D_0020_2>014097</D_0020_2>
</S_UNZ>
</INTERCHANGE>
Sample output file:
UNB+UNOA:3+3017002657108:14+3020400000100:14+180517:1053+014097'
UNH+1+ORDRSP:D:96A:UN:EAN005'
BGM+231+91237611+29'
DTM+137:20180517:102'
RFF+ON:0100376110'
DTM+171:20180506:102'
RFF+UC:0000657611'
DTM+171:20160426:102'
NAD+BY+3020400000100::9'
NAD+SU+3017002657108::9'
NAD+DP+3020400000001::9'
CUX+2:EUR:9+3:EUR:4'
LIN+1+5+3454971328064:EN'
PIA+5+IH4731234:SA'
IMD+E+ANM+:::CORN CRISPIESCASE'
QTY+113:10:EA'
DTM+2:20180520:102'
PRI+AAA:14.30::NTP:1:EA'
CNT+2:1'
UNT+39+1'
UNZ+1+014097'