This document proposes an enhanced method of XML validation using the SRML metalanguage. It extends SRML to allow for more complex validation rules and the ability to correct invalid data. The validation is done in two steps, first using XSD for structure and then SRML rules for content. It also explores applying the SRML validator to databases for record validation on database operations. This provides more granular validation of dataset records compared to validating the entire XML file.