Microsoft SDK for Java

item

This method of the ElementCollection class contains the following signatures:

item(String name)
item(String name, int index)

item(String name)

Retrieves a named item or a collection of matching items.

Syntax

public Object item(String name);

Return Value

Returns the requested item. Possible types of objects returned are Element, ElementCollection, or null.

Parameters

name The name of the item or collection of matching items.

item(String name, int index)

Retrieves a specified item from the collection of matching items.

Syntax

public Element item(String name, int index);

Return Value

Returns the requested item if it is found; returns null if it is not found.

Parameters

name The name of the matching items.
index The index of the specific matching item to return.

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