---
title: dtd
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmldocument/dtd
---

# dtd

Returns an XMLDTD object representing the internal DTD associated with the receiver.

## Declaration

```swift
@NSCopying var dtd: XMLDTD? { get set }
```

## Return Value

Return Value An XMLDTD object representing the internal DTD associated with the receiver or nil if no DTD has been associated.

## See Also

### Managing Document Attributes

- [characterEncoding](foundation/xmldocument/characterencoding.md)
- [documentContentKind](foundation/xmldocument/documentcontentkind.md)
- [isStandalone](foundation/xmldocument/isstandalone.md)
- [mimeType](foundation/xmldocument/mimetype.md)
- [version](foundation/xmldocument/version.md)
