Skip to content

EDIFACT D96A to XML

This task will convert the specified EDIFACT D96A input into XML data and save it to the file specified in the Output File setting.

Settings

Input File

Required
The absolute or relative file path on the local computer or network to the file containing the EDI data you want to convert to XML. 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 XML file to. See the Zynk Objects article if you require more information on how the Zynk Object file value works. Defaulted to edifact_d96a_to_xml.xml in the current working directory.

Zynk Settings

See Common Task Settings

Examples

Sample input file, containing 'ORDERS' data:

UNB+UNOA:2+5450534000000:14+5450534000001:14+140407:0910+5++++1+EANCOM'
UNH+1+ORDERS:D:96A:UN:EAN008'
BGM+220+1AA1TEST+9'
DTM+137:20140407:102'
DTM+63:20140421:102'
DTM+64:20140414:102'
RFF+ADE:1234'
RFF+PD:1704'
NAD+BY+5450534000002::9'
NAD+SU+5450534000003::9'
NAD+DP+5450534000109::9+++++++GB'
NAD+IV+5450534000055::9++AMAZON EU SARL:5 RUE PLAETIS LUXEMBOURG+CO PO BOX 4558+SLOUGH++SL1 0TX+GB'
RFF+VA:GB123456789'
CUX+2:EUR:9'
LIN+1++9783898307529:EN'
QTY+21:5'
PRI+AAA:27.5'
LIN+2++390787706322:UP'
QTY+21:1'
PRI+AAA:10.87'
LIN+3'
PIA+5+3899408268X-39:SA'
QTY+21:3'
PRI+AAA:3.85'
UNS+S'
CNT+2:3'
UNT+26+1'
UNZ+1+5'

Sample output file:

<?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>2</D_0002_2>
    </C_S001>
    <C_S002>
      <D_0004_1>5450534000000</D_0004_1>
      <D_0007_2>14</D_0007_2>
    </C_S002>
    <C_S003>
      <D_0010_1>5450534000001</D_0010_1>
      <D_0007_2>14</D_0007_2>
    </C_S003>
    <C_S004>
      <D_0017_1>140407</D_0017_1>
      <D_0019_2>0910</D_0019_2>
    </C_S004>
    <D_0020_5>5</D_0020_5>
    <C_S005>
      <D_0022_1 />
      <D_0025_2 />
    </C_S005>
    <D_0026_7 />
    <D_0029_8 />
    <D_0031_9>1</D_0031_9>
    <D_0032_10>EANCOM</D_0032_10>
  </S_UNB>
  <GROUPS>
    <GROUP>
      <MESSAGES>
        <MESSAGE>
          <Item>
            <M_ORDERS>
              <S_UNH>
                <D_0062_1>1</D_0062_1>
                <C_S009>
                  <D_0065_1>ORDERS</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>EAN008</D_0057_5>
                </C_S009>
              </S_UNH>
              <S_BGM>
                <C_C002>
                  <D_1001_1>220</D_1001_1>
                </C_C002>
                <D_1004_2>1AA1TEST</D_1004_2>
                <D_1225_3>9</D_1225_3>
              </S_BGM>
              <S_DTM>
                <C_C507>
                  <D_2005_1>137</D_2005_1>
                  <D_2380_2>20140407</D_2380_2>
                  <D_2379_3>102</D_2379_3>
                </C_C507>
              </S_DTM>
              <S_DTM>
                <C_C507>
                  <D_2005_1>63</D_2005_1>
                  <D_2380_2>20140421</D_2380_2>
                  <D_2379_3>102</D_2379_3>
                </C_C507>
              </S_DTM>
              <S_DTM>
                <C_C507>
                  <D_2005_1>64</D_2005_1>
                  <D_2380_2>20140414</D_2380_2>
                  <D_2379_3>102</D_2379_3>
                </C_C507>
              </S_DTM>
              <G_RFF>
                <S_RFF>
                  <C_C506>
                    <D_1153_1>ADE</D_1153_1>
                    <D_1154_2>1234</D_1154_2>
                  </C_C506>
                </S_RFF>
              </G_RFF>
              <G_RFF>
                <S_RFF>
                  <C_C506>
                    <D_1153_1>PD</D_1153_1>
                    <D_1154_2>1704</D_1154_2>
                  </C_C506>
                </S_RFF>
              </G_RFF>
              <G_NAD>
                <S_NAD>
                  <D_3035_1>BY</D_3035_1>
                  <C_C082>
                    <D_3039_1>5450534000002</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>5450534000003</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>5450534000109</D_3039_1>
                    <D_3055_3>9</D_3055_3>
                  </C_C082>
                  <D_3207_9>GB</D_3207_9>
                </S_NAD>
              </G_NAD>
              <G_NAD>
                <S_NAD>
                  <D_3035_1>IV</D_3035_1>
                  <C_C082>
                    <D_3039_1>5450534000055</D_3039_1>
                    <D_3055_3>9</D_3055_3>
                  </C_C082>
                  <C_C080>
                    <D_3036_1>AMAZON EU SARL</D_3036_1>
                    <D_3036_2>5 RUE PLAETIS LUXEMBOURG</D_3036_2>
                  </C_C080>
                  <C_C059>
                    <D_3042_1>CO PO BOX 4558</D_3042_1>
                  </C_C059>
                  <D_3164_6>SLOUGH</D_3164_6>
                  <D_3251_8>SL1 0TX</D_3251_8>
                  <D_3207_9>GB</D_3207_9>
                </S_NAD>
                <G_RFF_2>
                  <S_RFF_2>
                    <C_C506_2>
                      <D_1153_1>VA</D_1153_1>
                      <D_1154_2>GB123456789</D_1154_2>
                    </C_C506_2>
                  </S_RFF_2>
                </G_RFF_2>
              </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>
                </S_CUX>
              </G_CUX>
              <G_LIN>
                <S_LIN>
                  <D_1082_1>1</D_1082_1>
                  <C_C212>
                    <D_7140_1>9783898307529</D_7140_1>
                    <D_7143_2>EN</D_7143_2>
                  </C_C212>
                </S_LIN>
                <S_QTY_3>
                  <C_C186_3>
                    <D_6063_1>21</D_6063_1>
                    <D_6060_2>5</D_6060_2>
                  </C_C186_3>
                </S_QTY_3>
                <G_PRI>
                  <S_PRI>
                    <C_C509>
                      <D_5125_1>AAA</D_5125_1>
                      <D_5118_2>27.5</D_5118_2>
                    </C_C509>
                  </S_PRI>
                </G_PRI>
              </G_LIN>
              <G_LIN>
                <S_LIN>
                  <D_1082_1>2</D_1082_1>
                  <C_C212>
                    <D_7140_1>390787706322</D_7140_1>
                    <D_7143_2>UP</D_7143_2>
                  </C_C212>
                </S_LIN>
                <S_QTY_3>
                  <C_C186_3>
                    <D_6063_1>21</D_6063_1>
                    <D_6060_2>1</D_6060_2>
                  </C_C186_3>
                </S_QTY_3>
                <G_PRI>
                  <S_PRI>
                    <C_C509>
                      <D_5125_1>AAA</D_5125_1>
                      <D_5118_2>10.87</D_5118_2>
                    </C_C509>
                  </S_PRI>
                </G_PRI>
              </G_LIN>
              <G_LIN>
                <S_LIN>
                  <D_1082_1>3</D_1082_1>
                </S_LIN>
                <S_PIA>
                  <D_4347_1>5</D_4347_1>
                  <C_C212_2>
                    <D_7140_1>3899408268X-39</D_7140_1>
                    <D_7143_2>SA</D_7143_2>
                  </C_C212_2>
                </S_PIA>
                <S_QTY_3>
                  <C_C186_3>
                    <D_6063_1>21</D_6063_1>
                    <D_6060_2>3</D_6060_2>
                  </C_C186_3>
                </S_QTY_3>
                <G_PRI>
                  <S_PRI>
                    <C_C509>
                      <D_5125_1>AAA</D_5125_1>
                      <D_5118_2>3.85</D_5118_2>
                    </C_C509>
                  </S_PRI>
                </G_PRI>
              </G_LIN>
              <S_UNS>
                <D_0081_1>S</D_0081_1>
              </S_UNS>
              <S_CNT>
                <C_C270>
                  <D_6069_1>2</D_6069_1>
                  <D_6066_2>3</D_6066_2>
                </C_C270>
              </S_CNT>
              <S_UNT>
                <D_0074_1>26</D_0074_1>
                <D_0062_2>1</D_0062_2>
              </S_UNT>
            </M_ORDERS>
          </Item>
          <Context>
            <Tag>ORDERS</Tag>
            <Version>D96A</Version>
            <Format>Edifact</Format>
          </Context>
        </MESSAGE>
      </MESSAGES>
    </GROUP>
  </GROUPS>
  <S_UNZ>
    <D_0036_1>1</D_0036_1>
    <D_0020_2>5</D_0020_2>
  </S_UNZ>
</INTERCHANGE>