The ElementCollection class contains the following constructors:
ElementCollection(Element root)
ElementCollection(Element root, Name tag, int type)
Creates new collection object for given element.
public ElementCollection(Element root);
Creates a new collection for iterating over the immediate children of the given root node that have matching tag names, element types, or both.
public ElementCollection(Element root, Name tag, int type);
root | The root to form the collection around. |
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. |