Contents

parser(_:foundAttributeDeclarationWithName:forElement:type:defaultValue:)

Sent by a parser object to its delegate when it encounters a declaration of an attribute that is associated with a specific element.

Declaration

optional func parser(_ parser: XMLParser, foundAttributeDeclarationWithName attributeName: String, forElement elementName: String, type: String?, defaultValue: String?)

Parameters

  • parser:

    An NSXMLParser object parsing XML.

  • attributeName:

    A string that is the name of an attribute.

  • elementName:

    A string that is the name of an element that has the attribute attributeName.

  • type:

    A string, such as “ENTITY”, “NOTATION”, or “ID”, that indicates the type of the attribute.

  • defaultValue:

    A string that specifies the default value of the attribute.

See Also

Related Documentation

Handling the DTD