XMLValidator defines the interface that XMLDocumentScanner and XML xmlDecl