Dave, Have a look at org.restlet.resource.FileRepresentation, that's your solution. You just need to set the correct media type (probably "text/xml" here).
Best regards, Jerome > -----Message d'origine----- > De : Dave Pawson [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 10 novembre 2006 14:57 > À : [email protected] > Objet : PUT > > I'm trying to figure out the relationship between > resource > representation > and > a plain XML file. > > e.g. client.put("targetUrl", representation); > > How do I convert the utf-8 string read from a.xml into the > representation > passed into the client.put call please? > > > TIA > > -- > Dave Pawson > XSLT XSL-FO FAQ. > http://www.dpawson.co.uk

