Hi Using child tags also works. <marshal><xstream prettyPrint="true"/></marshal>
The ticket is: CAMEL-871 Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Claus Ibsen [mailto:[EMAIL PROTECTED] Sent: 30. august 2008 14:47 To: camel-user@activemq.apache.org Subject: RE: xstream in xml configuration Hi Vadim Yes it doesn't work out-of-the-box. You can do this workaround <bean id="xs" class="org.apache.camel.model.dataformat.XStreamDataFormat"> <property name="prettyPrint" value="true"/> </bean> <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring"> <route> <from uri="direct:start"/> <marshal ref="xs"/> <to uri="mock:result"/> </route> </camelContext> I will create a ticket for the bug you have discovered with the xml configuration. Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Vadim Chekan [mailto:[EMAIL PROTECTED] Sent: 29. august 2008 23:49 To: camel-user@activemq.apache.org Subject: xstream in xml configuration Hi all, I'm having problem with defining xstream marshaling in xml configuration. <xstream id="xs" prettyPrint="true"/> <route> <from uri="activemq:Integration.Status"/> <setBody> <el>the body</el> </setBody> <marshal ref="xs" /> <to uri="mock:Status"/> </route> Caused by: java.lang.NullPointerException at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:49) According to the source code marshall has not assigned data conversion property. So I understand that I refer xstream incorrectly but I can not find the right way. Vadim. -- >From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT is explicitly specified