question: private static String createXMLEmpty ( int firstRow , int rDefault , int maxResults ) throws Exception { String result = null ; Document document = DocumentHelper . createDocument ( ) ; Element root = document . addElement ( PersonKeys . XML_PERSONAS_TEXT ) ; root . addAttribute ( PersonKeys . XML_INICIO_TEXT , Integer . toString ( firstRow ) ) ; root . addAttribute ( PersonKeys . XML_FIN_TEXT , Integer . toString ( firstRow + rDefault ) ) ; root . addAttribute ( PersonKeys . XML_TOTAL_TEXT , Integer . toString ( 0 ) ) ; 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 Modificacion: Se le pasa como parametro el numero maximo de resultados.