It depends.
EDI has many flavours, therefore, generally speaking, the developer needs to author or generate the DFDL schemas for reading and writing EDI. However, for
EDIFACT, DFDL schemas were generated from the EDIFACT directories ahead of time so you can leverage these schemas to read and write EDIFACT. However, I suspect you're on EDI X12. If that's the case, depending on the number of message types and versions that need to be supported, it might be worth to consider generating the DFDL schemas from the X12 implementation guidelines.