The example of X-definition 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).

X-definition
Input data
 You can edit both X-definition and/or Input data