getAttribute(String) method

Convenience method for getting single-valued attributes.

Syntax

String getAttribute ( String name )

Parameters

Returns

The first value for the named attribute. If there are no attribute values with the given name, it returns null.