RE: Version 2: How to get XML representation

2011-08-27 Thread Jerome Louvel
: samedi 27 août 2011 01:02 À : 'discuss' Objet : RE: Version 2: How to get XML representation Hi Alex, Definitely, the user guide is scarce in some areas... Currently, we try to finish the Restlet in Action book which goes into more details with examples about such features. Then, in v 2.2 we'll

RE: Version 2: How to get XML representation

2011-08-26 Thread Jerome Louvel
-Message d'origine- De : ale...@milowski.com [mailto:ale...@milowski.com] De la part de Alex Milowski Envoyé : jeudi 25 août 2011 20:26 À : discuss@restlet.tigris.org Objet : Re: Version 2: How to get XML representation On Thu, Aug 25, 2011 at 10:10 AM, Ivano Carrara icarr...@studio5.it wrote: Hi

Re: Version 2: How to get XML representation

2011-08-26 Thread Alex Milowski
On Fri, Aug 26, 2011 at 1:05 AM, Jerome Louvel jerome.lou...@noelios.com wrote: Hi Ivano, Another option would be to do:        Document doc = resource.get(Document.class); That should just works with automagic conversion :) That is some magic! I just took a look at this page on the

RE: Version 2: How to get XML representation

2011-08-26 Thread Jerome Louvel
part de Alex Milowski Envoyé : vendredi 26 août 2011 21:28 À : discuss@restlet.tigris.org Objet : Re: Version 2: How to get XML representation On Fri, Aug 26, 2011 at 1:05 AM, Jerome Louvel jerome.lou...@noelios.com wrote: Hi Ivano, Another option would be to do: Document doc

Re: Version 2: How to get XML representation

2011-08-25 Thread Alex Milowski
On Thu, Aug 25, 2011 at 10:10 AM, Ivano Carrara icarr...@studio5.it wrote: 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 =