NodeList    nl        = element.getElementsByTagName(elementName);
  private Collection _getImmediateElements(Element element, String elementName)  {    NodeList    nl        = element.getElementsByTagName(elementName);    Collection  elements  = new Vector();    if (nl.getLength() < 1) {      return elements;    }    Element child;    for (int i = 0; i < nl.getLength(); i++) {      child = (Element) nl.item(i);      if (child.getParentNode().equals(element)) {        elements.add(child);      }    }    return elements;  } // private Collection _getImmediateElements(element, elementName)