JWord > Tutorial > Validate document

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.

Need help? Ask our developers: