Class

XMLDTDNode

Instances of the NSXMLDTDNode class represent element, attribute-list, entity, and notation declarations in a Document Type Definition. NSXMLDTDNode objects are the sole children of a NSXMLDTD object (possibly along with comment nodes and processing-instruction nodes). They themselves cannot have any children.

Overview

NSXMLDTDNode objects can be of four kinds—element, attribute-list, entity, or notation declaration—and can also be of a subkind, as specified by a NSXMLDTDNodeKind constant. For example, a DTD entity-declaration node could represent an unparsed entity declaration (NSXMLEntityUnparsedKind) rather than a parameter entity declaration (NSXMLEntityParameterKind). You can use a DTD node’s subkind to help determine how to handle the value of the node.

You can create an NSXMLDTDNode object with the init(xmlString:) method, the NSXMLNode class method dtdNode(withXMLString:), or with the NSXMLNode initializer init(kind:options:) (in the latter method supplying the appropriate NSXMLNodeKind constant).

Setting the object value or string value of an NSXMLDTDNode objects affects different parts of different kinds of declaration. See the related programming topic for more information.

Nested Types

NSXMLDTDNodeKind

The type defined for the constants that specify the kind and subkind of DTD declaration represented by an NSXMLDTDNode object. You set the DTD-node kind using the setDTDKind: method.

Symbols

Initializing an NSXMLDTDNode Object

init?(xmlString: String)

Returns an NSXMLDTDNode object initialized with the DTD declaration in a given string.

Managing the DTD Node Kind

var dtdKind: XMLDTDNode.DTDKind

Returns the receiver’s DTD kind.

Managing DTD Identifiers

var notationName: String?

Returns the name of the notation associated with the receiver.

var publicID: String?

Returns the public identifier associated with the receiver.

var systemID: String?

Returns the system identifier associated with the receiver.

Constants

DTDKind

The type defined for the constants that specify the kind and subkind of DTD declaration represented by an NSXMLDTDNode object. You set the DTD-node kind using the setDTDKind: method.

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 setDTDKind: method.

Instance Properties

Relationships

Inherits From

Conforms To