ItemConstructor constructor = InfosetFactory.getDefaultInfoset().createItemConstructor();
dest.send(constructor.createDocument());
dest.send(constructor.createElement(AdminXML.NM_SYNC_PROCESSES));
while (procs.hasNext()) {
SyncProcess proc = procs.next();
proc.marshall();
DocumentSource.generate(proc.getElement(),false,dest);
}
dest.send(constructor.createElementEnd(AdminXML.NM_SYNC_PROCESSES));
dest.send(constructor.createDocumentEnd());
out.flush();