In my limited EDI experience, much like with an XML schema -- I wouldn't trust anything you get to perfectly/fully comply. I like the approach of treating it like an unrestricted DOM and dealing with whatever comes down. People end up sticking weird things into the wrong fields anyway, and business rules will often further restrict things.
What's your use case?