Skip Headers

# XML Composite Direct Collection Mapping

Previous

Next

XML composite direct collection mappings map a Java collection of simple object attributes to XML attributes and text nodes. Use multiplicity settings to specify an element as a collection. The XML schema allows you to define minimum and maximum occurrences. You can use a composite direct collection XML mapping in the following scenarios:

- Mapping to Multiple Text Nodes

- Mapping to Multiple Attributes

- Mapping to a Single Text Node With an XML Composite Direct Collection Mapping

- Mapping to a Single Attribute With an XML Composite Direct Collection Mapping

- Mapping to a List of Unions With an XML Composite Direct Collection Mapping

- Mapping to a Union of Lists With an XML Composite Direct Collection Mapping

- Specifying the Content Type of a Collection With an XML Composite Direct Collection Mapping

See Configuring an XML Composite Direct Collection Mapping for more information.