private String _serializeList(List list,Map<Object,String> done,String id) throws ConverterException {
  StringBuilder sb=new StringBuilder(goIn() + "<ARRAY ID=\"" + id+ "\" SIZE="+ del+ list.size()+ del+ ">");
  int index;
  ListIterator it=list.listIterator();
  while (it.hasNext()) {
    index=it.nextIndex();
    String value=_serialize(it.next(),done);
    sb.append(goIn() + "<ITEM INDEX=\"" + (index + 1)+ "\" TYPE=\""+ type+ "\">");
    sb.append(value);
    sb.append(goIn() + "</ITEM>");
  }
  sb.append(goIn() + "</ARRAY>");
  type="ARRAY";
  return sb.toString();
}

private String _serializeList ( List list , Map < Object , String > done , String id ) throws ConverterException { StringBuilder sb = new StringBuilder ( goIn ( ) + "<ARRAY ID=\"" + id + "\" SIZE=" + del + list . size ( ) + del + ">" ) ; int index ; ListIterator it = list . listIterator ( ) ; while ( it . hasNext ( ) ) { index = it . nextIndex ( ) ; String value = _serialize ( it . next ( ) , done ) ; sb . append ( goIn ( ) + "<ITEM INDEX=\"" + ( index + 1 ) + "\" TYPE=\"" + type + "\">" ) ; sb . append ( value ) ; sb . append ( goIn ( ) + "</ITEM>" ) ; } sb . append ( goIn ( ) + "</ARRAY>" ) ; type = "ARRAY" ; return sb . toString ( ) ; }
serialize a list ( as array )
