NSXMLDTDNode object representing the DTD declaration for an element, attribute, entity, or notation based on a given string.
- macOS 10.4+
A string that is a DTD declaration. The receiver parses this string to determine the kind of DTD node to create.
NSXMLDTDNode object representing the DTD declaration or
nil if the object couldn't be created.
For example, if
string is the following:
NSXMLNode is able to assign the created node object a kind of
NSXMLEntity by parsing “ENTITY”.
Note that if an attribute-list declaration (
<!ATTLIST...> )has multiple attributes
NSXMLNode only creates an
NSXMLDTDNode object for the last attribute in the declaration.