|
Home >Online Product Documentation >Table of Contents >Aggregating Modifiers to Allow Any Order and Any Number in DTDs Aggregating Modifiers to Allow Any Order and Any Number in DTDsThe Choice modifier specifies that only one of the specified elements can appear in an instance document. However, if you specify the Zero or More modifier and then the Choice modifier, the result is that the specified elements can appear in any order and each element can appear any number of times. The text for such an element definition is as follows: The tree representation is as follows: This allows an A element to contain
l Zero, one, or more B elements
l Zero, one, or more C elements
l Zero, one, or more D elements
Furthermore, the contained elements can be in any order. |