HasAttributeNS

Element.HasAttributeNS method

Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise.

public bool HasAttributeNS(string namespaceURI, string localName)
Parameter Type Description
namespaceURI String The attribute namespace URI.
localName String The attribute local name.

Return Value

True if has attribute with the namespace URI and local name; otherwise, false.

See Also