MRM content validation
Content Validation is applied when the domain is MRM and validation is enabled. The Content Validation property specifies how strictly the MRM parser validates the members of a complex type or group.
The first of the following two tables shows the valid settings for Content Validation if Composition is set to Message. The second table shows the valid settings for Content Validation if Composition is not set to Message.
Content Validation options if Composition is set to Message
Option | Meaning |
---|---|
Open | When a message is parsed, this complex type or group can contain any message, not just those that you have defined in this message set. You can use this option for sparse messages (see Self-defining elements and messages for a definition of sparse messages). |
Closed | When a message is parsed, this complex type or group can only contain the messages that are members of this complex type or group. This is always the case for messages represented in CWF format. |
Open Defined | When a message is parsed, this complex type or group can contain any message defined within the message set. |
Content Validation options if Composition is not set to Message
Option | Meaning |
---|---|
Open | When a message is parsed, this complex type or group can contain any elements and not just those that you have defined in this message set (see Self-defining elements and messages for a definition of sparse messages). |
Closed | When a message is parsed, this complex type or group can only contain the elements that are members of this complex type or group. |
Open Defined | When a message is parsed, this complex type or group can contain any element that you have defined within the message set. |
When you are using Content Validation set to open or open defined, you cannot specify the precise position where the content that is not modeled is permitted to occur. If you want to do this, you should consider using a wildcard element as an alternative. Wildcard elements can appear only within a complex type or group with Composition of sequence and Content Validation of closed.