Class

NSXMLDTDNode

A representation of element, attribute-list, entity, and notation declarations in a Document Type Definition.

Declaration

@interface NSXMLDTDNode : NSXMLNode

Overview

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.

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 initWithXMLString: method, the NSXMLNode class method DTDNodeWithXMLString:, or with the NSXMLNode initializer initWithKind: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.

Topics

Initializing an NSXMLDTDNode Object

- initWithXMLString:

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

Managing the DTD Node Kind

DTDKind

Returns the receiver’s DTD kind.

- setDTDKind:

Sets the receiver’s DTD kind.

Managing DTD Identifiers

- isExternal

Returns a Boolean value that indicates whether the receiver represents a declaration from an external DTD (the system ID is set).

notationName

Returns the name of the notation associated with the receiver.

publicID

Returns the public identifier associated with the receiver.

systemID

Returns the system identifier associated with the receiver.

Constants

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.

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

See Also

Tree-Based Processing

NSXMLDTD

A representation of a Document Type Definition.

NSXMLDocument

An XML document as internalized into a logical tree structure.

NSXMLElement

The element nodes in an XML tree structure.

NSXMLNode

The nodes in the abstract, logical tree structure that represents an XML document.