Refactored: split validation to more reusable operations
XmlSchema: more helper methods