Check well formed

DTBook and NIMAS validators check document well-formedness as part of the validation process.