Contents

attributeDeclaration(forName:elementName:)

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

Declaration

func attributeDeclaration(forName name: String, elementName: String) -> XMLDTDNode?

Parameters

  • name:

    A string object identifying the name of an attribute.

  • elementName:

    A string object identifying the name of an element.

Return Value

An autoreleased XMLDTDNode 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