Recursive Descent

public void process(Element element) {

  Elements children = element.getChildElements();
  for (int i = 0; i < children.size(); i++) {
    process(children.get(i));
  }

}

Previous | Next | Top | Cafe con Leche

Copyright 2004 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 18, 2004