Documentation Language: Swift

Method

bool(named:namespace:)

Returns a Boolean interpretation of a namespace-qualified attribute.

func bool(named n: String, namespace: String) -> Bool

Parameters

n

The local attribute name to look up.

namespace

The namespace URI used to qualify the attribute.

Return Value

true when the attribute exists and contains a non-zero integer.