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

# XMLDocument.ContentKind.xhtml

The document output is XHTML.

## Declaration

```swift
case xhtml
```

## Discussion

Discussion This is set automatically if the NSXMLDocumentTidyHTML option is set and NSXML detects HTML.

## See Also

### Enumeration Cases

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