Here, XML is the key to electronically exchanging business documents, such as purchase orders and invoices, between trading partners.he is not saying XML will replace EDI, but it will make EDI far more available, inexpensive, and easier to implement.