Add RelaxNG and XMLSchema validation, with tests and doc.