---
title: CFXMLDocumentInfo
framework: Core Foundation
role: symbol
role_heading: Structure
path: corefoundation/cfxmldocumentinfo
---

# CFXMLDocumentInfo

Contains the source URL and text encoding information for the XML document.

## Declaration

```swift
struct CFXMLDocumentInfo
```

## Overview

Overview A pointer to this structure is included in the CFXMLNode object passed to your application when the parser encounters the XML declaration. Use the CFXMLNodeGetInfoPtr function to obtain the pointer.

## Topics

### Initializers

- [init()](corefoundation/cfxmldocumentinfo/init().md)
- [init(sourceURL:encoding:)](corefoundation/cfxmldocumentinfo/init(sourceurl:encoding:).md)

### Instance Properties

- [encoding](corefoundation/cfxmldocumentinfo/encoding.md)
- [sourceURL](corefoundation/cfxmldocumentinfo/sourceurl.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)

## See Also

### Data Types

- [CFXMLAttributeDeclarationInfo](corefoundation/cfxmlattributedeclarationinfo.md)
- [CFXMLAttributeListDeclarationInfo](corefoundation/cfxmlattributelistdeclarationinfo.md)
- [CFXMLDocumentTypeInfo](corefoundation/cfxmldocumenttypeinfo.md)
- [CFXMLElementInfo](corefoundation/cfxmlelementinfo.md)
- [CFXMLElementTypeDeclarationInfo](corefoundation/cfxmlelementtypedeclarationinfo.md)
- [CFXMLEntityInfo](corefoundation/cfxmlentityinfo.md)
- [CFXMLEntityReferenceInfo](corefoundation/cfxmlentityreferenceinfo.md)
- [CFXMLExternalID](corefoundation/cfxmlexternalid.md)
- [CFXMLNotationInfo](corefoundation/cfxmlnotationinfo.md)
- [CFXMLProcessingInstructionInfo](corefoundation/cfxmlprocessinginstructioninfo.md)
