---
title: CFXMLParser
framework: Core Foundation
role: symbol
role_heading: Class
path: corefoundation/cfxmlparser
---

# CFXMLParser

## Declaration

```swift
class CFXMLParser
```

## Overview

Overview CFXMLParser provides an XML parser you can use to find and extract data in XML documents. You can use a high-level interface to load an XML document into a Core Foundation collection object. A low-level callback-based interface allows you to perform any action you wish on an XML structured type when it is detected by the parser. This opaque type is relevant for applications that need information about an XML document’s structure or content.

## Topics

### Callbacks

- [CFXMLParserAddChildCallBack](corefoundation/cfxmlparseraddchildcallback.md)
- [CFXMLParserCopyDescriptionCallBack](corefoundation/cfxmlparsercopydescriptioncallback.md)
- [CFXMLParserCreateXMLStructureCallBack](corefoundation/cfxmlparsercreatexmlstructurecallback.md)
- [CFXMLParserEndXMLStructureCallBack](corefoundation/cfxmlparserendxmlstructurecallback.md)
- [CFXMLParserHandleErrorCallBack](corefoundation/cfxmlparserhandleerrorcallback.md)
- [CFXMLParserReleaseCallBack](corefoundation/cfxmlparserreleasecallback.md)
- [CFXMLParserResolveExternalEntityCallBack](corefoundation/cfxmlparserresolveexternalentitycallback.md)
- [CFXMLParserRetainCallBack](corefoundation/cfxmlparserretaincallback.md)

### Data Types

- [CFXMLParserCallBacks](corefoundation/cfxmlparsercallbacks.md)
- [CFXMLParserContext](corefoundation/cfxmlparsercontext.md)

### Constants

- [CFXMLParserStatusCode](corefoundation/cfxmlparserstatuscode.md)
- [CFXMLParserOptions](corefoundation/cfxmlparseroptions.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Related Documentation

- [XML Programming Topics for Core Foundation](apple-archive/documentation/CoreFoundation/Conceptual/CFXML.md)

### Opaque Types

- [CFAllocator](corefoundation/cfallocator.md)
- [CFArray](corefoundation/cfarray.md)
- [CFAttributedString](corefoundation/cfattributedstring.md)
- [CFBag](corefoundation/cfbag.md)
- [CFBinaryHeap](corefoundation/cfbinaryheap.md)
- [CFBitVector](corefoundation/cfbitvector.md)
- [CFBoolean](corefoundation/cfboolean.md)
- [CFBundle](corefoundation/cfbundle.md)
- [CFCalendar](corefoundation/cfcalendar.md)
- [CFCharacterSet](corefoundation/cfcharacterset.md)
- [CFData](corefoundation/cfdata.md)
- [CFDate](corefoundation/cfdate.md)
- [CFDateFormatter](corefoundation/cfdateformatter.md)
- [CFDictionary](corefoundation/cfdictionary.md)
- [CFError](corefoundation/cferror.md)
