---
title: columnNumber
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmlparser/columnnumber
---

# columnNumber

The column number of the XML document being processed by the parser.

## Declaration

```swift
var columnNumber: Int { get }
```

## Discussion

Discussion The column refers to the nesting level of the XML elements in the document. You may access this property once a parsing operation has begun or after an error occurs.

## See Also

### Obtaining Parser State

- [lineNumber](foundation/xmlparser/linenumber.md)
- [publicID](foundation/xmlparser/publicid.md)
- [systemID](foundation/xmlparser/systemid.md)
