<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/dtd_node_kind_constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "DTD Node Kind Constants"
}
-->

# DTD Node Kind Constants

Constants that specify the kind and subkind of DTD declaration represented by an `NSXMLDTDNode` object. You set the DTD-node kind using the <doc:nsxmldtdnode/1806486-setdtdkind> method.

## Topics

### Constants

[`case general`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/general)

Identifies a general entity declaration.

[`case parsed`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/parsed)

Identifies a parsed entity declaration.

[`case unparsed`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/unparsed)

Identifies an unparsed entity declaration.

[`case parameter`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/parameter)

Identifies a parameter entity declaration.

[`case predefined`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/predefined)

Identifies a predefined entity declaration.

[`case cdataAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/cdataAttribute)

Identifies an attribute-list declaration with a `CDATA` (character data) value type.

[`case idAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/idAttribute)

Identifies an attribute-list declaration with an `ID` value type (per-document unique element name).

[`case idRefAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/idRefAttribute)

Identifies an attribute-list declaration with an `IDREF` value type (refers to element `ID` type).

[`case idRefsAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/idRefsAttribute)

Identifies an attribute-list declaration with an `IDREFS` value type (refers to multiple elements of `ID` type).

[`case entityAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/entityAttribute)

Identifies an attribute-list declaration with an `ENTITY` value type (refers to unparsed entity declared in document).

[`case entitiesAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/entitiesAttribute)

Identifies an attribute-list declaration with an `ENTITIES` value type (refers to multiple unparsed entities declared elsewhere in document).

[`case nmTokenAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/nmTokenAttribute)

Identifies an attribute-list declaration with a `NMTOKEN` value type (name token).

[`case nmTokensAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/nmTokensAttribute)

Identifies an attribute-list declaration with a `NMTOKENS` value type (multiple name tokens)

[`case enumerationAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/enumerationAttribute)

Identifies an attribute-list declaration with an enumeration value type (list of all possible values).

[`case notationAttribute`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/notationAttribute)

Identifies an attribute-list declaration with a `NOTATION` value type (name of declared notation).

[`case undefinedDeclaration`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/undefinedDeclaration)

Identifies an undefined element declaration.

[`case emptyDeclaration`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/emptyDeclaration)

Identifies a declaration (`EMPTY`) of an empty element.

[`case anyDeclaration`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/anyDeclaration)

Identifies an `ANY` element declaration.

[`case mixedDeclaration`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/mixedDeclaration)

Identifies a declaration of an element with mixed content (`(#PCDATA | child)`).

[`case elementDeclaration`](/documentation/Foundation/XMLDTDNode/DTDKind-swift.enum/elementDeclaration)

Identifies a declaration of an element with child elements.



---

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)