Documentation Language: Swift

Method

attribute(named:namespace:)

Returns the string value of a namespace-qualified attribute.

func attribute(named name: String, namespace: String) -> String?

Parameters

name

The local attribute name to look up.

namespace

The namespace URI used to qualify the attribute.

Return Value

The attribute value, or nil if no matching attribute exists.