Modeling EDIFACT data by using DFDL

Learn how to model EDIFACT data by using Data Format Description Language (DFDL).

This tutorial demonstrates how to model UN/EDIFACT data by using DFDL schema.

UN/EDIFACT is an international standard for EDI trading in commercial and non-commercial sectors. UN/EDIFACT data streams have a hierarchical structure where the top level is referred to as an interchange, and lower levels contain multiple messages, which consist of segments, which in turn consist of composites. Composites in turn consist of elements. Segments, composites, and elements are delimited by separators. Only segments have initiators.

An interchange starts with a UNB segment and ends with a UNZ segment. A message starts with a UNH segment and ends with a UNT segment. An element in the UNH segment identifies the message type. Messages may be grouped into functional groups, which start with a UNG segment and end with a UNE segment. Optionally, the interchange can start with a UNA segment that defines the delimiters used by the interchange; defaults are used if there is no UNA.

UN/EDIFACT data streams adopt one of several syntax levels, the most common versions being version 3 or version 4.

The DFDL schema editor is used to view the model and parse example EDIFACT data files.

This tutorial takes approximately 5 minutes.
Start Tutorial
Back To Gallery
Tutorial Topics
  • Modeling EDIFACT messages
  • Editing DFDL schema
  • Testing DFDL schema
Learning outcomes
  • An understanding of how the DFDL editor can be used to model and parse EDIFACT data.