<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFXMLEntityTypeCode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@E@CFXMLEntityTypeCode"
  },
  "title" : "CFXMLEntityTypeCode"
}
-->

# CFXMLEntityTypeCode

The entity type identification codes that the parser uses to describe XML entities.

```
enum CFXMLEntityTypeCode
```

## Overview

These codes are used with the [`CFXMLEntityInfo`](/documentation/CoreFoundation/CFXMLEntityInfo) and [`CFXMLEntityReferenceInfo`](/documentation/CoreFoundation/CFXMLEntityReferenceInfo) structures.

## Topics

### Constants

[`kCFXMLEntityTypeParameter`](/documentation/CoreFoundation/CFXMLEntityTypeCode/parameter)

Implies a parsed, internal entity.

[`kCFXMLEntityTypeParsedInternal`](/documentation/CoreFoundation/CFXMLEntityTypeCode/parsedInternal)

Indicates a parsed, internal entity.

[`kCFXMLEntityTypeParsedExternal`](/documentation/CoreFoundation/CFXMLEntityTypeCode/parsedExternal)

Indicates a parsed, external entity.

[`kCFXMLEntityTypeUnparsed`](/documentation/CoreFoundation/CFXMLEntityTypeCode/unparsed)

Indicates an unparsed entity.

[`kCFXMLEntityTypeCharacter`](/documentation/CoreFoundation/CFXMLEntityTypeCode/character)

Indicates a character entity type.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)