November 2001
Intermediate to advanced
936 pages
68h 43m
English
Element.hasAttributeNS( ) — determine whether this element has a specified attribute
DOM Level 2 Core
boolean hasAttributeNS(StringnamespaceURI, StringlocalName);
namespaceURI
The unique namespace identifier for the attribute, or
null for no namespace.
localName
The name of the attribute within the specified namespace.
true if this element has an explicitly specified
value or a default value for the specified attribute;
false otherwise.
This method works like hasAttribute( ), except
that the attribute to be checked for is specified by namespace and
name. This method is useful only with XML documents that use
namespaces.