---
title: XMLDocument.ContentKind
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/xmldocument/contentkind
---

# XMLDocument.ContentKind

Type used to define the kind of document content.

## Declaration

```swift
enum ContentKind
```

## Overview

Overview For possible values, see doc:xmldocument/document_content_types.

## Topics

### Enumeration Cases

- [XMLDocument.ContentKind.html](foundation/xmldocument/contentkind/html.md)
- [XMLDocument.ContentKind.text](foundation/xmldocument/contentkind/text.md)
- [XMLDocument.ContentKind.xhtml](foundation/xmldocument/contentkind/xhtml.md)
- [XMLDocument.ContentKind.xml](foundation/xmldocument/contentkind/xml.md)

### Initializers

- [init(rawValue:)](foundation/xmldocument/contentkind/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [Input and Output Options](foundation/input_and_output_options.md)
- [Document Content Types](foundation/document-content-types.md)
