EDI Rules Reader

Component Summary

View EDI validation rules.

  • EDI Rules Reader reads and displays EDI rules
  • Create custom applications in no time at all to display EDI rules.  See exactly what loops/segments/elements are required in an EDI file.  Know exactly what data to enter in a data element. Make less errors.
  • Fast and dependable

Related Tutorials


Main Features

  • Reads any EDI rules file
  • Allow you to dynamically change EDI rules before validation
  • Automatically loads all loops, segments, elements, composite elements, accepted values, etc. into one data structure
  • Contains all validation rules and constraints
  • Creates a tree node object with EDI file structure for graphical view of EDI rules
  • Track loading progress with its progress event
  • Easy to use API


Arguably one of the most important components in RDPCrystal EDI Library, the EDIRulesReader component creates a validation structure that is used to validate and load EDI data.  It is used by the EDIValidator component to both validate and load EDI data

It contains the following meta data for each standard

  1. Element Definitions – ID, Type, Minimum, Maximum, Description
  2. Segment Definitions – Names, Usage
  3. Composite Elements Definitions– Names, Usage
  4. EDI File Structure – Loop Hierarchy
  5. Elements Formats -Regular Expressions used to validate data like dates, times, ids etc.
  6. Validation Rules – Required, Optional, Not Used loops, segments and elements
  7. Summary Rules
  8. Segment Constraints
  9. Element Constraints
  10. Code List and Accepted Values
  11. Plus much more

Customized views of the EDI rules can be created depending on usage



// Create an instance of the EDI Rules Reader
EDIRulesReader reader = new EDIRulesReader("C:\\EDIRules.Rules");

// Load EDI Rules

// After parsing the following dictionary lists are available for custom programming and application development
// All the elements in the rules file
this.elements = reader.Elements;

// All the segments in the rules file
this.segments = reader.Segments;

// All the composite segments in the rules file
this.compositeSegments = reader.CompositesSegments;

// All the segment schemas in the rules file
this.segmentSchemas = reader.SegmentSchemas;

// All code list in the rules files (internal and external)
this.codeLists = reader.CodeLists;

// All element formats
this.elementFormats = reader.ElementFormats;

// The complete rules of the .Rules format included loops, usages, segments, elements, element values
this.loopSchema = reader.Schema;

EDIRulesReader is included in RDPCrystal EDI Library