Like tgreer says. You normally write a XSD first, which describes how your XML documents should look (structure, datatypes, etc). Later, when you receive one of these documents (from a business partner, or even at the method level within your code), you would use the XSD to make sure the XML you received is valid.
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first