---
title: publicID
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmldtd/publicid
---

# publicID

Returns the receiver’s public identifier.

## Declaration

```swift
var publicID: String? { get set }
```

## See Also

### Managing DTD Identifiers

- [systemID](foundation/xmldtd/systemid.md)
