XML schema validation using Russian Doll design pattern