private void parseElement(Element element,Person author){
  NodeList nodeList=element.getChildNodes();
  for (int i=0; i < nodeList.getLength(); i++) {
    Node node=nodeList.item(i);
    if (node.getNodeType() == Node.ELEMENT_NODE) {
      Element child=(Element)node;
      if (hasClass(child,"vcard")) {
        parseHCard(child,author);
      }
 else {
        parseElement(child,author);
      }
    }
  }
}

private void parseElement ( Element element , Person author ) { NodeList nodeList = element . getChildNodes ( ) ; for ( int i = 0 ; i < nodeList . getLength ( ) ; i ++ ) { Node node = nodeList . item ( i ) ; if ( node . getNodeType ( ) == Node . ELEMENT_NODE ) { Element child = ( Element ) node ; if ( hasClass ( child , "vcard" ) ) { parseHCard ( child , author ) ; } else { parseElement ( child , author ) ; } } } }
parses the given element and populates the given person object accordingly .
