schema validation framework inspired by W3C XMLSchema