public String serialize(Object object) throws ConverterException {
  deep=0;
  StringBuilder sb=new StringBuilder();
  if (xmlConform)   sb.append("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>");
  sb.append("<wddxPacket version=" + del + "1.0"+ del+ ">");
  deep++;
  sb.append(goIn() + "<header/>");
  sb.append(goIn() + "<data>");
  sb.append(_serialize(object,new HashSet<Object>()));
  sb.append(goIn() + "</data>");
  deep--;
  sb.append("</wddxPacket>");
  return sb.toString();
}

public String serialize ( Object object ) throws ConverterException { deep = 0 ; StringBuilder sb = new StringBuilder ( ) ; if ( xmlConform ) sb . append ( "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>" ) ; sb . append ( "<wddxPacket version=" + del + "1.0" + del + ">" ) ; deep ++ ; sb . append ( goIn ( ) + "<header/>" ) ; sb . append ( goIn ( ) + "<data>" ) ; sb . append ( _serialize ( object , new HashSet < Object > ( ) ) ) ; sb . append ( goIn ( ) + "</data>" ) ; deep -- ; sb . append ( "</wddxPacket>" ) ; return sb . toString ( ) ; }
serialize a object to his xml format represenation and create a valid wddx representation
