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

# publicID

Returns the public identifier associated with the receiver.

## Declaration

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

## Return Value

Return Value The public identifier associated with the receiver.

## Discussion

Discussion The public ID is applicable to entities and notations.

## See Also

### Managing DTD Identifiers

- [isExternal](foundation/xmldtdnode/isexternal.md)
- [notationName](foundation/xmldtdnode/notationname.md)
- [systemID](foundation/xmldtdnode/systemid.md)
