XML Reference: Siebel eBusiness Application Integration Volume V > XML Integration Objects and the DTD Wizard > How the DTD Wizard Creates XML Integration Objects >

Cardinality


As shown in Table 15, the DTD syntax allows you to specify a cardinality—that is, the number of times an element can appear within an XML document—for elements using the modifiers question mark (?), plus sign (+), and asterisk (*), or none. Elements with a cardinality, or occurrence, specified in a DTD map only to Integration Components. The Cardinality property in the Integration Component within Siebel maps to the specified cardinality information in the DTD.

Table 15.  Rules for Mapping for Cardinality Within a DTD
DTD Element Occurrence Operator
Description
Integration Component Cardinality Property

 

 

Description

 

Appears one time

-

-

 ?

Appears 0 or 1 time

Zero or One

Appears 0 or 1 time

+

Appears 1 or more times

One or More

Appears 1 or more times

 *

May appear 0 or more times

Zero or More

May appear 0 or more times

No modifier

Appears one time

One

Appears one time

The specification for DTDs supports using parentheses to express complex hierarchical structures. For example:

<!ELEMENT rating ((tutorial | reference)*, overall)+ >

The DTD Wizard uses the operator (?, *, +, or "none") closest to the child element as that child element's cardinality. In addition, the DTD Wizard will ignore such grouping by parentheses as illustrated above.

XML Reference: Siebel eBusiness Application Integration Volume V