code: private final static void traverse(Element element, ElementVisitor visitor) {
  
  		visitor.visit(element);
  
  		NodeList children = element.getChildNodes();
  
  		for (int i = 0; i < children.getLength(); i++) {
  			Node node = children.item(i);
  
  			if (node.getNodeType() != Node.ELEMENT_NODE)
  				continue;
  
  			traverse((Element) node, visitor);
  		}
  	}
docs: Used to traverse an XML document.
  
  @param element
  Represents an element in an XML document.
  @param visitor
  Code to be executed.