Hi Sean,

> I have an application that contains a filter that converts incoming XML into a
> DomRepresenation so that it can be manipulated later as a document. Then, on 
> the
> return, a document comes to the afterHandler() and I want to transform that 
> into
> XML to return to the client. How do I easily get the write() output from the
> DomRepresentation into a StringRepresentation? 

There is no need to convert the DomRepresentation into the
StringRepresentation. Just call:

     call.setOutput(domRepresentation);

Restlet handles the transformation for you.

Best regards,
Lars
-- 
http://www.semagia.com

Reply via email to