DekGenius.com
Team LiB   Previous Section   Next Section
Element.hasAttributeNS( ) determine whether this element has a specified attribute

Availability

DOM Level 2 Core

Synopsis

boolean hasAttributeNS(String namespaceURI, 
                       String localName);

Arguments

namespaceURI

The unique namespace identifier for the attribute, or null for no namespace.

localName

The name of the attribute within the specified namespace.

Returns

true if this element has an explicitly specified value or a default value for the specified attribute; false otherwise.

Description

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.

See Also

Element.getAttributeNS( ), Element.setAttributeNS( )

    Team LiB   Previous Section   Next Section