question: private static String creteXMLTotalCount ( int firstRow , int numPFIS , int numPJUR , int rDefault , int maxResults ) { String result = null ; Document document = DocumentHelper . createDocument ( ) ; Element root = document . addElement ( PersonKeys . XML_PERSONAS_TEXT ) ; root . addAttribute ( PersonKeys . XML_INICIO_TEXT , Integer . toString ( firstRow ) ) ; if ( ( firstRow + rDefault ) > ( numPFIS + numPJUR ) ) { root . addAttribute ( PersonKeys . XML_FIN_TEXT , Integer . toString ( numPFIS + numPJUR ) ) ; } else { root . addAttribute ( PersonKeys . XML_FIN_TEXT , Integer . toString ( firstRow + rDefault ) ) ; } root . addAttribute ( PersonKeys . XML_TOTAL_TEXT , Integer . toString ( numPFIS + numPJUR ) ) ; root . addAttribute ( PersonKeys . XML_RANGO_TEXT , Integer . toString ( rDefault ) ) ; root . addAttribute ( PersonKeys . XML_RESULT_MAX_TEXT , Integer . toString ( maxResults ) ) ; result = document . asXML ( ) ; return result ; }
target:  Author: 66575267 - Gabriel Saiz Metodo para crear un xml que indique el numero total de resultados encontrados.