The Code
// Create an instance of the EDI Rules Reader
EDIRulesReader reader = new EDIRulesReader("C:\\EDIRules.Rules");
// Load EDI Rules
reader.Parse();
// 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;