Microsoft SDK for Java

ElementCollection Class

The ElementCollection class of the com.ms.xml.om package provides a collection interface to elements similar to the element collections found in the Microsoft® Internet Explorer 4.0 Dynamic HTML (DHTML) object model.

public class ElementCollection
{
  // Constructors
  public ElementCollection(Element root);
  public ElementCollection(Element root, Name tag, int type);

  // Methods
  public Element getChild(int index);
  public int getLength();
  public Object item(String name);
  public Element item(String name, int index);
}

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