The following example shows you how to check a document for the problems that make it unusable or non-conforming before you save it. The Validate method returns a list of ValidationError objects, each with the message and the location of the problem in the object model. An empty list means nothing known is wrong.