On 13-05-14 07:22, Ing. Pablo Pazos wrote: > If the value is not constrained, the validator should return true without > continuing checking in cascade-recursive mode. For this to work as expected, > the data structure should be validated before than the data validation. The > easiest way of validating the structure is serializing the instance to XML > and using XSD.
That is the problem, I do not agree, it has to check in cascade because there can be required properties left out, or fantasized properties which make no sense put in. Every occurring class in a dataset needs, in my opinion, to be validated, if there are no constraints, against the Reference Model-rules. By the way, you cannot validate OpenEHR datasets against an archetype by using XSD. You cannot create XSD's according archetype-constraints, not even by hand. I have been there, a few years ago. Best regards Bert

