Hi all, Using Version 1 of Restlet, I built a client to get Xml from a remote server and to examine it using Xpath expressions - below a fragment of code:
Request req = new Request(Method.GET, url); Client client = new Client(Protocol.HTTP); Response resp = client.handle(req); DomRepresentation doc = resp.getEntityAsDom(); How I can obtain the same "doc" object using the Version 2 ? Below the actual code: ClientResource resource = new ClientResource(url); resource.get(); Then using "resource.get().getText());" I obtain the text of my XML, but I need the DOM representation to use with XPath expressions. With Version 2, what is the equivalent code to "DomRepresentation doc = resp.getEntityAsDom();" of Version 1 ? Thank you in advance for any help! Ivano C. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2829737

