Added XML schema validation and metadata type inference from XSD