A representation of element, attribute-list, entity, and notation declarations in a Document Type Definition.
- macOS 10.4+
XMLDTDNode objects are the sole children of a
XMLDTD object (possibly along with comment nodes and processing-instruction nodes). They themselves cannot have any children.
XMLDTDNode objects can be of four kinds—element, attribute-list, entity, or notation declaration—and can also be of a subkind, as specified by a
XMLDTDNode constant. For example, a DTD entity-declaration node could represent an unparsed entity declaration (
unparsed) rather than a parameter entity declaration (
parameter). You can use a DTD node’s subkind to help determine how to handle the value of the node.
You can create an
XMLDTDNode object with the
init(xml method, the
XMLNode class method
dtd, or with the
init(kind: (in the latter method supplying the appropriate
Setting the object value or string value of an
XMLDTDNode objects affects different parts of different kinds of declaration. See the related programming topic for more information.