Hello Patrik,
thanks for your report, the fix is available in the svn repository.
Best regards,
Thierry Boileau
I'm using Restlet 2.0-RC4 with Xstream extension to marshall objects to xml
> and json. My problem is that the json output contains xml tag as the first
> row
>
> <?xml version="1.0" encoding="UTF-8" ?>
> {"Shipment":{"shipmentId":"66666666121SE" ...
>
> My resource looks like this:
> public class ShipmentResource extends ServerResource {
> @Get
> public ShipmentDto getShipment() {
>
> I have found that the problem is in write method of XstreamRepresentation.
> It does:
> writer.append("<?xml version=\"1.0\" encoding=\""
> + charSet.getName() + "\" ?>\n");
>
> Is this a bug, or am I using it incorrectly?
>
> /Patrik
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2629525
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2631809