Business Document cardinality

Cardinality is an attribute of a Business Document node in DML. The cardinality attribute indicates the number of times the node can or must occur when Mapping Services processes the Business Document. For most nodes, you set the cardinality in the Attributes section or directly in the tree structure of the Business Document.

For more information, see Business Document structure and Define Business Document node cardinality.

Apply cardinality to nodes

When a node... Use cardinality... Where...

Can occur once or not at all

0 - 1

  • 0 indicates that the specified node does not necessarily occur
  • 1 indicates that if the specified node does occur, it can occur only once

Can occur many times or not at all

0 - n

  • 0 indicates that the specified node does not necessarily occur
  • n indicates that if the specified node does occur, it can occur up to n times, where n is a positive integer that is defined via a Map

Must occur once and only once

1 - 1

  • The first 1 indicates that the specified node must occur
  • The second 1 indicates that the specified node can occur only once

Must occur at least once but can occur many times

1 - n

  • 1 indicates that the specified node must occur at least once
  • n indicates that the specified node can occur up to n times, where n is a positive integer that is defined using a Map

For convenience, the set of possible cardinalities is grouped into two categories throughout this documentation:

  • single: 0-1 and 1-1
  • multiple: 0-n and 1-n

Related topics

Business Documents

Business Document structure

Define Business Document node cardinality

Related Links