code: public XMLElementList getChildrenByName(String name) {
  		XMLElementList selected = new XMLElementList();
  		XMLElementList children = getChildren();
  		
  		for (int i=0;i<children.size();i++) {
  			if (children.get(i).getName().equals(name)) {
  				selected.add(children.get(i));
  			}
  		}
  		
  		return selected;
  	}
docs: Get a list of children with a given element name
  
  @param name The name of the element type that should be retrieved
  @return A list of elements