Class SiblingEnumeration

public class SiblingEnumeration implements >Enumeration
{
  // Constructors
  public SiblingEnumeration(Element node);
  public SiblingEnumeration(Element node, boolean enumDir );

  // Methods
  public boolean hasMoreElements();
  public Object nextElement();
  public void reset();
}

An Enumeration for iterating over the siblings of a given node in the XML tree

Also see Element, Name

Constructors

SiblingEnumeration

public SiblingEnumeration(Element node);

Creates new iterator for iterating over all of the children of the given root node.

SiblingEnumeration

public SiblingEnumeration(Element node, boolean enumDir );

Methods

hasMoreElements 

public boolean hasMoreElements();

Return whether or not there are any more matching elements.

Return Value

Returns true if the next call to nextElement will return non null result.

nextElement 

public Object nextElement();

Return the next matching element.

Return Value

Returns Element or null of there are no more matching elements.

reset 

public void reset();

Reset the iterator so you can iterate through the elements again.