Although the foregoing example of XML code is illustrative for generating invoices and medical claim forms, it will be appreciated that the code may be readily changed as desired and other XML code may be employed for generating data for other types of forms using a similar approach as that described above.