This method of the ElementCollection class contains the following signatures:
item(String name)
item(String name, int index)
Retrieves a named item or a collection of matching items.
public Object item(String name);
Returns the requested item. Possible types of objects returned are Element, ElementCollection, or null.
name | The name of the item or collection of matching items. |
Retrieves a specified item from the collection of matching items.
public Element item(String name, int index);
Returns the requested item if it is found; returns null if it is not found.
name | The name of the matching items. |
index | The index of the specific matching item to return. |