---
title: CFXMLParserStatusCode
framework: Core Foundation
role: symbol
role_heading: Structure
path: corefoundation/cfxmlparserstatuscode
---

# CFXMLParserStatusCode

The various status and error flags that can be returned by the parser.

## Declaration

```swift
struct CFXMLParserStatusCode
```

## Overview

Overview Parser status is determined by calling the CFXMLParserGetStatusCode function. The parser reports errors to your application by invoking the CFXMLParserHandleErrorCallBack function.

## Topics

### Constants

- [statusParseNotBegun](corefoundation/cfxmlparserstatuscode/statusparsenotbegun.md)
- [statusParseInProgress](corefoundation/cfxmlparserstatuscode/statusparseinprogress.md)
- [errorUnexpectedEOF](corefoundation/cfxmlparserstatuscode/errorunexpectedeof.md)
- [errorUnknownEncoding](corefoundation/cfxmlparserstatuscode/errorunknownencoding.md)
- [errorEncodingConversionFailure](corefoundation/cfxmlparserstatuscode/errorencodingconversionfailure.md)
- [errorMalformedProcessingInstruction](corefoundation/cfxmlparserstatuscode/errormalformedprocessinginstruction.md)
- [errorMalformedDTD](corefoundation/cfxmlparserstatuscode/errormalformeddtd.md)
- [errorMalformedName](corefoundation/cfxmlparserstatuscode/errormalformedname.md)
- [errorMalformedCDSect](corefoundation/cfxmlparserstatuscode/errormalformedcdsect.md)
- [errorMalformedCloseTag](corefoundation/cfxmlparserstatuscode/errormalformedclosetag.md)
- [errorMalformedStartTag](corefoundation/cfxmlparserstatuscode/errormalformedstarttag.md)
- [errorMalformedDocument](corefoundation/cfxmlparserstatuscode/errormalformeddocument.md)
- [errorElementlessDocument](corefoundation/cfxmlparserstatuscode/errorelementlessdocument.md)
- [errorMalformedComment](corefoundation/cfxmlparserstatuscode/errormalformedcomment.md)
- [errorMalformedCharacterReference](corefoundation/cfxmlparserstatuscode/errormalformedcharacterreference.md)
- [errorMalformedParsedCharacterData](corefoundation/cfxmlparserstatuscode/errormalformedparsedcharacterdata.md)
- [errorNoData](corefoundation/cfxmlparserstatuscode/errornodata.md)

### Initializers

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

- [CFXMLParserOptions](corefoundation/cfxmlparseroptions.md)
