> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.nimbleapps.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# XmlCollectionMapping

> Specifies how a collection member without a mapping attribute is mapped: as repeated elements, or as one element that wraps an element for each item.

## Definition

**Assembly:** CloudNimble.XmlEssentials.dll

**Namespace:** CloudNimble.Text.Xml

**Inheritance:** System.Enum

## Syntax

```csharp theme={"dark"}
CloudNimble.Text.Xml.XmlCollectionMapping
```

## Summary

Specifies how a collection member without a mapping attribute is mapped: as repeated elements, or as one
element that wraps an element for each item.

## Values

| Name | Value | Description |
| - | - | - |
| `Unwrapped` | 0 | One element for each item, named for the member, with no element around them. This is the default. |
| `Wrapped` | 1 | One element named for the member, which holds an element for each item, named for the item's type. |
| This is the shape `System.Xml.Serialization.XmlSerializer` writes, and the one `[XmlArray]` | | |
| gives a single member. A per-member `[XmlElement]` takes precedence and writes the items with | | |
| no wrapper. | | |

## Related APIs

* System.IComparable
* System.ISpanFormattable
* System.IFormattable
* System.IConvertible


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.