RE: How do I get DOMRepresentation from Response in restlet 2.0

2010-12-03 Thread webpost
As long as the response is valid xml, you can just use
DomRepresentaion dom = new DomRepresentation(response.getEntity())

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2687633


How do I get DOMRepresentation from Response in restlet 2.0

2010-11-30 Thread webpost
Hi,

Currently I am migrating from Restlet 1.1 to 2.0.3 and I wonder how to get a 
DOM Representation from a Response object.

In the old version this was achieved by calling "getEntityAsDom" on the 
response. But this method is not available anymore.

Please provide help on the best practice to achieve this now!

Thanks and regards

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2686688