currentElement = root; currentDepth = 0; previousItem = null; return root;
Element first = null; if (root != null) { stack = new Stack(); if (root.getElementCount() > 0) stack.push(new ElementRef(root)); first = root; } return first;
  public Element first()  {    // Reset the iterator.    currentElement = root;    currentDepth = 0;    previousItem = null;    return root;  }