Monday, June 15, 2009

Testing your DTD XML Schema Validation

Testing your DTD XML Schema Validation: "A Document Type Definition (DTD) document is used to define the legal building blocks of an XML document. It denotes the document structure with a list of legal elements and attributes. DTDs are often used to facilitate agreement on formats for data interchange between independent organizations or people. Thus, your applications can use a standard DTD to verify that the data you receive from the outside world is valid or to verify your own data, before sending it out to partners. Whatever your reason for using a DTD, it's important to thoroughly test it, like any part of a business process, whether automated or not. A key ingredient of successful testing is the separation of the component that you are testing from the rest of the process or application. With that in mind, this article explains how to perform your DTD testing outside of the application that runs it."