Pipeline to xmlString

Hello,
there is the savePipelineToFile. Is there any method to get the xml(thewhole pipeline) as String?
I do not want first to store in the file system and then load it as string.

Regards,
Jiorgos

Jiorgos,

Use the savePipeline and restorePipeline instead of ToFile services. But still the savePipeline services store the string to the IS memory.

Cheers,
Akshith

There is no out of the box solution but you can do it easily with a java service.
import com.wm.util.coder.IDataXMLCoder;

IDataCursor pipelineCursor = pipeline.getCursor();
IDataXMLCoder coder = new IDataXMLCoder();
try{
IDataUtil.put(pipelineCursor,"pipelinedata",new String(coder.encodeToBytes(pipeline)));

}catch(Exception e){
throw new ServiceException(e);
}
finally{
coder = null;
pipelineCursor.destroy();
}

Using the method decodeFromBytes(), you can try doing the reverse.

Cheers
Guna
http://www.nibodo.com