this.root = document.getDefaultRootElement(); this.currentElement = root; this.state = new int[5];
root = document.getDefaultRootElement();
  public ElementIterator(Document document)  {    this.root = document.getDefaultRootElement();    this.currentElement = root;    this.state = new int[5];  }