---
title: CFXMLParserCallBacks
framework: Core Foundation
role: symbol
role_heading: Structure
path: corefoundation/cfxmlparsercallbacks
---

# CFXMLParserCallBacks

Contains version information and function pointers to callbacks needed when parsing XML.

## Declaration

```swift
struct CFXMLParserCallBacks
```

## Overview

Overview This structure is passed to one of the CFXMLParserCreate... functions. Only the createXMLStructure, addChild, and endXMLStructure fields are required. Set the others to NULL if you don’t wish to implement them.

## Topics

### Initializers

- [init()](corefoundation/cfxmlparsercallbacks/init().md)
- [init(version:createXMLStructure:addChild:endXMLStructure:resolveExternalEntity:handleError:)](corefoundation/cfxmlparsercallbacks/init(version:createxmlstructure:addchild:endxmlstructure:resolveexternalentity:handleerror:).md)

### Instance Properties

- [addChild](corefoundation/cfxmlparsercallbacks/addchild.md)
- [createXMLStructure](corefoundation/cfxmlparsercallbacks/createxmlstructure.md)
- [endXMLStructure](corefoundation/cfxmlparsercallbacks/endxmlstructure.md)
- [handleError](corefoundation/cfxmlparsercallbacks/handleerror.md)
- [resolveExternalEntity](corefoundation/cfxmlparsercallbacks/resolveexternalentity.md)
- [version](corefoundation/cfxmlparsercallbacks/version.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)

## See Also

### Data Types

- [CFXMLParserContext](corefoundation/cfxmlparsercontext.md)
