1. A method for modeling an electronic data interchange (EDI) document using extensible Markup Language (XML) at runtime, said method comprising: identifying a plurality of structural elements in the EDI document; determining a plurality of corresponding data values from the identified plurality of structural elements in the EDI document; generating annotations for a plurality of rules included in the EDI document, said plurality of rules defining operations associated with the plurality of corresponding data values; transforming the determined data values and the generated annotated into an XML schema corresponding to the EDI document; and processing the XML schema at runtime.