elementhasattribute03
IBM
The method hasAttribute returns true when an attribute with a given name is specified
on this element or has a default value, false otherwise.
Create an element Node and an attribute Node. Invoke hasAttribute method
to verify that there is no attribute. Append the attribute node to the element node.
Invoke the hasAttribute method on the element and verify if it returns true.
Neil Delima
2002-04-28