However, none of the above tests guarantee that your XML data is alid according to the rules specified in the schema. To accomplish this task, you will need to link your XML document to a particular schema frst. Then you can test the validity of the XML document. To assign a chema to an XML document, perform the following steps:
1. Display the XML document in XML view (in the XML Designer).
2. Display its Property sheet. (It will be captioned DOCUMENT.)
3. Open the drop-down list box at the right-hand side of the targetSchema, and select the appropriate schema.
4. Now, go ahead and validate the document using the XML>>Validate XML Data of the main menu.
By the way, there are many other third-party software packages that can also test if an XML document is well formed, and if it is valid (against a given schema). In this context, we have found the XML Authority (by TIBCO) and XML Writer (by Wattle Software) to be very good.

