Instance Method

attributeDeclarationForName:elementName:

Returns the DTD node representing an attribute-list declaration for a given attribute and its element.

Declaration

- (NSXMLDTDNode *)attributeDeclarationForName:(NSString *)name elementName:(NSString *)elementName;

Parameters

attrName

A string object identifying the name of an attribute.

elementName

A string object identifying the name of an element.

Return Value

An autoreleased NSXMLDTDNode object, or nil if there is no matching attribute-list declaration.

Discussion

For example, in the attribute-list declaration:

<!ATTLIST person idnum CDATA "0000">

“idnum” would correspond to attrName and “person” would correspond to elementName.

See Also

Getting DTD Nodes by Name

+ predefinedEntityDeclarationForName:

Returns a DTD node representing the predefined entity declaration with the specified name.

- elementDeclarationForName:

Returns the DTD node representing an element declaration for a specified element.

- entityDeclarationForName:

Returns the DTD node representing the entity declaration for a specified entity.

- notationDeclarationForName:

Returns the DTD node representing the notation declaration identified by the specified notation name.