---
title: CFXMLNodeTypeCode
framework: Core Foundation
role: symbol
role_heading: Enumeration
path: corefoundation/cfxmlnodetypecode
---

# CFXMLNodeTypeCode

The various XML data type identification codes that the parser uses to describe XML structures.

## Declaration

```swift
enum CFXMLNodeTypeCode
```

## Overview

Overview When the parser encounters a new XML structure, its data type and contents are placed in a CFXMLNode object.

## Topics

### Constants

- [CFXMLNodeTypeCode.document](corefoundation/cfxmlnodetypecode/document.md)
- [CFXMLNodeTypeCode.element](corefoundation/cfxmlnodetypecode/element.md)
- [CFXMLNodeTypeCode.attribute](corefoundation/cfxmlnodetypecode/attribute.md)
- [CFXMLNodeTypeCode.processingInstruction](corefoundation/cfxmlnodetypecode/processinginstruction.md)
- [CFXMLNodeTypeCode.comment](corefoundation/cfxmlnodetypecode/comment.md)
- [CFXMLNodeTypeCode.text](corefoundation/cfxmlnodetypecode/text.md)
- [CFXMLNodeTypeCode.cdataSection](corefoundation/cfxmlnodetypecode/cdatasection.md)
- [CFXMLNodeTypeCode.documentFragment](corefoundation/cfxmlnodetypecode/documentfragment.md)
- [CFXMLNodeTypeCode.entity](corefoundation/cfxmlnodetypecode/entity.md)
- [CFXMLNodeTypeCode.entityReference](corefoundation/cfxmlnodetypecode/entityreference.md)
- [CFXMLNodeTypeCode.documentType](corefoundation/cfxmlnodetypecode/documenttype.md)
- [CFXMLNodeTypeCode.whitespace](corefoundation/cfxmlnodetypecode/whitespace.md)
- [CFXMLNodeTypeCode.notation](corefoundation/cfxmlnodetypecode/notation.md)
- [CFXMLNodeTypeCode.elementTypeDeclaration](corefoundation/cfxmlnodetypecode/elementtypedeclaration.md)
- [CFXMLNodeTypeCode.attributeListDeclaration](corefoundation/cfxmlnodetypecode/attributelistdeclaration.md)

### Initializers

- [init(rawValue:)](corefoundation/cfxmlnodetypecode/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

- [CFXMLEntityTypeCode](corefoundation/cfxmlentitytypecode.md)
- [Node Current Version](corefoundation/1443311-node-current-version.md)
