private String _serializeMap(Map map, Set<Object> done) throws ConverterException {
	StringBuilder sb = new StringBuilder(goIn() + "<struct>");

	Iterator it = map.keySet().iterator();

	deep++;
	while (it.hasNext()) {
	    Object key = it.next();
	    sb.append(goIn() + "<var name=" + del + XMLUtil.escapeXMLString(key.toString()) + del + ">");
	    sb.append(_serialize(map.get(key), done));
	    sb.append(goIn() + "</var>");
	}
	deep--;

	sb.append(goIn() + "</struct>");
	return sb.toString();
    }
private String _serializeMap ( Map map , Set < Object > done ) throws ConverterException { StringBuilder sb = new StringBuilder ( goIn ( ) + "<struct>" ) ; Iterator it = map . keySet ( ) . iterator ( ) ; deep ++ ; while ( it . hasNext ( ) ) { Object key = it . next ( ) ; sb . append ( goIn ( ) + "<var name=" + del + XMLUtil . escapeXMLString ( key . toString ( ) ) + del + ">" ) ; sb . append ( _serialize ( map . get ( key ) , done ) ) ; sb . append ( goIn ( ) + "</var>" ) ; } deep -- ; sb . append ( goIn ( ) + "</struct>" ) ; return sb . toString ( ) ; }
serialize a Map (as Struct)

@param map Map to serialize
@param done
@return serialized map
@throws ConverterException