Fixed schema validation when parsing XML