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;
}

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 ; }
author : 66575267 - gabriel saiz modificacion : se le pasa como parametro el numero maximo de resultados .
