<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/XMLDTDNode/dtdKind-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSXMLDTDNode(py)DTDKind"
  },
  "title" : "dtdKind"
}
-->

# dtdKind

Returns the receiver’s DTD kind.

```
var dtdKind: XMLDTDNode.DTDKind { get set }
```

## Return Value

The receiver’s DTD kind. See Constants for a list of valid NSXMLDTDNodeKind constants.

## Discussion

The DTD kind is distinct from a `NSXMLDTDNode` object’s node kind (returned by the `NSXMLNode` [`kind`](/documentation/Foundation/XMLNode/kind-swift.property) method).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)