Make ValidationDefinition use element tree