added validation with schema using location from the document to be
validated.