1. A method implemented at least in part by a computing device for transforming electronic data interchange (EDI) transactions, said method comprising: receiving EDI data in a batch, said batch of EDI data including a plurality of EDI documents, each having at least one EDI transaction corresponding to a transaction type; identifying the EDI transactions included in the EDI documents by decoding the received EDI data according to EDI standards, each of the identified EDI transactions having transaction values associated therewith; identifying multiple instances of the identified EDI transactions belonging to the same transaction type; identifying repeated EDI transaction structural elements in the identified multiple instances of the EDI transactions in the EDI documents belonging to the same transaction type; reducing a number of lines of the multiple instances of the identified EDI transactions belonging to the same transaction type so that only one instance of the identified repeated EDI transaction structural elements remains, and the transaction values associated with the multiple instances of the identified EDI transactions are enclosed in a nested structure of the one instance of the repeated EDI transaction structural elements, said nested structure of the transaction values in the one instance of the repeated EDI transaction structural elements representing the same information as the repeated EDI transactions of the multiple instances of the identified EDI transactions; and generating a consolidated EDI document from the plurality of EDI documents in the batch, said consolidated EDI document including EDI data of the identified EDI transactions organized according to the transaction type and including the nested structure with the one instance of the identified repeated EDI transaction structural elements such that a loop-like logic can be used to create copies thereof during processing.