Microsoft SDK for Java

getAttribute

This method of the Element interface contains the following signatures:

getAttribute(String name)
getAttribute(Name n)

getAttribute(String name)

Retrieves an attribute's value given its name.

Syntax

public Object getAttribute(String name);

Return Value

Returns the value of the attribute or null if the attribute is not found.

Parameters

name The name of the attribute.

getAttribute(Name n)

Retrieves an attribute's value given its name.

Syntax

public Object getAttribute(Name n);

Return Value

Returns the value of the attribute or null if the attribute is not found.

Parameters

n The name of the attribute.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.