---
title: CFXMLParserOptions
framework: Core Foundation
role: symbol
role_heading: Structure
path: corefoundation/cfxmlparseroptions
---

# CFXMLParserOptions

Options you can use to control the parser’s treatment of an XML document.

## Declaration

```swift
struct CFXMLParserOptions
```

## Overview

Overview These are the various options you use to configure the parser. An option flag of 0 (kCFXMLParserNoOptions) leaves the XML as “intact” as possible (reports all structures; performs no replacements). Hence, to make the parser do the most work, returning only the pure element tree, set the option flag to allOptions.

## Topics

### Constants

- [validateDocument](corefoundation/cfxmlparseroptions/validatedocument.md)
- [skipMetaData](corefoundation/cfxmlparseroptions/skipmetadata.md)
- [replacePhysicalEntities](corefoundation/cfxmlparseroptions/replacephysicalentities.md)
- [skipWhitespace](corefoundation/cfxmlparseroptions/skipwhitespace.md)
- [resolveExternalEntities](corefoundation/cfxmlparseroptions/resolveexternalentities.md)
- [addImpliedAttributes](corefoundation/cfxmlparseroptions/addimpliedattributes.md)
- [allOptions](corefoundation/cfxmlparseroptions/alloptions.md)

### Initializers

- [init(rawValue:)](corefoundation/cfxmlparseroptions/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Constants

- [CFXMLParserStatusCode](corefoundation/cfxmlparserstatuscode.md)
