Contents

attribute(forLocalName:uri:)

Returns the attribute node of the receiver that is identified by a local name and URI.

Declaration

func attribute(forLocalName localName: String, uri URI: String?) -> XMLNode?

Parameters

  • localName:

    A string specifying the local name of an attribute.

  • URI:

    A sting identifying the URI associated with an attribute.

Return Value

An XML node object representing a matching attribute or nil if no such node was found.

See Also

Handling Attributes