private static Element addDomicilioFromDocumentAddress(Element persona,Document docAddress){
  Element rootAddres=docAddress.getRootElement();
  List listAdrres=rootAddres.selectNodes(XPATH_DOMICILIO_ROOT);
  if ((listAdrres != null) && (listAdrres.size() > 0)) {
    for (Iterator it=listAdrres.iterator(); it.hasNext(); ) {
      Element direccion=(Element)it.next();
      if (direccion != null) {
        persona=getPreferredAdrres(persona,direccion,listAdrres.size());
      }
    }
  }
  return persona;
}

private static Element addDomicilioFromDocumentAddress ( Element persona , Document docAddress ) { Element rootAddres = docAddress . getRootElement ( ) ; List listAdrres = rootAddres . selectNodes ( XPATH_DOMICILIO_ROOT ) ; if ( ( listAdrres != null ) && ( listAdrres . size ( ) > 0 ) ) { for ( Iterator it = listAdrres . iterator ( ) ; it . hasNext ( ) ; ) { Element direccion = ( Element ) it . next ( ) ; if ( direccion != null ) { persona = getPreferredAdrres ( persona , direccion , listAdrres . size ( ) ) ; } } } return persona ; }
66575267 - gabriel saiz
