This method of the Element interface contains the following signatures:
getAttribute(String name)
getAttribute(Name n)
Retrieves an attribute's value given its name.
public Object getAttribute(String name);
Returns the value of the attribute or null if the attribute is not found.
name | The name of the attribute. |
Retrieves an attribute's value given its name.
public Object getAttribute(Name n);
Returns the value of the attribute or null if the attribute is not found.
n | The name of the attribute. |