This project has moved and is read-only. For the latest updates, please go here.

X12 Specification Compliance Validation

Aug 27, 2015 at 1:45 PM
Can X12Parser perform compliance validation against a target specification when parsing a document? The only solution I can think of is the following:
SpecificationFinder finder = new SpecificationFinder();
var transSpec = finder.FindTransactionSpec("BE", "005010X220 ", "834");

X12Parser parser = new X12Parser();
var interchanges = parser.ParseMultiple(File.ReadAllText(@"834.edi"));
var interchange = interchanges.FirstOrDefault();
//now recurse over the interchange comparing it against the transaction spec.