---
title: CFXMLParserContext
framework: Core Foundation
role: symbol
role_heading: Structure
path: corefoundation/cfxmlparsercontext
---

# CFXMLParserContext

Contains version information and function pointers to callbacks used when handling a program-defined context.

## Declaration

```swift
struct CFXMLParserContext
```

## Overview

Overview You can associate a context with a parser when the parser is created. The context can be anything you wish and will be passed as a parameter to all of the XML parser callbacks.

## Topics

### Initializers

- [init()](corefoundation/cfxmlparsercontext/init().md)
- [init(version:info:retain:release:copyDescription:)](corefoundation/cfxmlparsercontext/init(version:info:retain:release:copydescription:).md)

### Instance Properties

- [copyDescription](corefoundation/cfxmlparsercontext/copydescription.md)
- [info](corefoundation/cfxmlparsercontext/info.md)
- [release](corefoundation/cfxmlparsercontext/release.md)
- [retain](corefoundation/cfxmlparsercontext/retain.md)
- [version](corefoundation/cfxmlparsercontext/version.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)

## See Also

### Data Types

- [CFXMLParserCallBacks](corefoundation/cfxmlparsercallbacks.md)
