Hi,

Is there a good way to change the default XStream object that will be used
for automatic XML conversion? The power of Restlet 2.0 is really there, but
it's really difficult to change the XStream object used in a
XstreamRepresentation. Am I missing something?

  @Get("xml")
  public Patate retrieve() {
    return new Patate();
  }

The result is something similar to this
  <com.example.Patate>
     <test1 />
  </com.example.Patate>

Which is really not what I want. This is the expected result, with a
correctly configured XStream object (with alias):
  <patate>
     <test1 />
  </patate>

Thanks for your help!

-- 
View this message in context: 
http://n2.nabble.com/Automatic-conversion-with-XStream-tp3983313p3983313.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

Reply via email to