Microsoft SDK for Java

ElementEnumeration Class Constructors

The ElementEnumeration class contains the following constructors:

ElementEnumeration(Element root)
ElementEnumeration(Element root, Name tag, int type)

ElementEnumeration(Element root)

Creates a new enumerator for enumerating over all the children of the given root node.

Syntax

public ElementEnumeration(Element root);

Parameters

root The element whose children are going to be enumerated.

ElementEnumeration(Element root, Name tag, int type)

Creates a new enumerator for enumerating over the immediate children of the given root node that have matching tag names, types, or both.

Syntax

public ElementEnumeration(Element root, Name tag, int type);

Parameters

root The element whose children are going to be enumerated.
tag The name of the tag; this parameter can be null if the name is not important.
type The element type. Element.ELEMENT is the most common. If the element type is not important, pass -1.

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