The example of Xdefinition with groups (see "xd:mixed" and "xd:choice"). This example validates the data version "Owner" with "Company" model. (You can also try execute the versiom of data with "Family" HERE).

Xdefinition
Input data
 You can edit both Xdefinition and/or Input data