---
title: encoding
framework: Core Foundation
role: symbol
role_heading: Instance Property
path: corefoundation/cfxmldocumentinfo/encoding
---

# encoding

The text encoding of the XML document.

## Declaration

```swift
var encoding: CFStringEncoding
```
